- Joined
- Jun 7, 2008
- Messages
- 440
I have these two triggers:
-
Events
- Player - Player 1 (Red) types a chat message containing -st as An exact match
- Player - Player 2 (Blue) types a chat message containing -st as An exact match
- Player - Player 3 (Teal) types a chat message containing -st as An exact match
- Player - Player 4 (Purple) types a chat message containing -st as An exact match
- Player - Player 5 (Yellow) types a chat message containing -st as An exact match
- Player - Player 6 (Orange) types a chat message containing -st as An exact match
- Player - Player 7 (Green) types a chat message containing -st as An exact match
- Player - Player 8 (Pink) types a chat message containing -st as An exact match
- Player - Player 9 (Gray) types a chat message containing -st as An exact match
- Player - Player 11 (Dark Green) types a chat message containing -st as An exact match
-
Conditions
- (Triggering player) Equal to Host
-
Actions
- Countdown Timer - Pause Mode_Selection
- Countdown Timer - Destroy (Last created timer window)
- Unit - Unpause all units
- Set SameTeamMode = True
- Unit Group - Pick every unit in (Units in Hero Circle <gen>) and do (Unit - Remove (Picked unit) from the game)
- Game - Display to (All players) the message: (|cff085208SAME|r + (|cff291073TEAM|r + Mode has been chosen. |cffffcc00Computer will now generate heros.|r))
- Unit Group - Pick every unit in (Units in Visiblity Modifier Hero <gen>) and do (Unit Group - Add (Picked unit) to All_Random)
- Trigger - run Enable AR <gen> (checking conditions)
- Game - Display to (All players) the message: (|cff085208ALL|r + (|cff291073RANDOM|r + has been disabled.))
- Player Group - Pick every player in LightPlayers_Group and do (Trigger - Run SameTeam Mode <gen> (checking conditions))
- Countdown Timer - Start Event_Timer as a One-shot timer that will expire in 140.00 seconds
- Countdown Timer - Create a timer window for Event_Timer with title Hero Selection:
- Countdown Timer - Start SpellCheck as a Repeating timer that will expire in 10.00 seconds
- Trigger - Destroy (This trigger)
- Events
-
Conditions
- SameTeamMode Equal to True
- (Number of units in (Units owned by (Picked player) matching (((Matching unit) is A Hero) Equal to True))) Less than 1
-
Actions
- Set RandomUnitLight = (Random unit from All_Random)
- Set LightSameTeam_Player = (Random player from LightPlayers_Group)
- Set DarkSameTeam_Player = (Random player from DarkPlayers_Group)
- Unit - Hide RandomUnitLight
- Set UnitName = (( + ((Name of RandomUnitLight) + )))
- Unit - Create 1 (Unit-type of RandomUnitLight) for LightSameTeam_Player at (Center of Light Teleport Base <gen>) facing (Position of (Triggering unit))
- Set Players_Hero[(Player number of (Owner of RandomUnitLight))] = RandomUnitLight
- Player - Set name of LightSameTeam_Player to (Stored_Players[(Player number of LightSameTeam_Player)] + UnitName)
- Unit Group - Remove RandomUnitLight from All_Random
- Unit - Set mana of RandomUnitLight to 100.00%
- Unit Group - Add RandomUnitLight to LightHero
- Set RandomUnitDark = RandomUnitLight
- Unit - Create 1 (Unit-type of RandomUnitDark) for DarkSameTeam_Player at (Center of Brown No entry Zone <gen>) facing (Position of (Triggering unit))
- Set Players_Hero[(Player number of (Owner of RandomUnitDark))] = RandomUnitDark
- Player - Set name of DarkSameTeam_Player to (Stored_Players[(Player number of DarkSameTeam_Player)] + UnitName)
- Unit - Set mana of RandomUnitDark to 100.00%
- Unit Group - Add RandomUnitDark to DarkHero
- Set UnitName = Empty String
- Set RandomUnitDark = No unit
- Set RandomUnitDark = No unit
Last edited: