AaronPwner
Member
- Reaction score
- 0
I've looked at the item recipe tutorials, but I still can't seem to make this work. It doesnt remove or create any items..
PS: I'm obviously missing a trigger to minus the "MagicDoorKey" variable if the player drops the item, but I want to get this to work first.
Trigger:
- Trigger1
- Events
- Unit - A unit Acquires an item
- Conditions
- (Item-type of (Item being manipulated)) Equal to Mooncrystal
- Actions
- For each (Integer A) from 1 to 6, do (If ((Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mooncrystal) then do (Set MagicDoorKey = (MagicDoorKey + 1)) else do (Do nothing))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- MagicDoorKey Equal to 2
- Then - Actions
- Hero - Drop (Item carried by (Hero manipulating item) of type Mooncrystal) from (Hero manipulating item)
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by (Hero manipulating item) of type Mooncrystal) from (Hero manipulating item)
- Item - Remove (Last dropped item)
- Hero - Create Partial Key of the Three Moons and give it to (Hero manipulating item)
- Special Effect - Create a special effect attached to the origin of (Hero manipulating item) using Abilities\Spells\Items\AIim\AIimTarget.mdl
- Else - Actions
- Do nothing
- If - Conditions
- Events
PS: I'm obviously missing a trigger to minus the "MagicDoorKey" variable if the player drops the item, but I want to get this to work first.