- Joined
- Apr 14, 2012
- Messages
- 2,906
Ok so I've tried to make a level up trigger for my map. I did everything right, didn't I? But I can't figure out what's wrong with my trigger:
-
lvlup
-

Events
-


Player - (Owner of Defender Of Light 0001 <gen>) types a chat message containing -lvlup as An exact match
-
-

Conditions
-


(Substring((Entered chat string), 1, 7)) Equal to -lvlup
-
-

Actions
-


Set LV_Temp_Int = (Integer((Substring((Entered chat string), 8, (Length of (Entered chat string))))))
-


Set LV_Group = (Units currently selected by (Triggering player))
-


Unit Group - Pick every unit in LV_Group and do (Actions)
-



Loop - Actions
-




Hero - Set (Triggering unit) Hero-level to ((Hero level of (Picked unit)) + LV_Temp_Int), Show level-up graphics
-
-
-


Custom script: call DestroyGroup(udg_LV_Group)
-
-
