# [Trigger]How to make an item unique?

#### The-Weeh.

Level 6
Can u make a item unique with trigger? like this?
• Unique
• Events
• A unit acquires an item
• Conditions
• Item being manipulated equal to Unique item
• Actions
• Drop if it already has one?? :D

#### Need_O2

Level 19
Event
Unit Aquires item
Conditions
if Aquired item is equal to Unique item
For Each integer From 1 to 6
..loop actions
......if Item in (integer A) slot of Triggering Unit is equal to Unique item
..........then
............if <a custom boolean value you created> is equal to false
.................then
......................set <same custom boolean value you created> to true
.................else
......................Make Triggering Unit drop the Aquired item
......................set <same custom boolean value you created> to false
..........else

Should work

#### GhostWolf

Level 29
• Untitled Trigger 00.2948
• Events
• Unit - A unit Acquires an item
• Conditions
• Actions
• For each (Integer A) from 1 to 6, do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
• Then - Actions
• Hero - Drop (Item being manipulated) from (Triggering unit)
• Skip remaining actions
• Else - Actions

w00t im second ?

#### The-Weeh.

Level 6
:S

• Untitled Trigger 00.2948
• Events
• Unit - A unit Acquires an item
• Conditions
• Actions
• For each (Integer A) from 1 to 6, do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
• Then - Actions
• Hero - Drop (Item being manipulated) from (Triggering unit)
• Skip remaining actions
• Else - Actions

w00t im second ?

That would make every unit Unique

#### The-Weeh.

Level 6
:..

Event
Unit Aquires item
Conditions
if Aquired item is equal to Unique item
For Each integer From 1 to 6
..loop actions
......if Item in (integer A) slot of Triggering Unit is equal to Unique item
..........then
............if <a custom boolean value you created> is equal to false
.................then
......................set <same custom boolean value you created> to true
.................else
......................Make Triggering Unit drop the Aquired item
......................set <same custom boolean value you created> to false
..........else

Should work

Ye for like one time i think?

#### Need_O2

Level 19
• Untitled Trigger 00.2948
• Events
• Unit - A unit Acquires an item
• Conditions
• Actions
• For each (Integer A) from 1 to 6, do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
• Then - Actions
• Hero - Drop (Item being manipulated) from (Triggering unit)
• Skip remaining actions
• Else - Actions

w00t im second ?

wouldnt it drop it in first taking "the second one" ?

#### The-Weeh.

Level 6

Im still taking replies, the solution isn't found
Come on! I'll credit you in my map for this trigger if it works??

#### GhostWolf

Level 29
• Untitled Trigger 2947.42
• Events
• Unit - A unit Acquires an item
• Conditions
• someCondition
• Actions
• For each (Integer A) from 1 to 6, do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
• (Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
• Then - Actions
• Hero - Drop (Item being manipulated) from (Triggering unit)
• Skip remaining actions
• Else - Actions

Level 6

#### The-Weeh.

Level 6
Great solution but this thread is CONFUSING

• Untitled Trigger 2947.42
• Events
• Unit - A unit Acquires an item
• Conditions
• someCondition
• Actions
• For each (Integer A) from 1 to 6, do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
• (Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
• Then - Actions
• Hero - Drop (Item being manipulated) from (Triggering unit)
• Skip remaining actions
• Else - Actions

Great solution but this thread is CONFUSING

#### Need_O2

Level 19
Hmm working solutions isnt enough for him

Then try this
Custom script: ExecuteFunc("DropIfItHasOne")

LOL xD "Untitled Trigger 2947.42"

#### The-Weeh.

Level 6
:S

?Hmm working solutions isnt enough for him

Then try this
Custom script: ExecuteFunc("DropIfItHasOne")

Okay but does that work?

And im sorry but it couldn't get it work??

#### GhostWolf

Level 29
That will crush his game... wouldn't it ? you evil thing

#### The-Weeh.

Level 6
That will crush his game... wouldn't it ? you evil thing
Isn't there someone who like to help?
hehe

#### Need_O2

Level 19
A moderator can help us (by closing the thread)

#### The-Weeh.

Level 6
A moderator can help us (by closing the thread)

Hey Need_O2 im sorry?? what have i done to you?? I just ask for a solution and u give me a custom script code that probably would crash my map??

If you still wanna help me.. Plz do it

#### GhostWolf

Level 29
Use the trigger I gave you... ?

#### The-Weeh.

Level 6
,,

Use the trigger I gave you... ?

Does it work 100% and is it right setup?

#### Need_O2

Level 19
Ghost Wolf I think you'll trigger will drop the item when you take first time
Use my way (battle begins)

#### GhostWolf

Level 29
My first one will, my second one won't.

#### Need_O2

Level 19
Uh sorry I didnt see the second one...
Apologies

And yes This trigger of GhostWolf will %1000000000000000000 work
• Untitled Trigger 2947.42
• Events
• Unit - A unit Acquires an item
• Conditions
• someCondition
• Actions
• For each (Integer A) from 1 to 6, do (Actions)
• Loop - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
• (Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
• Then - Actions
• Hero - Drop (Item being manipulated) from (Triggering unit)
• Skip remaining actions
• Else - Actions

Repleace someCondition with Item-type of (Item being manipulated)) is equal to <Your Unique item>

If you have more uniques
find OR multiple conditions from conditions
and place your conditions inside it

Level 6

Level 19

#### h3k241

Level 4
Lol... all of the Users here got confused hehehhe...

#### The-Weeh.

Level 6
The-Weeh. is not stupid

LoL

(also give credit and +rep to ghostwolf)

I did He's my freaking idol

Replies
2
Views
272
Replies
3
Views
461
Replies
18
Views
711
Replies
8
Views
431
Replies
19
Views
865