N
Nikolae
Guest
I have this trigger that is supposed to heal the unit for a certain amount every 3 seconds, but also, create floating text above the unit with the amount healed. However, the floating text only ever appears at the location where the unit was when it had the spell cast on him. If the unit moves, the floating text stays where it was.
It appears and disappears properly, and everything, it just doesn't start at the right location.
Any ideas?
It appears and disappears properly, and everything, it just doesn't start at the right location.
Code:
Renew
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Renew
Actions
Set SpellLVL = (Level of (Ability being cast) for (Casting unit))
Set SpellReal = ((Real((Intelligence of (Casting unit) (Include bonuses)))) x (Real(SpellLVL)))
Set SpellReal = (SpellReal / 10.00)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Wait 3.00 seconds
Advanced - Heal (Target unit of ability being cast) for SpellReal hitpoints
Floating Text - Create floating text that reads (String((Integer(SpellReal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Change the fadepoint of (Last created floating text) to 1.00
Floating Text - Change the lifespan of (Last created floating text) to 2.00
Floating Text - Change permanent state of (Last created floating text) to Disable
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Any ideas?


