• 🏆 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] My System Needs fixing

Status
Not open for further replies.
Level 18
Joined
Dec 17, 2009
Messages
1,114
I'm making another project, with my friend.
After a couple of days , i made a system for the map

Hero(Controller)
Shadow(Special Unit)-(1 hero 1 shadow)

So the triggers are these!

  • Upgrade Skills
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Learned Hero Skill) Equal to Upgrade Damage
          • (Learned Hero Skill) Equal to Upgrade Life
          • (Learned Hero Skill) Equal to Upgrade Passive Ability
    • Actions
      • For each (Integer A) from 1 to 7, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Learned Hero Skill) Equal to Upgrade Damage
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Upgrade Damage for (Learning Hero)) Equal to (Integer A)
                • Then - Actions
                  • Player - Set the current research level of Damage Upgrade to (Integer A) for (Owner of (Learning Hero))
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Learned Hero Skill) Equal to Upgrade Life
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Upgrade Life for (Learning Hero)) Equal to (Integer A)
                    • Then - Actions
                      • Player - Set the current research level of Health Upgrade to (Integer A) for (Owner of (Learning Hero))
                    • Else - Actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Learned Hero Skill) Equal to Upgrade Passive Ability
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Level of Upgrade Passive Ability for (Learning Hero)) Equal to (Integer A)
                        • Then - Actions
                          • Player - Set the current research level of Passive Upgrade to (Integer A) for (Owner of (Learning Hero))
                        • Else - Actions
                    • Else - Actions
I need examination on the map
 

Attachments

  • Template.w3x
    146.6 KB · Views: 40
Level 37
Joined
Mar 6, 2006
Messages
9,240
It could be like this:

  • Upgrade Skills
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Learned Hero Skill) Equal to Upgrade Damage
          • (Learned Hero Skill) Equal to Upgrade Life
          • (Learned Hero Skill) Equal to Upgrade Passive Ability
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Learned Hero Skill) Equal to Upgrade Damage
        • Then - Actions
          • Player - Set the current research level of Damage Upgrade to (Level of Upgrade Damage for (Triggering unit)) for (Triggering player)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Learned Hero Skill) Equal to Upgrade Life
            • Then - Actions
              • Player - Set the current research level of Health Upgrade to (Level of Upgrade Life for (Triggering unit)) for (Triggering player)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Learned Hero Skill) Equal to Upgrade Passive Ability
                • Then - Actions
                  • Player - Set the current research level of Passive Upgrade to (Level of Upgrade Passive Ability for (Triggering unit)) for (Triggering player)
                • Else - Actions
http://www.hiveworkshop.com/forums/pastebin.php?id=l4sy75
 
Status
Not open for further replies.
Top