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

[Solved] What am i missing in here? Integer + ability question.

Level 17
Joined
Jun 2, 2009
Messages
1,139
Ability: Item Hero Armor Bonus with 51 levels from 0 to 51 armor.
I am giving this ability to heroes when enters the map.

  • 2
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Armor of Justice
              • (Item-type of (Item being manipulated)) Equal to Serpentskin
              • (Item-type of (Item being manipulated)) Equal to Silver Plate (Strength Unique)
              • (Item-type of (Item being manipulated)) Equal to Shield of Deathlord
        • Then - Actions
          • Unit - Set level of Item Armor Bonus // item master for (Triggering unit) to ((Level of Item Armor Bonus // master for (Triggering unit)) + 10)
        • Else - Actions
  • 3
    • Events
      • Unit - A unit Loses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Armor of Justice
              • (Item-type of (Item being manipulated)) Equal to Serpentskin
              • (Item-type of (Item being manipulated)) Equal to Silver Plate (Strength Unique)
              • (Item-type of (Item being manipulated)) Equal to Shield of Deathlord
        • Then - Actions
          • Unit - Set level of Item Armor Bonus // item master for (Triggering unit) to ((Level of Item Armor Bonus // master for (Triggering unit)) - 10)
        • Else - Actions
I am buying any of the items within the list, it gives +9 armor
When i buy the another item from the list, it is not increasing it's level.

OR

Any solution for adding more than 4 stats into one item without creating new objects
 
Top