Item replacement triggers

Hsinker

Member
Joined
Dec 2, 2006
Messages
11
Reaction score
0
I need a trigger that if the user has item1, item2, item3 in his invent, those items would be removed and replaced with item4.

Can someone provide me with the codes and an example?
 

None293823

Premium Member
Joined
Jul 15, 2003
Messages
3,771
Reaction score
0
E: A unit acquires an item
c: item = item 1 and item = item 2 and item = item 3 (if this doesnt wrk do: E: every 1 second of game time C: Hero has item carrid by Hero of type ite 1, -||- item 2 , 3 etc.

A:Item drop and remove last dropped item for each of them.
Create item and give to (unit)
You can add all the abilities of the 3 items to this 1 with abilities without icons they will be added to he hero not the item but you can lawyas use conditions when thee abilities to be removed.
 

Octopor

your whole family is made of meat
Joined
Nov 28, 2003
Messages
2,043
Reaction score
2
I posted this in another thread involving combining items, hope it helps. (This trigger has been checked and does work.)

Octopor said:
Events
-Unit - A unit Acquires an item
Conditions
-n/a
Actions
-If (All Conditions are True) then do (Then Actions) else do (Else Actions)
--If - Conditions
---And - All (Conditions) are true
----Conditions
-----((Hero manipulating item) has an item of type item1) Equal to True
-----((Hero manipulating item) has an item of type item2) Equal to True
--Then - Actions
-----Item - Remove (Item carried by (Hero manipulating item) of type item1)
-----Item - Remove (Item carried by (Hero manipulating item) of type item2)
-----Hero - Create item3 and give it to (Hero manipulating item)
-----Special Effect - Create a special effect attached to the overhead of (Hero manipulating item) using Abilities\Spells\Items\AIem\AIemTarget.mdl
--Else - Actions
-----Do nothing

Item 1 and 2 represent the items that you would be combining. Item 3 represents the item that you would get as a result of the combination.
Just another condition for the third item and another action to remove that item and you're done.
 

NewPosts

New threads

Top