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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

[Trigger] Item Combining

Discussion in 'Triggers & Scripts' started by Kidd|WhiteHeaven|, Dec 21, 2006.

  1. Kidd|WhiteHeaven|

    Kidd|WhiteHeaven|

    Joined:
    Nov 4, 2006
    Messages:
    266
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Im going to put item combining in my map but i dont know how to do it. It confuses me. Like to get a good item, u need 1(or 2) of an item and another (1 or 2) of an item. then when u have it in the inv., it removes those items and replaces it with 1 item that does more stuff. Like the custom hero line wars' immortal helm or the Executioner's blade. My friend knows how to do it but he cant explain how to do it. Lol
     
  2. operator

    operator

    Joined:
    Feb 9, 2006
    Messages:
    1,670
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Try to download a system at wc3campaigns
     
  3. Ham Ham

    Ham Ham

    Joined:
    Oct 2, 2006
    Messages:
    1,159
    Resources:
    12
    Models:
    9
    Maps:
    3
    Resources:
    12
  4. Kidd|WhiteHeaven|

    Kidd|WhiteHeaven|

    Joined:
    Nov 4, 2006
    Messages:
    266
    Resources:
    1
    Maps:
    1
    Resources:
    1
    K thanks you guys. Hmm... I have it but im not understanding it. I get the variables but its using the wrong ones. Im not good with item combining.(should already know)
     
    Last edited: Dec 22, 2006
  5. cyrus19283

    cyrus19283

    Joined:
    Jul 11, 2006
    Messages:
    6
    Resources:
    0
    Resources:
    0
    Ok you can do this, its kinda weird but it works. I'm typing this off the top of my head since I'm not at home with WC3.
    Event- Unit aquires Item
    Condition- Item Type of (Item Aquired)= (What ever recipe)
    Action -
    If, Then, Else, Multiple Actions
    -If Aquiring Unit has item 1
    -If Aquiring Unit has item 2
    Then-
    -Drop Item 1 from Aquiring Unit
    -Remove Item 1 from game
    -Drop Item 2
    -Remove Item 2 from game
    -Drop Recipe
    Remove Recipe from game
    -Create (new item) for Aquiring Unit


    That should do it. Hope that i got it right, and goodluck with your map.
     
  6. l33t5up4h4x0r

    l33t5up4h4x0r

    Joined:
    Oct 23, 2006
    Messages:
    228
    Resources:
    1
    Maps:
    1
    Resources:
    1
    In multiple combines, start with the more simple ones...like start from ground up from the basic items all the way to the multicombined ones.
     
  7. Xarwin

    Xarwin

    Joined:
    Nov 16, 2006
    Messages:
    2,232
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Tutorials:
    1
    Resources:
    3
    Item Combinations
    Events
    Unit - A unit Acquires an item
    Conditions
    ((Triggering unit) has an item of type Item1) Equal to True
    ((Triggering unit) has an item of type Item2) Equal to True
    ((Triggering unit) has an item of type Item3) Equal to True
    Actions
    Hero - Drop (Item carried by (Triggering unit) of type Item1) from (Triggering unit)
    Item - Remove (Last dropped item)
    Hero - Drop (Item carried by (Triggering unit) of type Item2) from (Triggering unit)
    Item - Remove (Last dropped item)
    Hero - Drop (Item carried by (Triggering unit) of type Item3) from (Triggering unit)
    Item - Remove (Last dropped item)
    Item - Create Item4 at ((Owner of (Triggering unit)) start location)
    Hero - Give (Last created item) to (Triggering unit)
    Special Effect - Create a special effect attached to the chest of (Triggering unit) using Your Effect
    Destroy last created special effect
     
  8. daggoth

    daggoth

    Joined:
    Dec 31, 2006
    Messages:
    16
    Resources:
    0
    Resources:
    0
    Kidd|WhiteHeaven| this is the triggers you're looking for...
    In order to make your hero create items I can give you a few triggers. You'll see that they aren't difficult to make and look perfectly:

    Trigger 1: how to use an ability to make items...
    First of all you need to make an ability with base ability "Spellbook". The spellbook is and item ability so don't wander why you can't find it in the hero abilities tab. After you're finished editing the ability you have to do the following: make another ability with base ability "Roar" or something like that and remove all bonuses and buffs. Remember to set the casting time to whatever you want so the creating of the item requires time, right? Yeah, right. Then put the Sword ability in the spellbook, change the spellbook so its a hero ability and add it tho your hero's abilities. Name the new ability "Sword" because we now're goin to make a sword for example. Now... of what is made a sword? A few pieces of metal, also you need a hammer to forge with and of course a firepit. Make some items called hammer, iron, sword, place a firepit somwhere and put a region around it. I'll give comments about the functions of the trigger. So now we are ready to begin with the triger:

    Events:
    -A unit finishes casting an ability.
    Conditions:
    -[ability being cast] equal to sword
    Actions:
    -Set CraftingUnit = [Casting unit]
    -Set FireForCrafting = [fire 1]
    -If [all conditions are true] do [then actions] else do [else actions]
    All Conditions are true:
    -FireForCrafting contains [CraftingUnit] equal to true
    -[CraftingUnit has item of type Iron] equal to true
    -[CraftingUnit has item of type Hammer] equal to true
    Then actions:
    -Item - Set charges remaining in [Item carried by CraftingUnit of type Iron] to [[Charges remainig in [item carried by CraftingUnit of type Iron] - 1
    -Hero - Create Sword and give it to [CraftingUnit]
    Else Actions:
    -do nothing
    -If [all conditions are true] do [then actions] else do [else actions]
    All Conditions are true:
    -[Charges remaining in [item carried by CraftingUnit of type Iron]] = 0
    Then actions:
    -Item [remove item carried by CraftingUnit of type Iron]
    Else actions:
    -Do nothing

    I hope I was in help. And if you gonna use that trigger include me in the credits...
     
    Last edited: Jan 2, 2007
  9. Kidd|WhiteHeaven|

    Kidd|WhiteHeaven|

    Joined:
    Nov 4, 2006
    Messages:
    266
    Resources:
    1
    Maps:
    1
    Resources:
    1
    ngahhh! they hurt my head!
     
  10. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,412
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    then, why are you requesting anything? i havent come to hive be4 i learnt to trigger, advanced. i suggest you to learn to trigger and then ask anything you dont understand. You dont seem to understand anything :p
     
  11. Orc_Tamer

    Orc_Tamer

    Joined:
    Jan 5, 2007
    Messages:
    41
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
  12. Kidd|WhiteHeaven|

    Kidd|WhiteHeaven|

    Joined:
    Nov 4, 2006
    Messages:
    266
    Resources:
    1
    Maps:
    1
    Resources:
    1