Hello guys,
I need a trigger, which makes a player lose 40% of his current gold after his hero dies.
Thanks in advance
I need a trigger, which makes a player lose 40% of his current gold after his hero dies.
-
Death
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Not equal to Protector
-
-

Actions
-


Set VariableSet Real_Gold = (1 / 40)
-


Player - Add (((Owner of (Dying unit)) Current gold) - (((Owner of (Dying unit)) Current gold) x Real_Gold)) to (Owner of (Dying unit)).Current gold
-
-
Thanks in advance
Last edited:
