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

i dont know why this trigger dont work

Status
Not open for further replies.
Level 11
Joined
Nov 13, 2010
Messages
211
it dos spawn a unit but only the first one i try to restart game many times also try reloading game many times but it seams it only spawns the first one on the list and i dont know why
can any one help out ?
  • test
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 23, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Set VariableSet Random = (Random integer number between 1 and 3)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Random Equal to 1
                • Then - Actions
                  • Unit - Create 1 Blood Mage for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Random Equal to 2
                • Then - Actions
                  • Unit - Create 1 Mountain King for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Random Equal to 3
                • Then - Actions
                  • Unit - Create 1 Archmage for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                • Else - Actions
            • Else - Actions
 
Level 11
Joined
Nov 13, 2010
Messages
211
i also try to do this
  • builders
    • Events
      • Time - Builder_timer expires
    • Conditions
    • Actions
      • Set VariableSet Random = (Random integer number between 1 and 6)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 1
        • Then - Actions
          • Trigger - Run builder 1 <gen> (checking conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 2
        • Then - Actions
          • Trigger - Run builder 2 <gen> (checking conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 3
        • Then - Actions
          • Trigger - Run builder 3 <gen> (checking conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 4
        • Then - Actions
          • Trigger - Run builder 4 <gen> (checking conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 5
        • Then - Actions
          • Trigger - Run builder 5 <gen> (checking conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 6
        • Then - Actions
          • Trigger - Run builder 6 <gen> (checking conditions)
        • Else - Actions
--
  • builder 1
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 23, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
              • Lives[(Player number of (Player((Integer A))))] Greater than 0
            • Then - Actions
              • Unit - Create 1 Blood Mage for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
            • Else - Actions
but they both spawns same unit evey time i reload the map so what one is the better nr 1 or nr 2
or dos non of them work ?
 
Status
Not open for further replies.
Top