GUI TRIGGER ONLY
Code:
Actions
Unit Group- Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
Loop - Actions
Hero - Set (Picked unit) Hero -level to (Integer((Substring((Entered chat string), 5, 20)))), Hide level-up graphics
ok, go new actions then go "action type" and select
'unit group', then click on the blue text, then look for
'Units seclected' in function drop-down.
Click ok then ok.
Then the 'Loop- Actions' will appear, then right click it and click 'New Action'
and pick '
Hero' for 'Action type'. Then pick
'set level'.
then click on blue
(triggering unit) and go to 'function' and click on
'picked unit'. Then Click blue '
2' and then go to function then click
'Conversion - Convert String To Integer' then click on blue '
(Entered chat string)'. Then click
'substring' in function. Click on red '
string'. Now click on
'Event Response - Entered Chat String' in function. Click ok, the click on blue '
1' and set the value to 5. Click ok then click on other blue '
5' and set it to 20. Click ok, then ok, then finally ok and ur set to go!
this 1 in my cases is for 1 player of any color, for more players, copy them and paste to the number of desired players and double click the created action trigger and change the players
hope u could understand this
Action Type
2nd action type thing (idk what it is called)
function
editable trigger's part
MUST be edited in order to click Ok