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

Give Item to Hero Not Working

Status
Not open for further replies.
Level 8
Joined
Feb 17, 2007
Messages
368
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Difficulty Equal to Very Easy
      • Then - Actions
        • Hero - Create Essence of Life VE and give it to (Triggering unit)
        • Unit - Set life of (Triggering unit) to 100.00%
        • Unit - Set mana of (Triggering unit) to 100.00%
        • Unit - Reset ability cooldowns for (Triggering unit)
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Difficulty Equal to Easy
          • Then - Actions
            • Hero - Create Essence of Life E and give it to (Triggering unit)
            • Unit - Set life of (Triggering unit) to 100.00%
            • Unit - Set mana of (Triggering unit) to 100.00%
            • Unit - Reset ability cooldowns for (Triggering unit)
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Difficulty Equal to Normal
              • Then - Actions
                • Unit - Set life of (Triggering unit) to 100.00%
                • Unit - Set mana of (Triggering unit) to 100.00%
                • Unit - Reset ability cooldowns for (Triggering unit)
              • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Difficulty Equal to Hard
                  • Then - Actions
                    • Unit - Set life of (Triggering unit) to 100.00%
                    • Unit - Set mana of (Triggering unit) to 100.00%
                    • Unit - Reset ability cooldowns for (Triggering unit)
                  • Else - Actions
The set life, set mana, and reset ability cooldown triggers all work, but for some reason the give item to hero is not working. Any ideas as to why?

EDIT: Hmmm, it seems like it may be a problem with the item because I tried giving other items and it worked, I'm not sure exactly what though is wrong with this:

 
Level 6
Joined
Oct 10, 2009
Messages
1,425
curious, since the actions are the same (for hard and normal) why don't you just do,
  • Conditions
    • Difficulty Equal to Normal
    • Difficulty equal to Hard
  • Then - Actions
    • Unit - Set life of (Triggering unit) to 100.00%
    • Unit - Set mana of (Triggering unit) to 100.00%
    • Unit - Reset ability cooldowns for (Triggering unit)
    • Else - Actions
 
Level 6
Joined
Oct 10, 2009
Messages
1,425
i thought it just works like that either way...? (I think I've used it that way)
or will it wait until both?
because if it waits until both, then whats the point of And - both conditions are true?
 
Status
Not open for further replies.
Top