nome
New Member
- Reaction score
- 0
well i need to make a floating text, when a unit dies.
its something like this:
If - Conditions
(Unit-type of (Dying unit)) Equal to Hormiga
Then - Actions
Hero - Add ((Level of (Triggering unit)) x 4) experience to (Killing unit), Show level-up graphics
Floating Text - Create floating text that reads (HERE COMES MY TEXT) at (Position of (Dying unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
my text should say: You have won (Level of (Triggering unit)) x 4) experience
but i need a way to make it universal for every unit..
i have 37 units
Is there a way to save the amount of exp that my hero has just won into a Variable?
so in the text i can use the Variable instead of different texts?
also:
---
when i'm attacking a unit, and i'm about to kill it, if an enemy comes
or an ally comes (the exp is not shared with allies) and kill it, he takes the whole experience and i get nothing..
is there a way to make the unit attacked, to give only exp to the first player who attacked it?
thanks!!
its something like this:
If - Conditions
(Unit-type of (Dying unit)) Equal to Hormiga
Then - Actions
Hero - Add ((Level of (Triggering unit)) x 4) experience to (Killing unit), Show level-up graphics
Floating Text - Create floating text that reads (HERE COMES MY TEXT) at (Position of (Dying unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
my text should say: You have won (Level of (Triggering unit)) x 4) experience
but i need a way to make it universal for every unit..
i have 37 units
Is there a way to save the amount of exp that my hero has just won into a Variable?
so in the text i can use the Variable instead of different texts?
also:
---
when i'm attacking a unit, and i'm about to kill it, if an enemy comes
or an ally comes (the exp is not shared with allies) and kill it, he takes the whole experience and i get nothing..
is there a way to make the unit attacked, to give only exp to the first player who attacked it?
thanks!!