Help with "upgrading items"

llmercll

New Member
Reaction score
0
I'd like to create an event where i kill a boss, and instead of simply dropping an item, he replaces an item in the users inventory with a more powerful, upgraded item.

I went into the trigger editor and made the event "unit dies"

but i don't know which actions to use. The biggest problem im having is selecting the hero, since in my map you can choose among many heroes so i cant just select him on the map, if that makes any sense.

help would be really appreciated!
 

redhybrid

New Member
Reaction score
1
Trigger:
  • Event
    • Unit - A unit Acquires an item
    • Conditions
    • (Item-type of (Item being manipulated)) Equal to Advanced Sword
    • Actions
    • Item - Remove (Item carried by (Triggering unit) of type Basic Sword)


Here's my shot at it, im not that fantastic at triggering.
What do you want to happen if the Hero doesn't have the Predecessor Item to be upgraded? The above trigger assumes he will always have the item.
 

azareus

And you know it.
Reaction score
63
(FreeHand)
Trigger:
  • Boss
    • Events
      • (Boss) dies
    • Conditions
      • (Killing unit) has an item of type (Normal Sword)
    • Actions
      • Item - Create item of type (Rare Sword) and give it to (Killing Unit)
      • Iem - Remove item of type (Normal Sword) from (killing unit)s inventory

This will replace the item "Normal Sword" with "Rare Sword" IF the unit there killed the boss have a "Normal Sword".
 

redhybrid

New Member
Reaction score
1
Trigger:
  • Boss
    • Events
      • (Boss) dies
    • Conditions
      • (Killing unit) has an item of type (Normal Sword)
    • Actions
      • Item - Remove item of type (Rare Sword) and give it to (Killing Unit)

This will replace the item "Normal Sword" with "Rare Sword" IF the unit there killed the boss have a "Normal Sword".

Thats a Much better Trigger right there :thup:
 

llmercll

New Member
Reaction score
0
thanks for the stuff guys, this is great, Now I need some advice with a switch. I want to make it so when my unit hits the switch, it completely destroys one region of all units and doodads. I''ve got the switch animation down, i just cant figure out how to script mass destruction =p

http://i36.tinypic.com/fcjmdh.jpg

23lxxly.jpg
 

WackO_WilL

New Member
Reaction score
4
It should look more like this.

Trigger:
  • Kill
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Kill (Picked unit))


Picked unit refers to every unit as its picked, For the Pick Every units in region.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top