• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Items

Status
Not open for further replies.
Level 2
Joined
Apr 28, 2011
Messages
15
[Solved] Items

How could I do trigger that would destroy/drop item if u pick 2 of the same type.
Also how to do saving system?
Thats what i done so far.

  • Melee Initialization
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-class of (Picked item)) Equal to (Item-class of (Item carried by (Triggering unit) in slot (Size of inventory for (Triggering unit))))
          • (Unit-type of (Triggering unit)) Equal to Paladin
        • Then - Actions
          • Item - Remove (Picked item)
        • Else - Actions
          • Do nothing
 
Last edited:
I think this trigger could work, but it's for every item in ur map...
  • Drop
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to SWORD
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Hero manipulating item) has an item of type SWORD) Equal to True
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
        • Else - Actions
 
so will that work for only like 1 item or all items?
cause i would love to like that u can have only 1 item of each class like weapons or stuff like that
 
and how to get that second condition cant find it anywhere.
found it :P
and link please?
didnt work it drops any item that is velens dagger or what ever i putted instead of sword
 
  • Drop
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Hero manipulating item) has an item of type SWORD) Equal to True
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Hero manipulating item) has an item of type SWORD) Equal to True
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
        • Else - Actions
You copy the if like this.
 
got working but only for some time after i pick one item of class it drops any other of the same class but if i drop every item i cant get that item back

  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to (Item-class of itemo)
    • Actions
      • Hero - Drop (Item being manipulated) from (Hero manipulating item)
  • Untitled Trigger 002
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • Set itemo = (Item being manipulated)
 
This system will prevent you from having the same item
Not same item-class
Like Sword = Weapon | Dagger = Weapon | Both of them can't be on the same unit (NO, MY SYSTEM IS NOT LIKE THIS)

My system works like:
You have 1 Blades of Attack
You take another Blades of Attack which makes that unit now has 2 current Blades of Attack, right ?
It will destroy both of them for having the same item

Simple Explanation:
Item A > 1 = Destroy all Item Type of Item A for the unit
 

Attachments

at ur map it deletes both if i take 2 daggers they both get dis appeared....

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ItemCount Greater than 1
    • Then - Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit)
    • Else - Actions
got it working by chanig last line to drop and only item manupulated and do i have to give credits from my map?
 
yes but got it working
e:ty
e2: and how i modify this to my own items?
e3: anyone know how to do like when he gets sword it is seen at his hand and stuff
 
so id have to copy that about 100 times and but each one another items?
e: and if i put there like 2 different items with same class i can wear them so how can i make ths work on my own items
 
still having problems with gettting it work is there way to do like system that drops items that i pick that are same class?
got it working thanks kobas great ids system.
 
Last edited:
Status
Not open for further replies.
Back
Top