• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item upgrade

Status
Not open for further replies.
  • Untitled Trigger 005
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Set i1 = 0
      • For each (Integer loopA) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Triggering unit) in slot loopA)) Equal to (Item-type of (Item being manipulated))
            • Then - Actions
              • Set i1 = (i1 + 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • i1 Equal to 2
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
                  • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
                  • Hero - Create Crown of Kings +5 and give it to (Triggering unit)
                  • Skip remaining actions
                • Else - Actions
            • Else - Actions
If you have lots of items, you may need to create item arrays. Then loop through the array to get the correct item, and create the "leveled up" item.
 
Well, thanks, but Kobas, when you acquire a item and it leveled up (your system) when the level reaches a number, then, you can't have more item type of it. EX: your Soul item, when you acquire and it up to level 5, when you acquire more, the item being acquire is remove. How could i fix this? or you fix this :D. +rep for helped

EDIT: It seems i have to spread more rep to rep you guys again, wait a moment ^^!
 
Status
Not open for further replies.
Back
Top