Item Crafting

W

Wryu

Guest
Hey guys

I'm really struggling with a trigger for item crafting. The trigger that i tried to create involves turning my Necklace of Mana and my Neclacke of Health into ONE Amulet of Power.

Can someone please give me a working trigger for this.

Cheers,
Wryu

:eek:
 
Check the Free Trigger Code sectction. I am gonna make a JASS system for this, though, so you can look for Korolen's Item Conbination System in a while. :)
 
it is very simple, here is a sample

First Ten
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Blade of Alacrity) Equal to True
((Triggering unit) has an item of type Diffusal Blade) Equal to True
((Triggering unit) has an item of type Robe of the Magi +6) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Blade of Alacrity)
Item - Remove (Item carried by (Triggering unit) of type Diffusal Blade)
Item - Remove (Item carried by (Triggering unit) of type Robe of the Magi +6)
Item - Create Diffusal Blade at (Position of (Triggering unit))
Hero - Give (Last created item) to (Triggering unit)
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions



just do that for each of your items, and the beaty is they can all be in 1 trigger, or as you can see from my name i do mine in increments of 10, and yes this is in the free code section, always check there first, and next time search, if you did you would have seen 50+ topics on this same exact thing
 
Is there anything you left out of that trigger???

My trigger reads...

Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Necklace of Health) Equal to True
((Triggering unit) has an item of type Necklace of Mana) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Necklace of Health)
Item - Remove (Item carried by (Triggering unit) of type Necklace of Mana)
Item - Create Amulet of Power at (Position of (Triggering unit))
Hero - Give (Last created item) to (Triggering unit)
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions

The items only become the amulet of power after having both in the inventory and then buying another item...

how do i correct this???
 
The event a unit aquires an item happens just before the item enters the inventory. So at the moment this trigger runs, the player has clicked to buy the item but the item isn't in the inventory yet. I don't have WE here, but what about doing this: In the conditions of the trigger you put Or (multiple conditions) and in that or you put item being manipulated is equal to Necklace of health and item being manipulated is equal to Necklace of mana. Then make it so that if item being manipulated is the health one, the trigger checks whether the unit has tha mana one, and if it's the mana one, it checks whether the unit has the health one. If that is true, let the other actions replace both items with the amulet of power.
 
> The event a unit aquires an item happens just before the item enters the inventory.

Hm... I've done pretty much all of my "item" triggers with "acquires" and I've never seen it not being in the inventory...

I would use "Hero manipulating item" instead of "triggering unit", but, that's about it.
This trigger, as posted up here, looks like it should work as expected...
 
Grrrrrr

Trigger still not working...

I buy the two items and nothing happens
Then i buy another item (any item) and the the actions are finally triggered.

I don't understand :confused:

Could my world editor be bugged??
 
Your world editor's working fine. Buying one of the two reagents won't trigger the actions because the conditions explicitly state that both items must be in the inventory WHEN you pick up the item. The third item will work because by then both items are in your inventory. You'll have to change your trigger to this:

Events
Unit - A unit Acquires an item
Conditions
Or - Any condition satisfies
(Item-type of (Item being manipulated)) Equal to Necklace of Health or
(Item-type of (Item being manipulated)) Equal to Necklace of Mana
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any condition satisfies
((Triggering unit) has an item of type Necklace of Health) Equal to True
((Triggering unit) has an item of type Necklace of Mana) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Necklace of Health)
Item - Remove (Item carried by (Triggering unit) of type Necklace of Mana)
Item - Create Amulet of Power at (Position of (Triggering unit))
Hero - Give (Last created item) to (Triggering unit)
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions

The Or, Multiple Conditions is the key. If you have one and pick up another, it will work.
 
Events
Unit - A unit Acquires an item

Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot 1)) Equal to Enhanced Attack Claws
(Item-type of (Item carried by (Hero manipulating item) in slot 2)) Equal to Claws of Agility
(Item-type of (Item carried by (Hero manipulating item) in slot 3)) Equal to Belt of Holy Speed

Actions
Item - Remove (Item carried by (Hero manipulating item) of type Enhanced Attack Claws)
Item - Remove (Item carried by (Hero manipulating item) of type Claws of Agility)
Item - Remove (Item carried by (Hero manipulating item) of type Belt of Holy Speed)
Hero - Create Archers Half Plate Armor and give it to (Hero manipulating item)

that trigger im using in my map im working on its grate if you wonna make 2 of the same item turn in to some thing ells just thought ide post you this one encase you wont to do some thing with the same item
 
