- Joined
- Oct 28, 2019
- Messages
- 536
I maked a damage system like this> if a unit damages 8 and the target has 2 armor the damage taken is 6....
here all ok, but a spell damage like lightning shield this cant be happen. Idk how to solve it, theres how to say to the trigger that this is a spell damage etc
obs the normal attack is a spell (forked lightning) (it appears a normal attack )that uses strenght points to deal damage
here all ok, but a spell damage like lightning shield this cant be happen. Idk how to solve it, theres how to say to the trigger that this is a spell damage etc
obs the normal attack is a spell (forked lightning) (it appears a normal attack )that uses strenght points to deal damage
-
Show Text Copy
-

Events
-


Game - DamageEvent becomes Equal to 1.00
-
-

Conditions
-


(HeroVariable has buff Defend ) Equal to False
-
-

Actions
-


Set VariableSet TempLoc1 = (Position of DamageEventTarget)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Triggering player) is an ally of Player 2 (Blue).) Equal to True
-
-



Then - Actions
-




Set VariableSet DamageEventAmount = (DamageEventAmount - (Armor of DamageEventTarget))
-




Floating Text - Create floating text that reads (<Empty String> + ((String((Integer(DamageEventAmount)))) + <Empty String>)) at TempLoc1 with Z offset 100.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
-




Custom script: call RemoveLocation(udg_TempLoc1)
-




Floating Text - Change (Last created floating text): Disable permanence
-




Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-




Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
-




Floating Text - Set the velocity of (Last created floating text) to 80.00 towards 90.00 degrees
-
-



Else - Actions
-




Set VariableSet TempLoc1 = (Position of DamageEventTarget)
-




Set VariableSet DamageEventAmount = (DamageEventAmount - (Armor of DamageEventTarget))
-




Floating Text - Create floating text that reads (<Empty String> + ((String((Integer(DamageEventAmount)))) + <Empty String>)) at TempLoc1 with Z offset 100.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-




Custom script: call RemoveLocation(udg_TempLoc1)
-




Floating Text - Change (Last created floating text): Disable permanence
-




Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-




Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
-




Floating Text - Set the velocity of (Last created floating text) to 80.00 towards 90.00 degrees
-
-
-
-


