Reicipes

KingZeus

New Member
This is how you make item reicipes like in dota or hosk and other maps. I thought the easiest way to outline it would be to just make a sample trigger and copy it as text and put it in here, I might rewrite this tutorial.


<div class='triggertop'>TRIGGER</div><div class='triggermain'> Test
Events
Unit - A unit Acquires an item
Conditions
Actions
tree_spacer.gif
tree_spacer.gif
if.gif
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
tree_spacer.gif
tree_spacer.gif
condition.gif
If - Conditions
tree_spacer.gif
tree_spacer.gif
general.gif
((Hero manipulating item) has an item of type Blue Print For Sword) Equal to True
tree_spacer.gif
tree_spacer.gif
general.gif
((Hero manipulating item) has an item of type Metal) Equal to True
tree_spacer.gif
tree_spacer.gif
action.gif
Then - Actions
tree_spacer.gif
tree_spacer.gif
item.gif
Item - Remove (Item carried by (Hero manipulating item) of type Blue Print For Sword)
tree_spacer.gif
tree_spacer.gif
item.gif
Item - Remove (Item carried by (Hero manipulating item) of type Metal)
tree_spacer.gif
tree_spacer.gif
hero.gif
Hero - Create Sword and give it to (Hero manipulating item)
tree_spacer.gif
tree_spacer.gif
action.gif
Else - Actions
tree_spacer.gif
tree_spacer.gif
general.gif
Do nothing
</div>
 
Werbung:

Undead_Lives

New Member
You should use the code tags, that's what they're there for :D
Anyways, good tutorial, however the necessity of it is...minor. People should learn how to do this on their own..
Nonetheless, good tutorial.
 

pirated88

New Member
i have a question..how im going to do a recipe that player must buy it when the requirement of the recipe is already by from that player to activate the recipe?i mean how i want to deactivate the recipe to prevent player got the recipe effect if they dont buy the requirement of the recipe..??

plz help me.. :(
 

Xeridanus

New Member
make an item "Recipe #42" and then put it in the list of items needed.
Code:
If - Conditions
((Hero manipulating item) has an item of type Blue Print For Sword) Equal to True
((Hero manipulating item) has an item of type Metal) Equal to True
((Hero manipulating item) has an item of type Recipe #42) Equal to True
 

joker999

New Member
I made a way were you have to klick on the plans to make the item. Do u want me to paste it here or was it included in the tutorial and i just missed it?
 
Werbung:
Top