> (Item-type of (Item carried by (Hero manipulating item) in slot 1)) Equal to Enhanced Attack Claws
> (Item-type of (Item carried by (Hero manipulating item) in slot 2)) Equal to Claws of Agility
> (Item-type of (Item carried by (Hero manipulating item) in slot 3)) Equal to Belt of Holy Speed

I'd suggest you have a look at the post above yours.
Because, with this, what happens if I have the items in a different order?
 
Thanks for all of your help guys

I think we can declare this subject officially closed

Cheers,
Wryu
 
124efoksdfpk3kfrtmoev

The method that i fianlly devised can only be used to morph no more than 2 items together.

Could someone please give me a working trigger for morphing 2 or more items

Surely someone knows how to do it!

:(
 
This is off the top of my head.

Code:
Event
Unit Aquires an Item
Conditions
(Manipulating Hero) has Item of Type Boots of Speed Equal to True
(Manipulating Hero) has Item of Type Slippers of Agility Equal to True
Actions
Remove Item of Type Boots of Speed from (Manipulating Hero)
Remove Item of Type Slippers of Agility from (Manipulating Hero)
Create Boots of Elvenskin and Give it to (Manipulating Hero)

Probally spelling mistakes and stuff since my editor is closed.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    Like yeah I can tell. I don't need to fucking know.
  • Varine Varine:
    So now he's getting scrutinized and will not be top of the list. I know I don't have the smartest people but I do expect them to have some common fucking sense
  • Varine Varine:
    I did do a rare thing for me and hire a girl last month without warning. Everyone was made at me because I started her at like 21, but she worked with me before and I was like don't care. She made 19 at her old job and I wanted her to come work with me, she is the best
    +1
  • Varine Varine:
    I'm going to get her a raise at the end of the summer. She wants to go to school again, but I want her to still work with me so.... she kind of can just tell me what the price is. I can go to 25 if she keeps up. I need to get her onto line more, that's what she wants, but I need her where she is and it's not fair that she doesn't get the little bit of raise that comes with it. She can do it no problem, I've worked with her there.
  • Varine Varine:
    It's just hard to move and train people unnecessarily right now. And also the line fucking sucks, it's not any more fun. This is turn and burn so I have the bankroll, and everyone suffers for it
  • Varine Varine:
    Eventually we'll get it balanced, we'
  • Varine Varine:
    we're starting online orders and stuff, but I also turn that off all the time because I barely keep up trying to be the best at Sysco shit
  • Varine Varine:
    I think it's gonna be a good fall and winter though. We're going to have a good staff, they will get along, they will be able to manage the workload and the complications, they know how to really cook this year, like every person on line knows their steak temps. Some of them use thermometers a lot and they don't always use them right, but they do know how to do it. Failure, especially in this field, is the only way to get better. They'll get it
  • Varine Varine:
    They won't get feel down while they do the thermometer, but we didn't have an instant read probe when I was learning. Like they did but god knows how off it is, you HAD to do it by feel. Even if the chef was fine with me bringing my own, it takes too long. Poke and know
  • The Helper The Helper:
    420 threads in the Artificial Intelligence forum :)
  • The Helper The Helper:
    Happy Monday!
    +1
  • The Helper The Helper:
    and then it was Tuesday!
    +1
  • The Helper The Helper:
    fyi I am going out of town to lake somewhere in bfe texas for the weekend will be gone Friday morning to sunday afternoon for a paranormal thing and some rest peace
  • jonas jonas:
    cool take it easy
  • jonas jonas:
    I recently had an experience with a waiter that really brought down @Varine's point about them being in sales. The first waiter just asked "anything else? deserts?" and when the table shook their head said "ok" and left. Then the other waiter came in and started going off describing the deserts and you could see the heads turning, and they finally got a bunch of deserts
  • jonas jonas:
    makes sense if you consider that the tip is basically a commission on sales
    +1
  • The Helper The Helper:
    anybody know what the attachment limit size is on the forum?
  • The Helper The Helper:
    answer 65536 kb
  • Ghan Ghan:
    That's an arbitrary number. It could be whatever you want, really. Though one wonders what the use case is for uploading giant files to a forum these days.
  • The Helper The Helper:
    I should have asked elsewhere but i wanted vsnes to see he is trying to upload a pic no big deal it can stay where it is.
  • The Helper The Helper:
    That was a fun trip. Next time I am going to get some kind of water thing like a kayak or something to boat out n the lake, maybe get a place with a pier on it.
  • The Helper The Helper:
    Happy Monday! Hope everyone has a fantastic week!
  • A Andyoyo:
    Have a great week as well
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top