• 🏆 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 5
Joined
Apr 12, 2009
Messages
125
This trigger doesn't work...

  • SendCheckOn
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • If (((Player 1 (Red) slot status) Equal to Is playing) or ((Player 2 (Blue) slot status) Equal to Is playing)) then do (Set SendCheck[1] = True) else do (Do nothing)
      • If (((Player 3 (Teal) slot status) Equal to Is playing) or ((Player 4 (Purple) slot status) Equal to Is playing)) then do (Set SendCheck[1] = True) else do (Do nothing)
      • If (((Player 5 (Yellow) slot status) Equal to Is playing) or ((Player 6 (Orange) slot status) Equal to Is playing)) then do (Set SendCheck[1] = True) else do (Do nothing)
How should it be? With If/then/else - Multiple??

Help me! :p
 
Level 5
Joined
Apr 12, 2009
Messages
125
And it doesn't change it to true? Are you sure you want to use the same index for all teams?

It doesn't change anything.

Same index? What you mean?

Well, here's the other trigger....

  • Team1 Send
    • Events
      • Unit - A unit enters RedSend <gen>
      • Unit - A unit enters BlueSend <gen>
    • Conditions
      • ((Owner of (Entering unit)) Equal to Player 1 (Red)) or ((Owner of (Entering unit)) Equal to Player 2 (Blue))
      • ((Entering unit) is Mechanical) Not equal to True
    • Actions
      • If ((Unit-type of (Entering unit)) Equal to Chicken (Level 1)) then do (Set Income_T1 = (Income_T1 + 2)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Frog (Level 2)) then do (Set Income_T1 = (Income_T1 + 3)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Raccoon (Level 3)) then do (Set Income_T1 = (Income_T1 + 4)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Dog (Level 4)) then do (Set Income_T1 = (Income_T1 + 5)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Boar (Level 5)) then do (Set Income_T1 = (Income_T1 + 7)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Fel Boar (Level 6)) then do (Set Income_T1 = (Income_T1 + 10)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Stag (Level 7)) then do (Set Income_T1 = (Income_T1 + 15)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Hermit Crab (Level 8)) then do (Set Income_T1 = (Income_T1 + 20)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Forest Spider (Level 9)) then do (Set Income_T1 = (Income_T1 + 30)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Night Creature (Level 10)) then do (Set Income_T1 = (Income_T1 + 40)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Lizard (Level 11)) then do (Set Income_T1 = (Income_T1 + 50)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Wild Lizard (Level 12)) then do (Set Income_T1 = (Income_T1 + 80)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Shore Crab (Level 13)) then do (Set Income_T1 = (Income_T1 + 50)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Jungle Crawler (Level 14)) then do (Set Income_T1 = (Income_T1 + 65)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Turtle Hatchling (Level 15)) then do (Set Income_T1 = (Income_T1 + 90)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Outraged Turtle (Level 16)) then do (Set Income_T1 = (Income_T1 + 150)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Beetle (Level 17)) then do (Set Income_T1 = (Income_T1 + 200)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Spiritual Wolf (Level 18)) then do (Set Income_T1 = (Income_T1 + 350)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Scorpion (Level 19)) then do (Set Income_T1 = (Income_T1 + 500)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Bear (Level 20)) then do (Set Income_T1 = (Income_T1 + 750)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Grown Crab (Level 21)) then do (Set Income_T1 = (Income_T1 + 1250)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Small Mammoth (Level 22)) then do (Set Income_T1 = (Income_T1 + 2000)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Wolf (Level 23)) then do (Set Income_T1 = (Income_T1 + 3500)) else do (Do nothing)
      • If ((Unit-type of (Entering unit)) Equal to Polar Bear (Level 24)) then do (Set Income_T1 = (Income_T1 + 5000)) else do (Do nothing)
      • Set Spawn[1] = (Center of Team 2 Spawn <gen>)
      • Set Spawn[2] = (Center of Team 3 Spawn <gen>)
      • Unit - Remove (Entering unit) from the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SendCheck[2] Equal to True
        • Then - Actions
          • Unit - Create 1 (Unit-type of (Entering unit)) for Player 7 (Green) at Spawn[1] facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SendCheck[3] Equal to True
        • Then - Actions
          • Unit - Create 1 (Unit-type of (Entering unit)) for Player 7 (Green) at Spawn[2] facing Default building facing degrees
        • Else - Actions
      • Custom script: call RemoveLocation (udg_Spawn[1])
      • Custom script: call RemoveLocation (udg_Spawn[2])
 
Level 5
Joined
May 3, 2009
Messages
129
  • Melee Initialization
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Player 1 (Red) slot status) Equal to Is playing
              • (Player 2 (Blue) slot status) Equal to Is playing
              • (Player 3 (Teal) slot status) Equal to Is playing
              • (Player 4 (Purple) slot status) Equal to Is playing
              • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set team[1] = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Player 6 (Orange) slot status) Equal to Is playing
              • (Player 7 (Green) slot status) Equal to Is playing
              • (Player 8 (Pink) slot status) Equal to Is playing
              • (Player 9 (Gray) slot status) Equal to Is playing
              • (Player 10 (Light Blue) slot status) Equal to Is playing
        • Then - Actions
          • Set team[2] = True
        • Else - Actions
 
Level 5
Joined
Apr 12, 2009
Messages
125
  • Melee Initialization
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Player 1 (Red) slot status) Equal to Is playing
              • (Player 2 (Blue) slot status) Equal to Is playing
              • (Player 3 (Teal) slot status) Equal to Is playing
              • (Player 4 (Purple) slot status) Equal to Is playing
              • (Player 5 (Yellow) slot status) Equal to Is playing
        • Then - Actions
          • Set team[1] = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Player 6 (Orange) slot status) Equal to Is playing
              • (Player 7 (Green) slot status) Equal to Is playing
              • (Player 8 (Pink) slot status) Equal to Is playing
              • (Player 9 (Gray) slot status) Equal to Is playing
              • (Player 10 (Light Blue) slot status) Equal to Is playing
        • Then - Actions
          • Set team[2] = True
        • Else - Actions

Thank You very much! Pretty easy trigger... +rep! :D
 
Status
Not open for further replies.
Top