1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Choose a model and craft your spell in Zephyr Contest #15!
    Dismiss Notice
  3. Compete in Concept Art Contest - Bounty Hunter . May the best artist's bounty hunter execute!
    Dismiss Notice
  4. The Modeling Mini-Contest #5 - Familiar is up! Compete to design a pet companion to a lonely WC3 Hero of your preference.
    Dismiss Notice
  5. The 6th installment of our Music Contest just got fired up! Now with an Apocalyptic taste. Get started and compete in this musical battle!
    Dismiss Notice
  6. Looking to expand an altered melee race of yours? Join the Advanced Techtree Contest - Recycle, Revise, Reinvent contest!
    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,949
  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,921
    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,921
    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,949
    Okay, thank you :)
    Now i will go to work again.
     
  8. TheBlooddancer

    TheBlooddancer
    Joined:
    Jun 24, 2008
    Messages:
    2,921
    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,949
    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,949
    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,921
    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,921
    Bolean, Hero has item.