• 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] Trigger help

Status
Not open for further replies.
Level 9
Joined
Apr 5, 2008
Messages
443
ok im very confused as to why this is doing this. any help would be great heres the triggers

all variables involved in these triggers are Team1mem1 a player Team1mem2 another player Team1 a dialog button and ChooseTeam a Dialog box
  • Team1mem1
    • Events
      • Dialog - A dialog button is clicked for ChooseTeam
    • Conditions
      • (Clicked dialog button) equal to Team1
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Team1mem1 is in (All players)) Equal to False
        • Then - Actions
          • Player - Make (Triggering player) treat Team1mem2 as an Ally with shared vision
          • Set Team1mem1 = (triggering player)
        • Else - Actions
          • Do nothing
  • Team1mem2
    • Events
      • Dialog - A dialog button is clicked for ChooseTeam
    • Conditions
      • (Clicked dialog button) equal to Team1
      • (Team1mem1 is in (All players)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Team1mem2 is in (All players)) Equal to False
        • Then - Actions
          • Player - Make (Triggering player) treat Team1mem1 as an Ally with shared vision
          • Set Team1mem2 = (triggering player)
        • Else - Actions
          • Game - Display to (Player group((Triggering player))) the text: That team is full, ...
          • Dialog - Show ChooseTeam for (Triggering player)
and the same for team 2 yet when you click the team 1 or 2 buttons it makes you team 1 member 2 (if team 1) or team 2 member 2 (if team 2) and when more players try to join the same team it goes to the else commands of the second trigger.
 
Status
Not open for further replies.
Top