D
Draygonia
Guest
How would I implement this trigger? I think I could think of one way, but that means making a seperate trigger for each player allying each other player and I dont think thats the best way to go about it.
Alliance
Events
Player - Player 1 (Red) types a chat message containing -ally as A substring
Player - Player 2 (Blue) types a chat message containing -ally as A substring
Player - Player 3 (Teal) types a chat message containing -ally as A substring
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -ally red
(Triggering player) Not equal to Player 1 (Red)
Then - Actions
Player - Make (Triggering player) treat Player 1 (Red) as an Ally
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -ally blue
(Triggering player) Not equal to Player 2 (Blue)
Then - Actions
Player - Make (Triggering player) treat Player 2 (Blue) as an Ally
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -ally teal
(Triggering player) Not equal to Player 3 (Teal)
Then - Actions
Player - Make (Triggering player) treat Player 3 (Teal) as an Ally
Else - Actions
Events
Map initialization
Conditions
Actions
Set Colours_Player[1] = red
Set Colours_Player[2] = blue
Set Colours_Player[3] = teal
....etc etc for all 12
Events
Player - Player 1 (Red) types a chat message containing -ally as A substring
Player - Player 2 (Blue) types a chat message containing -ally as A substring
....etc etc for all 12
Conditions
(String((Substring((Entered chat string), 1, 5))) as Lower case) Equal to -ally
Actions
For each (Integer A) from 1 to 12, 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
(String((Substring((Entered chat string), 7, (Length of (Entered chat string))))) as Lower case) Equal to (Name of (Player((Integer A))))
(String((Substring((Entered chat string), 7, (Length of (Entered chat string))))) as Lower case) Equal to Colours_Player[(Integer A)]
Then - Actions
Player - Make (Triggering player) treat (Player((Integer A))) as an Ally with shared vision
Else - Actions
patience my young padawanKershbob said:Takes ages to make though