HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding a buff to unit while unit is channeling spell!

02-09-2004, 11:34 PM#1
Tiki
Ok this is what im trying to do:

Spell is called Eclipse, which is based off of Starfall. It turns day into night, adds 5 armor while she is channeling, and drops stars.

For the 5 extra armor, I made a spell based off of Frost Armor and changed all the stats so it adds 5 armor.

This is what triggers I have so far:
( NOTE: How do I make a variable for a unit? So when unit casts a spell how do I make the varible match the unit? )

Without unit variable...

Code:
Events -
Unit - Lunar Ranger 0001 <gen> begins channeling an ability.
Condition-
Ability - Ability being cast equal to Eclipse
Action -
Game - Set the time of day to 18.00

Now how do I make it add the active frost armor buff? With graphics and all?
02-09-2004, 11:44 PM#2
Burne
Have another unit do it.

As you already have in your trigger but do something along the lines of.

Unit - Create 1 Armorer at location of Casting hero
Unit - Hide Last Created Unit
Unit - Order (Last Created Unit) to FrostArmor Casting Hero
Wait .1 game time
Unit - Removed (last created Unit) from game.

There are several way to get the same effect using slightly different triggers but this is proably the easiest.

Armorer should be a small unit with the FrostNova ability you created.

For completeness, you should have a trigger that removes the Frostarmor buff if your Starfall is interupted early.
02-09-2004, 11:56 PM#3
Tiki
ok but i need a variable that matches the unit, so it works...

and when i try to make it issue a spell it doesnt let me choose spells