1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  4. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How To Make Item Recipes

Discussion in 'Trigger (GUI) Editor Tutorials' started by Tooolbox, May 16, 2007.

  1. BlueAngel

    BlueAngel

    Joined:
    Jul 22, 2009
    Messages:
    12
    Resources:
    0
    Resources:
    0
    how about Ring of Basilius and similar items to it?
     
  2. danny-345o

    danny-345o

    Joined:
    Jun 23, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    when I buy the recipe and it combine the game close down. plzz help me with it.
     
  3. Razorbrain

    Razorbrain

    Joined:
    Aug 18, 2006
    Messages:
    1,165
    Resources:
    1
    Maps:
    1
    Resources:
    1
    show triggers to make this a lot easier for me

    lmao, you could make that trigger even better by using the "Hero has Item" boolean condition
     
  4. triuska

    triuska

    Joined:
    Aug 20, 2009
    Messages:
    19
    Resources:
    0
    Resources:
    0
    how can i make that i could only make items in some places like near blacksmith or something like that:confused:
     
  5. triuska

    triuska

    Joined:
    Aug 20, 2009
    Messages:
    19
    Resources:
    0
    Resources:
    0
    never mind:gg:
     
  6. Lmao.Me

    Lmao.Me

    Joined:
    Dec 17, 2008
    Messages:
    455
    Resources:
    0
    Resources:
    0
    :cgrin:
     
  7. Tirco

    Tirco

    Joined:
    Feb 7, 2009
    Messages:
    27
    Resources:
    0
    Resources:
    0
    RLY helpfull guide! :D thank you weary much! :D
     
  8. Duggler

    Duggler

    Joined:
    Dec 10, 2009
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Umm. I followed the tutorial. Double checked it. I even downloaded his map to check if it was right. But when i did it in my map, it created like 18 of them instead of 1. What did i do wrong?
     
  9. Duggler

    Duggler

    Joined:
    Dec 10, 2009
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Nvm i got it to work.
     
  10. blek121

    blek121

    Joined:
    Jul 28, 2009
    Messages:
    136
    Resources:
    0
    Resources:
    0
  11. corpuzmarvicjune

    corpuzmarvicjune

    Joined:
    Jun 20, 2012
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Your item that requires 2 of the same item.


    I tried to use this item trigger though it leaks. The trigger only focuses when a unit acquires an item then you have it as long as your conditions meet; BUT, WHEN THE UNIT LOSSES THE ITEM, THE TRIGGER LEAKS. Especially when you have drop the first one, then take it again. I'll see this again, maybe I can manage to correct some errors.
     
  12. TheLordOfChaos201

    TheLordOfChaos201

    Joined:
    Jul 2, 2011
    Messages:
    1,736
    Resources:
    0
    Resources:
    0
    item recipes are easy

    item acquired
    item being manipulated equal to any item on recipe list
    if all items are collected, drop all items and destroy and add new item.
     
  13. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,813
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    Which is a really stupid method unless you want a whole lot of ugly copy paste code that is highly inefficient.
     
  14. TheLordOfChaos201

    TheLordOfChaos201

    Joined:
    Jul 2, 2011
    Messages:
    1,736
    Resources:
    0
    Resources:
    0
    that was just an example. to make it into one single trig all you would need to do is

    create an item array....
    and insure all recipe items are in the same category. e.g., charged, unique...

    now

    event unit acquires item

    condition
    item acquire of category 'the category off all your recipes'

    action
    for... create a for loop of the size of your item array

    if item is of recipe set
    then
    check if all items of recipe have been collected. dump items and add combined item
    destroy trig Que
    end of for loop.
     
  15. ivicavecni

    ivicavecni

    Joined:
    Jun 24, 2013
    Messages:
    6
    Resources:
    0
    Resources:
    0
    HELP im confused...

    :vw_wtf: HOW to make set ItemAmount +1? Or for example ItemAmount Equal to 2 Condition?:goblin_boom:
     
  16. ivicavecni

    ivicavecni

    Joined:
    Jun 24, 2013
    Messages:
    6
    Resources:
    0
    Resources:
    0
    Im confused...



    HOW to make set ItemAmount +1? Or for example ItemAmount Equal to 2 Condition?
     
  17. Daffa

    Daffa

    Joined:
    Jan 30, 2013
    Messages:
    7,986
    Resources:
    29
    Packs:
    1
    Maps:
    8
    Spells:
    18
    Tutorials:
    2
    Resources:
    29
    Use integer variable.
     
  18. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,813
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    Google or search the forum. This has been asked just about 5000 times.
     
  19. dower39

    dower39

    Joined:
    Aug 30, 2017
    Messages:
    15
    Resources:
    0
    Resources:
    0
    Can u make items with recipe with two same item type?