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

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • 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.
 
Level 9
Joined
Aug 7, 2009
Messages
380
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.
Top