I post way to often on here...
I've tried giving the hero/player Gain_XP/10, but that just gives 0.
-
Gold and XP System
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 12 (Brown)
-
(Owner of (Dying unit)) Equal to Neutral Hostile
-
-
-
-
Actions
-
Set Gain_XP = (Random integer number between (Level of (Dying unit)) and ((Level of (Dying unit)) + 5))
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 1100.00 of (Position of (Killing unit)) matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True)))) and do (Actions)
-
Loop - Actions
-
Hero - Add Gain_XP experience to (Picked unit), Show level-up graphics
-
Floating Text - Create floating text that reads (+ + ((String(Gain_XP)) + coins)) above (Picked unit) with Z offset 0.00, using font size 10.00, color (80.00%, 80.00%, 40.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 270.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
-
-------- -- --------
-
Player - Add Gain_XP to (Owner of (Picked unit)) Current gold
-
Floating Text - Create floating text that reads (+ + ((String(Gain_XP)) + xp)) above (Picked unit) with Z offset 0.00, using font size 10.00, color (66.00%, 99.00%, 66.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 60.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.00 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
-
-
-
-
-
-
I've tried giving the hero/player Gain_XP/10, but that just gives 0.