- Joined
- May 11, 2012
- Messages
- 2,103
what is wrong in here that it won't run...
-
Give Gold or Wood
-
Events
- Player - Player 1 (Red) types a chat message containing -give gold to as A substring
- Player - Player 2 (Blue) types a chat message containing -give gold to as A substring
- Player - Player 3 (Teal) types a chat message containing -give gold to as A substring
- Player - Player 4 (Purple) types a chat message containing -give gold to as A substring
- Player - Player 5 (Yellow) types a chat message containing -give gold to as A substring
- Player - Player 6 (Orange) types a chat message containing -give gold to as A substring
- Player - Player 7 (Green) types a chat message containing -give gold to as A substring
- Player - Player 8 (Pink) types a chat message containing -give gold to as A substring
- Player - Player 1 (Red) types a chat message containing -give wood to as A substring
- Player - Player 2 (Blue) types a chat message containing -give wood to as A substring
- Player - Player 3 (Teal) types a chat message containing -give wood to as A substring
- Player - Player 4 (Purple) types a chat message containing -give wood to as A substring
- Player - Player 5 (Yellow) types a chat message containing -give wood to as A substring
- Player - Player 6 (Orange) types a chat message containing -give wood to as A substring
- Player - Player 7 (Green) types a chat message containing -give wood to as A substring
- Player - Player 8 (Pink) types a chat message containing -give wood to as A substring
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring((Entered chat string), 1, 13)) Equal to -give gold to
-
Then - Actions
- Set TempString = (Entered chat string)
- Set SubString = (Substring(TempString, 13, 22))
-
For each (Integer TempInt) from 1 to PlayerSlotStatusInteger, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SubString Equal to ( player + (String(TempInt)))
-
Then - Actions
- Trigger - Turn off (This trigger)
- Set GiveGoldorWood_TrigPlayer[1] = (Triggering player)
- Set GiveGoldorWood_TrigPlayer[2] = (Player(TempInt))
- Set PlayerGroup = (Player group(GiveGoldorWood_TrigPlayer[1]))
- Game - Display to PlayerGroup the text: |c00FFD700Specify t...
- Custom script: call DestroyForce(udg_PlayerGroup)
- Custom script: set udg_PlayerGroup = null
- Trigger - Turn on Specifying the Amount of Gold <gen>
- Trigger - Add to Specifying the Amount of Gold <gen> the event (Player - GiveGoldorWood_TrigPlayer[1] types a chat message containing <Empty String> as An exact match)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set TempString = <Empty String>
- Set SubString = <Empty String>
-
Else - Actions
- Set TempString = (Entered chat string)
- Set SubString = (Substring(TempString, 13, 22))
-
For each (Integer TempInt) from 1 to PlayerSlotStatusInteger, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SubString Equal to ( player + (String(TempInt)))
-
Then - Actions
- Trigger - Turn off (This trigger)
- Set GiveGoldorWood_TrigPlayer[1] = (Triggering player)
- Set GiveGoldorWood_TrigPlayer[2] = (Player(TempInt))
- Set PlayerGroup = (Player group(GiveGoldorWood_TrigPlayer[1]))
- Game - Display to PlayerGroup the text: |c00FFD700Specify t...
- Custom script: call DestroyForce(udg_PlayerGroup)
- Custom script: set udg_PlayerGroup = null
- Trigger - Turn on Specifying the Amount of Wood <gen>
- Trigger - Add to Specifying the Amount of Wood <gen> the event (Player - GiveGoldorWood_TrigPlayer[1] types a chat message containing <Empty String> as An exact match)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set TempString = <Empty String>
- Set SubString = <Empty String>
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events