HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Questions Thread.

08-01-2003, 03:13 AM#1
Thunder-Hunter
Ok, Use this as a place to ask questions if you want.

Here's mine: How do I make it so when "Unit X uses Spell-Food, he gets +50 Hp"? Ive tried and I cant figure it out.. I used to be able to do this too.... :(

2nd Q.) Not so simple but eh.. How do I make it so that when I use Ability X, the unit will face and attack the closst enemy unit?
08-01-2003, 03:32 AM#2
got_ammo
I'm going to assume you mean plus 50 hp as in healing, and not plus 50 max hp...


Untitled Trigger 001
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to XXXXX
Actions
Unit - Set life of (XXXx) to ((Life of (XXX)) + 50.00)

replace the 3 x's with triggering unit or whatever applies to the cituation. Replace XXXXX with the ability.
08-01-2003, 03:32 AM#3
xXL33t-DragonXx
Here's your answer. (I didn't know how to do this before but I just found out by dabbing around :D ty)

E: Unit- Unit finishes casting an ability.
C: Ability being cast is equal to food.
A: Unit - Set life of Triggering unit to (value)
(value = Life of Triggering unit + 50)
08-01-2003, 03:33 AM#4
got_ammo
Heh I barely answered that before dragon
08-01-2003, 03:33 AM#5
Thunder-Hunter
thx. Yea i meant +50 hp, not to max though... I wonder why I couldnt do that before. Ill try again.
08-01-2003, 03:42 AM#6
FyreDaug
Cast healing on it, use an item healing potion ability and cast it on the hero.
08-01-2003, 03:47 AM#7
Thunder-Hunter
?