Ok, Ive got a question..I used the search tool for "recipe triggers" and found nothing, so Im sorry if this has been asked before.
I want to implement a system into my clan's map, Shodown Frenzy, where I can have the peasant build a cookpot with 4 item slots.
Say my hero has 2 Lesser Healing Potions. I have him put the 2 potions into the pot and it creates 1 Greater Healing Potion to give back to my hero when I want to. So like Island and Ice Troll Tribes, where you have to put a stick and 2 rocks into an armory to get a spear.
Can anyone at all guide me in making this dream come true? It would add a new dimension to our map, and I would do it with the help of my clanmates, but not many have the time to help with it, and Im very close to knowing nothing about WE. So if anyone can help, or if anyone doesnt understand what Im asking, I'd be more than happy to clarify.
If you want to contact me on Battle.net, Im on mostly on the weekends, but my screen name is ZulKhas. Or if you just want to post it here, thatd be great too. Thanks!
if Aquired Item = (*item 1*) and Unit Has Item (*item 2*) = true then remove ( those items ) create 1 ( finished product ) and give it to Triggering Unit
Untitled Trigger 001 Events Unit - A unit Acquires an item Conditions Actions Item - Create Tome of Experience at (Position of (Triggering unit))
I couldnt put a match to what you told me and to what WE has in it. Sorry if this is easier than Im making it, Im just really terrible with WE triggering. :\
event: - a unit uses an ability cond: - ability beeing cast == 'cooking' act: set NotCooked = true //do this if once for each possibl recepy if - and - - boolean - var - NotCoocked == true - - boolean - Unit has item of type 'weeds' - - boolean - Unit has item of type 'water' - - boolean - Unit has item of type 'mushrooms' then - unit remove item of type 'weeds' - unit remove item of type 'water' - unit remove item of type 'mushrooms' - unit give item - 'mushroom soup' - var - set NotCooked = false
and if you want to combine more than one item per type, i would recommend doing a loop through all it's inventory slots, increase a temporary integer variable and then checking if that variable is big enough.
set tmp_integer = 0 for - Integer A = 1 to (Inventory Slots of(Casting Unit)) - - if - - - itemtype of (item in slot Integer A) == 'mushroom' - - then - - - set tmp_integer = tmp_integer + 1
and then, when you do the check for all the requirement sof a recepy add: - integer - tmp_integer >= <your value> then do the 'remove item of type' once for every <your amount> (if you need 3 mushrooms, remove a muhroom 3 times )