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

Something wrong with trigger

Status
Not open for further replies.
Level 7
Joined
Nov 18, 2012
Messages
272
  • Events
    • Unit - A unit Gains a level
  • Conditions
    • (Owner of (Triggering unit)) Equal to goodguys
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Picked unit)) Equal to Belora
      • Then - Actions
        • Set Heroskill = Will-O-Wisp
        • Set Heroskill_Copy = Life Gift/Steal Good
        • Set Heroskill_Copy_2 = Alternate
        • Set Heroskill_Copy_3 = Ultimate good
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Unit-type of (Picked unit)) Equal to Belora
          • Then - Actions
            • Set Heroskill = Will-O-Wisp Evil
            • Set Heroskill_Copy = Life Gift/Steal Evil
            • Set Heroskill_Copy_2 = Alternate
            • Set Heroskill_Copy_3 = Ultimate Evil
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Unit-type of (Picked unit)) Equal to Scorcha
              • Then - Actions
                • Set Heroskill = Toungues of Flame
                • Set Heroskill_Copy = Explosions
                • Set Heroskill_Copy_2 = Phase Shifter
                • Set Heroskill_Copy_3 = Portal of Damnation
              • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Unit-type of (Picked unit)) Equal to Ace
                  • Then - Actions
                    • Set Heroskill = Infused Shot
                    • Set Heroskill_Copy = Flip a Coin
                    • Set Heroskill_Copy_2 = Bet Soul
                    • Set Heroskill_Copy_3 = Dragon's Roulette
                  • Else - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • (Unit-type of (Picked unit)) Equal to Hypnos
                      • Then - Actions
                        • Set Heroskill = Sleep Paralysis
                        • Set Heroskill_Copy = Hypnos' Dream World
                        • Set Heroskill_Copy_2 = The Sandman
                        • Set Heroskill_Copy_3 = Animate Nightmare
                      • Else - Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • (Unit-type of (Picked unit)) Equal to Shapeshifter
                          • Then - Actions
                            • Set Heroskill = Quill Burst
                            • Set Heroskill_Copy = Roar
                            • Set Heroskill_Copy_2 = Taming
                            • Set Heroskill_Copy_3 = Shape of Phoenix
                          • Else - Actions
                            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • If - Conditions
                                • Or - Any (Conditions) are true
                                  • Conditions
                                    • (Unit-type of (Picked unit)) Equal to Gremlin
                                    • (Unit-type of (Picked unit)) Equal to Robo-Gremlin
                              • Then - Actions
                                • Set Heroskill = Robo-Gremlin
                                • Set Heroskill_Copy = Landmines
                                • Set Heroskill_Copy_2 = Pocket Robot
                                • Set Heroskill_Copy_3 = Upgrade
                              • Else - Actions
                                • Do nothing
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of (Triggering unit)) Equal to (1 + ((Level of Heroskill for (Triggering unit)) x 3))
      • Then - Actions
        • Unit - Set level of Heroskill for (Triggering unit) to ((Level of Heroskill for (Triggering unit)) + 1)
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of (Triggering unit)) Equal to (2 + ((Level of Heroskill_Copy for (Triggering unit)) x 3))
          • Then - Actions
            • Unit - Set level of Heroskill_Copy for (Triggering unit) to ((Level of Heroskill_Copy for (Triggering unit)) + 1)
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Level of (Triggering unit)) Equal to (6 + ((Level of Heroskill_Copy_2 for (Triggering unit)) x 12))
              • Then - Actions
                • Unit - Set level of Heroskill_Copy_2 for (Triggering unit) to ((Level of Heroskill_Copy_2 for (Triggering unit)) + 1)
              • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Level of (Triggering unit)) Equal to 21
                  • Then - Actions
                    • Unit - Set level of Heroskill_Copy_3 for (Triggering unit) to 1
                  • Else - Actions
                    • Unit - Set level of Attribute Bonus for (Triggering unit) to ((Level of Attribute Bonus for (Triggering unit)) + 1)
    • Hero - Modify unspent skill points of (Picked unit): Subtract 1 points
What's wrong with this trigger?
 
Status
Not open for further replies.
Top