1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice
  3. After a long wait, the results for Terraining Contest #18 are finally out! Drop by and congratulate the winners!
    Dismiss Notice
  4. The poll for Concept Art Contest #9 is up! Cast your vote for your favourite entry!
    Dismiss Notice
  5. 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
  6. Our first StarCraft contest, The Galaxy Terraining Contest #1 - World Wonders has started. Enter to show off your Galaxy Editor skills and win a custom rank icon among other things.
    Dismiss Notice
  7. Ever wanted to get your sets ready for fast texturing while still having fun? Now it is possible with our newest Mini-Texturing Contest.
    The Skeleton Units need your dire help!
    Dismiss Notice
  8. The poll for Techtree Contest #11 is up! Cast your vote for your favorite entry.
    Dismiss Notice
  9. Take part in a Futuristic musical experience with our very own Music Contest. The 5th edition has finally arrived after a long time.
    Dismiss Notice
  10. 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.