Cloud_FF
New Member
- Reaction score
- 5
I know that you're thinking that this is an item recipe thread on "How do I do it???" Well it's not. I've done it but I want to change it and I can't a tutorial which shows how I can make item recipes via variables. There is a simple Example down of one of my triggers. I'd love if someone was to redesign it with custom variables, since these are the ONLY triggers in my map which aren't done this way and I really hope that they are the source of the crashes (I redid all special effects, pathing, spawning, pick units, pick players and so on crushable triggers) cuz it sux that it crashes:
The trigger works fine. It takes the items, it removes them, never miss works, always works correctly for the item combos and auto applies.
P.S. If you could put in a few words a system which uses dialogue buttons instead of auto crafting I'd be very glad. I have in mind for this:
Somewhere in that last trigger I want dialogue trigger but I can't make them myself.
Code:
Event:
Unit - A unit Acquires an item
Conditions:
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to |CFFO54A6Swift Steel Sword
(Item-type of (Item being manipulated)) Equal to Magical Scroll
(Item-type of (Item being manipulated)) Equal to Runed Scroll
((Hero manipulating item) has an item of type |CFFO54A6Swift Steel Sword) Equal to True
((Hero manipulating item) has an item of type Magical Scroll) Equal to True
((Hero manipulating item) has an item of type Runed Scroll) Equal to True
Actions:
Item - Remove (Item carried by (Triggering unit) of type |CFFO54A6Swift Steel Sword)
Item - Remove (Item carried by (Triggering unit) of type Magical Scroll)
Item - Remove (Item carried by (Triggering unit) of type Runed Scroll)
Hero - Create |CFF62D91Gut-Ripping Sword and give it to (Triggering unit)
The trigger works fine. It takes the items, it removes them, never miss works, always works correctly for the item combos and auto applies.
P.S. If you could put in a few words a system which uses dialogue buttons instead of auto crafting I'd be very glad. I have in mind for this:
Code:
Event:
Unit - A unit Acquires an item
Conditions:
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to Gemless Pendant
(Item-type of (Item being manipulated)) Equal to |CFF662D91Amethyst of Magic Warding
((Hero manipulating item) has an item of type Gemless Pendant) Equal to True
((Hero manipulating item) has an item of type |CFF662D91Amethyst of Magic Warding) Equal to True
Actions:
Item - Remove (Item carried by (Triggering unit) of type Gemless Pendant)
Item - Remove (Item carried by (Triggering unit) of type |CFF662D91Amethyst of Magic Warding)
Hero - Create |CFF62D91Amethyst Pendant of Magic Warding and give it to (Triggering unit)
Somewhere in that last trigger I want dialogue trigger but I can't make them myself.