- Joined
- Mar 23, 2008
- Messages
- 1,813
I have this spell, gives a chance to damage a unit that gets targeted by a spell. Anyways, i display the damage the trigger does to the unit through a floating text over their head. But it also creates a floating text in the center of the map sometimes, for no reason, i cant find anywhere in the trigger where it might do a floating text in center of map. Maybe someone else can see where it goes wrong?
-
Spell
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- ((Casting unit) is A Hero) Equal to True
- ((Target unit of ability being cast) has buff Sparky Aura ) Equal to True
-
Actions
- Set SparkyUnit = (Target unit of ability being cast)
- Set SparkyAura = (Random integer number between 1 and 10)
- Set SparkyAura2 = (Random integer number between 1 and 10)
- Set SparkyAura3 = (Random integer number between 1 and 10)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SparkyAura Less than or equal to 4
-
Then - Actions
- Floating Text - Create floating text that reads 100 above SparkyUnit with Z offset 0.00, using font size 10.00, color (0.00%, 0.00%, 75.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Unit - Cause (Casting unit) to damage SparkyUnit, dealing 100.00 damage of attack type Spells and damage type Lightning
- Special Effect - Create a special effect attached to the overhead of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set SparkyUnit = No unit
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SparkyAura2 Less than or equal to 3
-
Then - Actions
- Floating Text - Create floating text that reads 150 above SparkyUnit with Z offset 0.00, using font size 10.00, color (0.00%, 0.00%, 75.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Unit - Cause (Casting unit) to damage SparkyUnit, dealing 150.00 damage of attack type Spells and damage type Lightning
- Special Effect - Create a special effect attached to the overhead of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set SparkyUnit = No unit
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SparkyAura3 Less than or equal to 2
-
Then - Actions
- Floating Text - Create floating text that reads 200 above SparkyUnit with Z offset 0.00, using font size 10.00, color (0.00%, 0.00%, 75.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Unit - Cause (Casting unit) to damage SparkyUnit, dealing 200.00 damage of attack type Spells and damage type Lightning
- Special Effect - Create a special effect attached to the overhead of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set SparkyUnit = No unit
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events