• 🏆 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!

The conditions doesn't work

Status
Not open for further replies.
Level 8
Joined
Jul 18, 2010
Messages
332
Player Group - Pick every player in team2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Picked player) slot status) Equal to Is playing
((Picked player) controller) Equal to User
Then - Actions
Trigger - Turn off reviving heroes <gen>
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
Set team2units = (Units owned by (Picked player) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False)))
Unit Group - Pick every unit in team2units and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Region 011 <gen>)
Set team2player = (Picked unit)
Item - Create Ankh of Reincarnation at (Position of (Picked unit))
Camera - Pan camera for (Picked player) to (Center of Region 011 <gen>) over 0.25 seconds
Camera - Set the camera bounds for (Picked player) to Region 023 <gen>
Trigger - Turn on furnace of hell <gen>
Player Group - Pick every player in team1 and do (Actions)
Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
Set team1units = (Units owned by (Picked player) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False)))
Unit Group - Pick every unit in team1units and do (Actions)
Loop - Actions
Unit - Pause (Picked unit)
Camera - Pan camera for (Picked player) to (Center of Region 011 <gen>) over 0.25 seconds
Camera - Set the camera bounds for (Picked player) to Region 023 <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Picked player) slot status) Equal to Is unused
((Picked player) slot status) Equal to Has left the game
((Picked player) controller) Not equal to User
Then - Actions
Quest - Display to (All players) the Quest Failed message: Hero Dungeon Failed...
Unit - Unpause all units
Set herodungeonboss = boss
Player Group - Pick every player in team1 and do (Actions)
Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
Player Group - Pick every player in team2 and do (Actions)
Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
Else - Actions
 
Level 6
Joined
Jan 3, 2010
Messages
185
Please Wrap that in Trigger tags next time...

  • Player Group - Pick every player in team2 and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • ((Picked player) slot status) Equal to Is playing
              • ((Picked player) controller) Equal to User
        • Then - Actions
          • Trigger - Turn off reviving heroes <gen>
          • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
          • Set team2units = (Units owned by (Picked player) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False)))
          • Unit Group - Pick every unit in team2units and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Center of Region 011 <gen>)
              • Set team2player = (Picked unit)
              • Item - Create Ankh of Reincarnation at (Position of (Picked unit))
          • Camera - Pan camera for (Picked player) to (Center of Region 011 <gen>) over 0.25 seconds
          • Camera - Set the camera bounds for (Picked player) to Region 023 <gen>
          • Trigger - Turn on furnace of hell <gen>
          • Player Group - Pick every player in team1 and do (Actions)
            • Loop - Actions
              • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
              • Set team1units = (Units owned by (Picked player) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False)))
              • Unit Group - Pick every unit in team1units and do (Actions)
                • Loop - Actions
                  • Unit - Pause (Picked unit)
              • Camera - Pan camera for (Picked player) to (Center of Region 011 <gen>) over 0.25 seconds
              • Camera - Set the camera bounds for (Picked player) to Region 023 <gen>
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • ((Picked player) slot status) Equal to Is unused
              • ((Picked player) slot status) Equal to Has left the game
              • ((Picked player) controller) Not equal to User
        • Then - Actions
          • Quest - Display to (All players) the Quest Failed message: Hero Dungeon Failed...
          • Unit - Unpause all units
          • Set herodungeonboss = boss
          • Player Group - Pick every player in team1 and do (Actions)
            • Loop - Actions
              • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
          • Player Group - Pick every player in team2 and do (Actions)
            • Loop - Actions
              • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
        • Else - Actions
And umm is that first
  • Loop - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • --->Or - Any (Conditions) are true<---
          • Conditions
            • ((Picked player) slot status) Equal to Is playing
            • ((Picked player) controller) Equal to User
Nessacary?

I would think that would mean even if its set to AI the trigger will run
 
Status
Not open for further replies.
Top