• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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