the Lumpy
►►►
- Reaction score
- 53
I tried to make a trigger where I could type a command and a number to change the level of my hero, but I'm having some problems.
Here is my trigger:
Any ideas?
Help is appreciated.
- If I type any number less than or equal to 6,000 it sets it to that.
- If I type any number greater than 6,000 it either stays the same or goes up to 3,754.
Here is my trigger:
Code:
Set Level
Events
Player - Player 1 (Red) types a chat message containing 'level as A substring
Player - Player 2 (Blue) types a chat message containing 'level as A substring
Player - Player 3 (Teal) types a chat message containing 'level as A substring
Conditions
Actions
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Picked unit)) Equal to (Triggering player)
((Owner of (Picked unit)) is in DMs) Equal to False
Then - Actions
Hero - Set (Picked unit) Hero-level to (Integer((Substring((Entered chat string), 8, (Length of (Entered chat string)))))), Show level-up graphics
Else - Actions
Any ideas?
Help is appreciated.