• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

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

Status
Not open for further replies.
Level 18
Joined
Jun 2, 2009
Messages
1,218
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
 
Status
Not open for further replies.
Top