Basically, i wanna add a Trigger, so when i type -IT 100
it adds 100 score to that player i have selected
but want it so only my username can use that command, and the number is whatever i put, so if i put 250, it gives 250, if i do 10 it gives 10
wanted it to add to player interger, so Set variable[Player Number Selected Unit] + 10
Reason one of my maps use a save/load system for interger, however since latest W3 patch like 50% of players lost there score, and only way to fix it is new version per person lost score, so wanna add command so i can just give them it to any anytimes
i got this, and it works but only to player 1
it adds 100 score to that player i have selected
but want it so only my username can use that command, and the number is whatever i put, so if i put 250, it gives 250, if i do 10 it gives 10
wanted it to add to player interger, so Set variable[Player Number Selected Unit] + 10
Reason one of my maps use a save/load system for interger, however since latest W3 patch like 50% of players lost there score, and only way to fix it is new version per person lost score, so wanna add command so i can just give them it to any anytimes
i got this, and it works but only to player 1
-
GiveInt
-
Events
-
Player - Player 1 (Red) types a chat message containing -IT as A substring
-
Player - Player 2 (Blue) types a chat message containing -IT as A substring
-
Player - Player 3 (Teal) types a chat message containing -IT as A substring
-
Player - Player 4 (Purple) types a chat message containing -IT as A substring
-
Player - Player 5 (Yellow) types a chat message containing -IT as A substring
-
Player - Player 6 (Orange) types a chat message containing -IT as A substring
-
Player - Player 7 (Green) types a chat message containing -IT as A substring
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Name of (Triggering player)) Equal to CBKing#2554
-
-
Then - Actions
-
Set VariableSet ITGive = (Real((Substring((Entered chat string), 6, (Length of (Entered chat string))))))
-
Set VariableSet ITSet = (Integer(ITGive))
-
Set VariableSet IT[(Player number of Player 1 (Red))] = (IT[(Player number of Player 1 (Red))] + ITSet)
-
-
Else - Actions
-
-
-
Last edited: