• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Look this over what am i missing?

Status
Not open for further replies.
Level 9
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??
 
Level 10
Joined
Jun 26, 2005
Messages
236
You might want to check what the variables are equal to using debug/game messages. This will make it easier to find out what the problem is.

Please use
Code:
[trigger][trigger/]
tags next time.
 
Level 9
Joined
Jun 7, 2008
Messages
440
well now. your the first person to tell me how to do that. thanks alot. I will use those tags in the future. As to what you said. I dont understand what you said. I know how to check the variables. but what do you mean checking themusing debug/game messages. i dont understand that.

Edit: I found the problem. :p though i would still like to know what you meant by that statement.
 
Last edited:
Status
Not open for further replies.
Top