- Joined
- Oct 29, 2010
- Messages
- 18
Hello, im making a map and i need a simple debug trigger for testing my map.
I have made one level up trigger, but i have managed to make one wich the hero go up only level by one and i dont know how to make a trigger that one could type the level he wanted, something like -lvl 25, and he goes to level 25(like the one from dota.
If someone could make this trigger for me, i will be very thankful and +rep will be added for such help.
Thanks.
I have made one level up trigger, but i have managed to make one wich the hero go up only level by one and i dont know how to make a trigger that one could type the level he wanted, something like -lvl 25, and he goes to level 25(like the one from dota.
-
Levelup Heroes
-
Events
- Player - Player 1 (Red) types a chat message containing -lvl as An exact match
- Conditions
-
Actions
- Set temp_group2 = (Units currently selected by (Triggering player))
-
Unit Group - Pick every unit in temp_group2 and do (Actions)
-
Loop - Actions
- Custom script: local unit u = GetEnumUnit()
- Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
- Custom script: set u = null
- Custom script: call DestroyGroup(udg_temp_group2)
-
Loop - Actions
-
Events
Thanks.
Last edited: