Leveling
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
Actions
Set EXP_count[(Player number of (Owner of (Killing unit)))] = (EXP_count[(Player number of (Owner of (Killing unit)))] + 1.00)
Game - Display to (All players) the text: (String(EXP_count[1]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EXP_count[(Player number of (Owner of (Killing unit)))] Greater than or equal to ((Real((Hero level of (Killing unit)))) + 1.00)
Then - Actions
Hero - Set (Killing unit) Hero-level to ((Hero level of (Killing unit)) + 1), Show level-up graphics
Set EXP_count[(Player number of (Owner of (Killing unit)))] = 0.00
Else - Actions
Do nothing
For some reason that didn't work. Hero has disable exp gain, but i tryed enabling it before usint the set hero-level and nothing changed. So i guess that's not the problem.