• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Item combination !?

Status
Not open for further replies.
Level 7
Joined
Dec 20, 2007
Messages
151
Hi i'm Sasuke32 and i need some help with this trigger i don't know why this don't work properly!
  • Events
    • Unit - A unit Acquires an item
    • Conditions
      • (Item being manipulated) Equal to (Item carried by (Triggering unit) of type Cloak of Yondaime)Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item carried by (Triggering unit) in slot (Min(1, 6))) Equal to (Item carried by (Triggering unit) of type Cloak of Sarutobi)
        • Then - Actions
          • Item - Remove (Item being manipulated)
          • Wait 0.10 seconds
          • Item - Remove (Item carried by (Triggering unit) in slot (Max(1, 6)))
          • Wait 0.10 seconds
          • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
          • Wait 0.10 seconds
          • Item - Create Legendary Cloak of Jiraya at ((Position of (Triggering unit)) offset by 250.00 towards 500.00 degrees)
        • Else - Actions
please help me this trigger work about 50% he remove item being manipulated but that item from trigger unit in slot 1-6 don't remove and the new item one stronger not go in one of 1-6 slots of hero why??

:con:
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Saying
  • (Item carried by (Triggering unit) in slot (Min(1, 6))) Equal to (Item carried by (Triggering unit) of type Cloak of Sarutobi)
is exactly the same as saying
  • (Item carried by (Triggering unit) in slot 1 Equal to (Item carried by (Triggering unit) of type Cloak of Sarutobi)
In other words, it will only check slot 1 instead of slots 1 to 6. Which means it'll only check if the Cloak is in slot 1, and not in any other slot.

Then you also do this:
  • Item - Remove (Item carried by (Triggering unit) in slot (Max(1, 6)))
That's exactly the same as saying
  • Item - Remove (Item carried by (Triggering unit) in slot 6)
 
Level 5
Joined
Nov 14, 2007
Messages
161
make a loop from 1-6 and check each slot of integer 'a' in the loop. basically checks each inventory slot for the item-type that u pick.
 
Status
Not open for further replies.
Top