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

Need help with a Hero leveling Trigger

Status
Not open for further replies.
Level 5
Joined
Jun 13, 2012
Messages
113
This is my trigger
Leveling
Events
Unit - A unit Gains a level
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Hero - Make (Picked player) Heroes gain 800.00% experience from future kills
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Owner of (Leveling Hero)) Equal to (Picked player)
((Picked player) controller) Equal to Computer
(Unit-type of (Leveling Hero)) Equal to Far Seer
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Chain Lightning for (Triggering unit)) Not equal to 5
Then - Actions
Unit - Increase level of Chain Lightning for (Leveling Hero)
Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Level of Chain Lightning for (Leveling Hero)) Equal to 5
(Level of Feral Spirit for (Leveling Hero)) Not equal to 5
Then - Actions
Hero - Learn skill for (Leveling Hero): Feral Spirit
Unit - Increase level of Feral Spirit for (Leveling Hero)
Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Feral Spirit for (Leveling Hero)) Equal to 5
(Level of Earthquake for (Leveling Hero)) Not equal to 5
Then - Actions
Unit - Add Earthquake to (Leveling Hero)
Unit - Increase level of Earthquake for (Leveling Hero)
Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Earthquake for (Leveling Hero)) Equal to 5
(Level of Far Sight for (Leveling Hero)) Not equal to 5
Then - Actions
Unit - Add Far Sight to (Leveling Hero)
Unit - Increase level of Far Sight for (Leveling Hero)
Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Far Sight for (Leveling Hero)) Equal to 5
Then - Actions
Hero - Learn skill for (Leveling Hero): Attribute Bonus
Unit - Increase level of Attribute Bonus for (Leveling Hero)
Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
Else - Actions
Do nothing
Else - Actions
Do nothing



For some reason when it learns Feral Spirit to lv 5 it wont learn Earth quake or fore sight when i tried changing it.

Help plz !!!!
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
This is my trigger
  • Leveling
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Hero - Make (Picked player) Heroes gain 800.00% experience from future kills
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Leveling Hero)) Equal to (Picked player)
                  • ((Picked player) controller) Equal to Computer
                  • (Unit-type of (Leveling Hero)) Equal to Far Seer
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Chain Lightning for (Triggering unit)) Not equal to 5
                • Then - Actions
                  • Unit - Increase level of Chain Lightning for (Leveling Hero)
                  • Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • And - All (Conditions) are true
                        • Conditions
                          • (Level of Chain Lightning for (Leveling Hero)) Equal to 5
                          • (Level of Feral Spirit for (Leveling Hero)) Not equal to 5
                    • Then - Actions
                      • Hero - Learn skill for (Leveling Hero): Feral Spirit
                      • Unit - Increase level of Feral Spirit for (Leveling Hero)
                      • Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Level of Feral Spirit for (Leveling Hero)) Equal to 5
                          • (Level of Earthquake for (Leveling Hero)) Not equal to 5
                        • Then - Actions
                          • Unit - Add Earthquake to (Leveling Hero)
                          • Unit - Increase level of Earthquake for (Leveling Hero)
                          • Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Level of Earthquake for (Leveling Hero)) Equal to 5
                              • (Level of Far Sight for (Leveling Hero)) Not equal to 5
                            • Then - Actions
                              • Unit - Add Far Sight to (Leveling Hero)
                              • Unit - Increase level of Far Sight for (Leveling Hero)
                              • Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Level of Far Sight for (Leveling Hero)) Equal to 5
                                • Then - Actions
                                  • Hero - Learn skill for (Leveling Hero): Attribute Bonus
                                  • Unit - Increase level of Attribute Bonus for (Leveling Hero)
                                  • Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
                                • Else - Actions
                                  • Do nothing
            • Else - Actions
              • Do nothing

For some reason when it learns Feral Spirit to lv 5 it wont learn Earth quake or fore sight when i tried changing it.

Help plz !!!!

Here is your fixed trigger.

What are you trying to achieve ?
Explain carefully.
 
Status
Not open for further replies.
Top