• 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.

Item level bug?

Status
Not open for further replies.
Level 14
Joined
Jul 25, 2011
Messages
1,065
I'm using this trigger and it's now working properly. Is it because the max item level is 8? I set the item levels by pressing "shift" in the object editor.
  • Int
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Item[0] = Dagger
      • Set Item_Cost[0] = 50
      • Set Item[1] = Better Dagger
      • Set Item_Cost[1] = 150
      • Set Item[2] = Mithril Dagger
      • Set Item_Cost[2] = 300
      • Set Item[3] = Small Axe
      • Set Item_Cost[3] = 500
      • Set Item[4] = Iron Sword
      • Set Item_Cost[4] = 600
      • Set Item[5] = Mithril Sword
      • Set Item_Cost[5] = 750
      • Set Item[6] = Long Sword
      • Set Item_Cost[6] = 900
      • Set Item[7] = Fire Sword
      • Set Item_Cost[7] = 1100
      • Set Item[8] = Large Iron Sword
      • Set Item_Cost[8] = 100
      • Set Item[9] = Large Steel Sword
      • Set Item_Cost[9] = 250
      • Set Item[10] = Steel Spear
      • Set Item_Cost[10] = 450
      • Set Item[11] = Double Axe
      • Set Item_Cost[11] = 700
      • Set Item[12] = Mice
      • Set Item_Cost[12] = 950
      • Set Item[13] = Helbard
      • Set Item_Cost[13] = 1100
      • Set Item[14] = Iron Mice
      • Set Item_Cost[14] = 1400
      • Set Item[15] = Mice of Death
      • Set Item_Cost[15] = 1750
      • Set Item[16] = Ice Hammer
      • Set Item_Cost[16] = 1900
      • Set Item[17] = Hell Fire
      • Set Item_Cost[17] = 2100
      • Set Item[18] = Infernal Destroyer
      • Set Item_Cost[18] = 2300
      • Set Item[19] = Ice Sword
      • Set Item_Cost[19] = 2500
      • Set Item[20] = Leather Armor
      • Set Item_Cost[20] = 1600
      • Set Item[21] = Bronze Armor
      • Set Item_Cost[21] = 1600
      • Set Item[22] = Black Armor
      • Set Item_Cost[22] = 1600
      • Set Item[23] = Blood Armor
      • Set Item_Cost[23] = 1600
      • Set Item[24] = Blood Helmet
      • Set Item_Cost[24] = 1000
      • Set Item[25] = Black Helmet
      • Set Item_Cost[25] = 1000
      • Set Item[26] = Bronze Helmet
      • Set Item_Cost[26] = 1000
      • Set Item[27] = Leather Hood
      • Set Item_Cost[27] = 1000
      • Set Item[28] = Leather Boots
      • Set Item_Cost[28] = 1000
      • Set Item[29] = Bronze Boots
      • Set Item_Cost[29] = 1000
      • Set Item[30] = Black Boots
      • Set Item_Cost[30] = 1000
      • Set Item[31] = Blood Boots
      • Set Item_Cost[31] = 1000
      • Set Item[32] = Buckler
      • Set Item_Cost[32] = 100
      • Set Item[33] = Wood Large Shield
      • Set Item_Cost[33] = 350
      • Set Item[34] = Iron Long Shield
      • Set Item_Cost[34] = 500
      • Set Item[35] = Steel Large Kite Shield
      • Set Item_Cost[35] = 700
      • Set Item[36] = Golden Shield
      • Set Item_Cost[36] = 950
      • Set Item[37] = Ice Shield
      • Set Item_Cost[37] = 1200
      • Set Item[38] = Magic Shield
      • Set Item_Cost[38] = 1700
      • Set Item[39] = Flame Guard
      • Set Item_Cost[39] = 2000
      • Set Item[40] = Dagger (Off Hand)
      • Set Item_Cost[40] = 50
      • Set Item[41] = Better Dagger (Off Hand)
      • Set Item_Cost[41] = 150
      • Set Item[42] = Mithril Dagger (Off Hand)
      • Set Item_Cost[42] = 300
      • Set Item[43] = Small Axe (Off Hand)
      • Set Item_Cost[43] = 500
      • Set Item[44] = Iron Sword (Off Hand)
      • Set Item_Cost[44] = 600
      • Set Item[45] = Mithril Sword (Off Hand)
      • Set Item_Cost[45] = 750
      • Set Item[46] = Long Sword (Off Hand)
      • Set Item_Cost[46] = 900
      • Set Item[47] = Fire Sword (Off Hand)
      • Set Item_Cost[47] = 1100
      • Set Item[48] = Fire Magic
      • Set Item_Cost[48] = 50
      • Set Item[49] = Frost Bolt
      • Set Item_Cost[49] = 250
      • Set Item[50] = Electric Magic
      • Set Item_Cost[50] = 550
      • Set Item[51] = Toxic Magic
      • Set Item_Cost[51] = 700
      • Set Item[52] = Light Magic
      • Set Item_Cost[52] = 900
      • Set Item[53] = Dark Magic
      • Set Item_Cost[53] = 1150
      • Set Item[54] = Water Magic
      • Set Item_Cost[54] = 1300
      • Set Item[55] = Nature Magic
      • Set Item_Cost[55] = 1450
      • Set Item[56] = Mana Magic
      • Set Item_Cost[56] = 1700
      • Set Item[57] = Lightning Magic
      • Set Item_Cost[57] = 1850
      • Set Item[58] = Hand of Darkness
      • Set Item_Cost[58] = 2000
      • Set Item[59] = Death Magic
      • Set Item_Cost[59] = 2500
  • IB
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Selling unit)) Equal to (Owner of (Buying unit))
        • Then - Actions
          • Item - Set the custom value of (Sold Item) to (Player number of (Owner of (Buying unit)))
        • Else - Actions
          • Player - Add Item_Cost[(Item level of (Item being manipulated))] to (Owner of (Buying unit)) Current gold
          • Item - Remove (Item being manipulated)
          • Hero - Drop (Item being manipulated) from (Buying unit)
          • Game - Display to (Player group((Owner of (Buying unit)))) the text: |cffffcc00You can o...
          • Sound - Play Error <gen> at 100.00% volume, attached to (Buying unit)
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
No... The ITEM Level of the item inside the game isn't part of a Level Requirement thing. Wc3 by default has no Item Level requirement system.

You can use any value in the item (Custom value, or value saved in Item-Type ID, or some Array) to compare the item level with the Hero Level of the unit.
 
Status
Not open for further replies.
Top