item change

neverbealone

New Member
Reaction score
2
can someone give me a simple trigger or the idea of how to create a trigger of

a hero has a specific item in inventory
same hero picks up another specific item:

destroy those 2 items
and give the hero a different item
 

PrisonLove

Hard Realist
Reaction score
78
If you do a search for a recipe system, or a item combine system, then you find what you're looking for.

But it would be something like:

Code:
Unit acquires an item

item-type = whatever

for int a 1 to 6
    if item in hero inventory slot a equal to a certain item
    remove acquired item from hero
    remove item in slot a from hero
endloop

create item of your type and give it to your hero

That's the general idea of the trigger.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top