• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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

Level 17
Joined
Jun 2, 2009
Messages
1,146
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