1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome to the new Hive! Be advised that we're still working on the site. There are still many rough edges, so please bear with us.
    Dismiss Notice
  3. The 14th Icon Contest is still in progress (and may be extended). You can still make it in time.
    Dismiss Notice
  4. The 25th Texturing Contest has started! Contestants are to create a skin representing a dark elf person/being or any construct related to it using the vanilla models or the custom ones found on the site.
    Dismiss Notice
  5. Buy it, use it, break it, fix it, trash it, change it, mail - upgrade it. Join (Optionally) Paired Techtree Contest #11 - Techno Magic now!
    Dismiss Notice
  6. Voting squad, line up! Cast your vote on the poll for Modeling Contest #29 - Squads!
    Dismiss Notice
  7. Hero Contest #8 is up and running! This time it's a joint contest between artists and coders. Go here for team matchmaking.
    Dismiss Notice
  8. The poll for the theme of our StarCraft II Terraining Contest is up. Cast your note now!
    Dismiss Notice
  9. The ninth Concept Art Contest has launched. Enter now!
    Dismiss Notice
  10. The member Kam is making HIVE coasters. Take a look. For every coaster you buy, Hive gets $1.
    Dismiss Notice

How to make recipe items? (like in dota)

Discussion in 'World Editor Help Zone' started by X-OMG-X, Dec 2, 2008.

  1. X-OMG-X

    X-OMG-X
    Joined:
    Nov 10, 2008
    Messages:
    1,951
  2. bounty hunter2

    bounty hunter2
    Joined:
    Sep 27, 2005
    Messages:
    1,951
    Yes - you need a simple trigger

    event - every 0.01 second of game

    if unit has item1 and item2

    then item remove item1 item2 create item3

    else do nothing
     
  3. TheBlooddancer

    TheBlooddancer
    Joined:
    Jun 24, 2008
    Messages:
    2,938
    Ugh. Dont use time for item recipes.
    Better use 'A unit aqquires an item'.
     
  4. bounty hunter2

    bounty hunter2
    Joined:
    Sep 27, 2005
    Messages:
    1,951
    ah yes thats if you need a recipe, but if you need a recipe that costs nothing like dota, you need to merge them instantly without the recipe.
     
  5. TheBlooddancer

    TheBlooddancer
    Joined:
    Jun 24, 2008
    Messages:
    2,938
    You may be right. I've never played Dota. But if you aquire the item, it will merge too, so i doubt that yours would be that. Anyhow, if there is a leak in a trigger that runs 100 time a second, you will get lagged t'ill death.
     
  6. bounty hunter2

    bounty hunter2
    Joined:
    Sep 27, 2005
    Messages:
    1,951
    yea you are right so it would be like that:

    unit aquires item1

    if unit has item2 then create item3
     
  7. X-OMG-X

    X-OMG-X
    Joined:
    Nov 10, 2008
    Messages:
    1,951
    Okay, thank you :)
    Now i will go to work again.
     
  8. TheBlooddancer

    TheBlooddancer
    Joined:
    Jun 24, 2008
    Messages:
    2,938
    Remember to give reputation when people helps you. It doesnt cost you anything.

    (Read my signature)
     
  9. NoobinJass

    NoobinJass
    Joined:
    Aug 24, 2008
    Messages:
    142
    I assume you have create 5 items:
    -Sword (1000 gold)
    -Flame orb (1000 gold)
    -Flame Sword (Dummy) (1000 gold)
    -Flame Sword Recipe ( 1000)
    -The flame sword( the true sword) (3000 gold)


    Description:
    Okay Sword and orb is the first item. Recipe is Recipe (u know that). Dummy is the item that unit will buy and will be changed into recipe. The flame sword is the true sword.

    Trigger:

    Events
    - Unit-Unit acquaries an item
    Condition
    - ((Item carried by (triggering unit) of type Flame Sword (dummy) is owned)Equal to True
    Actions
    - Item-remove (item carried by (triggering unit) of flame sword(dummy))
    - Hero-create the Flame Sword Recipe and give it to (triggering unit)



    How to make combined item (same)

    Events
    - Unit acquaries an item
    Condition
    - ((triggering unit) has an item of type Flame Orb) equal to true
    - ((triggering unit) has an item of type Sword) equal to true
    - ((triggering unit) has an item of type Flame Sword Recipe) equal to true
    Actions
    - Special effect-create a special effect attached to the origin of (triggering unit) using abilities/spells/items/alem/alem target.mdl
    - Item-remove (item carried by(triggering unit) of type Flame Orb)
    - Item-remove (item carried by(triggering unit) of type Ordinary Sword)
    - Item-remove (item carried by(triggering unit) of type Flame Sword Recipe)
    - Hero - create The Flame Sword and give it to (triggering unit)


    Try this :
    View attachment SYSTEM..XD.w3x
     
  10. X-OMG-X

    X-OMG-X
    Joined:
    Nov 10, 2008
    Messages:
    1,951
    But i can't find the condition.
    Do you know where the distination of it is?
     
  11. bounty hunter2

    bounty hunter2
    Joined:
    Sep 27, 2005
    Messages:
    1,951
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    (Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Tome of Experience
    Else - Actions

    try the search tool in the trigger editor
     
  12. X-OMG-X

    X-OMG-X
    Joined:
    Nov 10, 2008
    Messages:
    1,951
    Okay Thank you for help and i will remember to give reputation. :)
    And you can download my latest version of Sunken Hero Arena.
    The next version will come soon (with recipes).
     
  13. TheBlooddancer

    TheBlooddancer
    Joined:
    Jun 24, 2008
    Messages:
    2,938
    Its called 'If/Then/else Multiple functions.

    Just Search for text -> If. it should be the first.
     
  14. bounty hunter2

    bounty hunter2
    Joined:
    Sep 27, 2005
    Messages:
    1,951
    But i can't find the condition.
    Do you know where the distination of it is?

    yea but hes looking for the condition, so first use if function and then search for the condition in search for text
     
  15. TheBlooddancer

    TheBlooddancer
    Joined:
    Jun 24, 2008
    Messages:
    2,938
    Bolean, Hero has item.