Hey i'm a bit noob in making triggers, and i need some help!
This is a trigger of my Sheep Tag map.
Atm, everyone will get gold as you see. But i want to make a trigger which gives a different amount of gold to the sheeps and the wolves.
I want it to work like this "-gold X Y" , X = the gold amount for sheeps, Y = for wolves.
But i dunno how to make it work...:thdown: please help
This is a trigger of my Sheep Tag map.
Trigger:
- Gold
- Events
- Player - Player 1 (Red) types a chat message containing -gold as A substring
- Player - Player 2 (Blue) types a chat message containing -gold as A substring
- Player - Player 3 (Teal) types a chat message containing -gold as A substring
- Player - Player 4 (Purple) types a chat message containing -gold as A substring
- Player - Player 5 (Yellow) types a chat message containing -gold as A substring
- Player - Player 6 (Orange) types a chat message containing -gold as A substring
- Player - Player 7 (Green) types a chat message containing -gold as A substring
- Player - Player 8 (Pink) types a chat message containing -gold as A substring
- Player - Player 9 (Gray) types a chat message containing -gold as A substring
- Player - Player 10 (Light Blue) types a chat message containing -gold as A substring
- Player - Player 11 (Dark Green) types a chat message containing -gold as A substring
- Player - Player 12 (Brown) types a chat message containing -gold as A substring
- Conditions
- (Triggering player) Equal to GameController
- (Substring((Entered chat string), 1, 5)) Equal to -gold
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) Greater than 10000000
- Then - Actions
- Set TempInt1 = 10000000
- Else - Actions
- Set TempInt1 = (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string))))))
- If - Conditions
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- Player - Set (Picked player) Current gold to TempInt1
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Atm, everyone will get gold as you see. But i want to make a trigger which gives a different amount of gold to the sheeps and the wolves.
I want it to work like this "-gold X Y" , X = the gold amount for sheeps, Y = for wolves.
But i dunno how to make it work...:thdown: please help