- Joined
- Jun 7, 2008
- Messages
- 440
Trigger 1
Event
-Map initalization
Conditions
Actions
-(if player(color) equal to is playing) then do (add player to (Player group) else do nothing
-(if player(color) equal to is playing) then do (set (player) = (player) +1
Trigger 2 <this group is designated only for enemies of force 1>
Events
-Map Initialization
Conditions
Actions
-(if player(color2) equal to is playing) then do (add Player to (Player group2)
-(if player(color2) equal to is playing) then do (set (player2) = (player2)+1
Trigger 3
Events
- unit - a unit dies
Conditions
- (unittype of (dying unit)) equal to King
Actions
- Unit - (Pick every unit from (owner of dying unit)) and do kill Picked unit
- Player - Remove (owner of dying unit) from (player group)
- set (player) = (player) -1
(I HAVE ANOTHER TRIGGER THATS THE SAME FOR FORCE 2)
Trigger 4
Events
- every 24 seconds of game time
Conditions
Actions
- (If (player) equal to 1 and (player2) equal to 0 then do (player group - pick every player in (player group) and do Game - victory(picked player) (Show dialogs, show scores))) else do nothing.
If this isnt understandable due to typing of what i thought to be the correct trigger, i have this category labelled solo victory. If there are no enemies and no more allies then the the player group gets victory( i did it this way, because i really didnt know how to make it so that each individual player could get the win. Once an ally dies hes removed from the player group. So really, there could only be one winner. But for some reason. when i tested this. there was no victory game kept on going. What am i missing??
Event
-Map initalization
Conditions
Actions
-(if player(color) equal to is playing) then do (add player to (Player group) else do nothing
-(if player(color) equal to is playing) then do (set (player) = (player) +1
Trigger 2 <this group is designated only for enemies of force 1>
Events
-Map Initialization
Conditions
Actions
-(if player(color2) equal to is playing) then do (add Player to (Player group2)
-(if player(color2) equal to is playing) then do (set (player2) = (player2)+1
Trigger 3
Events
- unit - a unit dies
Conditions
- (unittype of (dying unit)) equal to King
Actions
- Unit - (Pick every unit from (owner of dying unit)) and do kill Picked unit
- Player - Remove (owner of dying unit) from (player group)
- set (player) = (player) -1
(I HAVE ANOTHER TRIGGER THATS THE SAME FOR FORCE 2)
Trigger 4
Events
- every 24 seconds of game time
Conditions
Actions
- (If (player) equal to 1 and (player2) equal to 0 then do (player group - pick every player in (player group) and do Game - victory(picked player) (Show dialogs, show scores))) else do nothing.
If this isnt understandable due to typing of what i thought to be the correct trigger, i have this category labelled solo victory. If there are no enemies and no more allies then the the player group gets victory( i did it this way, because i really didnt know how to make it so that each individual player could get the win. Once an ally dies hes removed from the player group. So really, there could only be one winner. But for some reason. when i tested this. there was no victory game kept on going. What am i missing??