- Joined
- Sep 11, 2013
- Messages
- 467
Greetings!
I've made this trigger and I wish to know if there is a solution for my problem.
How can I make that floating text to appear just for players (allies/enemy) with vision on tower?
I don't know if that matter but this tower can be created only be team 2 players.
The help will be appreciated!
I've made this trigger and I wish to know if there is a solution for my problem.
-
Incinerated Arrow
-
Events
-
Unit - A unit Takes damage
-
-
Conditions
-
(Unit-type of (Damage source)) Equal to Tower
-
(Damage From Normal Attack) Equal to True
-
-
Actions
-
Set VariableSet IncinerateTowerForUnit1 = (Damage source)
-
Set VariableSet IncinerateTowerForUnit2 = (Damage Target)
-
Game - Display to (All players) the text: X
-
Set VariableSet IncinerateTowerReal1 = ((Max life of (Damage Target)) x 0.01)
-
Set VariableSet IntegerFloatingTextArrow = ((Base Damage of (Damage source) for weapon index 0) + (Integer(IncinerateTowerReal1)))
-
Unit - Cause IncinerateTowerForUnit1 to damage IncinerateTowerForUnit2, dealing IncinerateTowerReal1 damage of attack type Chaos and damage type Universal
-
Floating Text - Create floating text that reads (String(IntegerFloatingTextArrow)) above (Damage source) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds
-
-
How can I make that floating text to appear just for players (allies/enemy) with vision on tower?
I don't know if that matter but this tower can be created only be team 2 players.
The help will be appreciated!