- Joined
- Jan 29, 2010
- Messages
- 213
[SOLVED]
Hi all, I have some kind of problem with changing units when I drop Item(Gun(Bow))
[trigger.]Drop Gun:
I tested all trigger with game display text, and so the result is:
---at start---
Item[2]=0
---Picked up item---
Item[2]=1
---Dropped item---
Item[2]=1
------------------
So the problem is in event (unit loses an item(It works only when unit picks up the item, but not when he drops him))
What kind of even I have to use to get this trigger working correctly, like he has to?
There's map if u want to test it:
http://www.hiveworkshop.com/forums/pastebin_data/0v71nu/_files/test.w3x
Hi all, I have some kind of problem with changing units when I drop Item(Gun(Bow))
[trigger.]Drop Gun:
-
Gun drop
-
Events
-
Unit - A unit Loses an item
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item level of (Item being manipulated)) Equal to 1
-
-
Then - Actions
-
Set Item[2] = 0
-
For each (Integer ItemSlot[2]) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item level of (Item carried by (Hero manipulating item) in slot ItemSlot[2])) Equal to 1
-
-
Then - Actions
-
Set Item[2] = (Item[2] + 1)
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Item[2] Equal to 0
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Hero manipulating item)) Equal to Gladiator |cffffcc00Str|r lnk
-
(Unit-type of (Hero manipulating item)) Equal to Gladiator |cffffcc00Int|r lnk
-
(Unit-type of (Hero manipulating item)) Equal to Gladiator |cffffcc00Agi|r lnk
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Simple Bow
-
-
Then - Actions
-
If ((Unit-type of (Hero manipulating item)) Equal to Gladiator |cffffcc00Str|r lnk) then do (Unit - Replace (Hero manipulating item) with a Gladiator |cffffcc00Str|r using The old unit's relative life and mana) else do (Do nothing)
-
If ((Unit-type of (Hero manipulating item)) Equal to Gladiator |cffffcc00Agi|r lnk) then do (Unit - Replace (Hero manipulating item) with a Gladiator |cffffcc00Agi|r using The old unit's relative life and mana) else do (Do nothing)
-
If ((Unit-type of (Hero manipulating item)) Equal to Gladiator |cffffcc00Int|r lnk) then do (Unit - Replace (Hero manipulating item) with a Gladiator |cffffcc00Int|r using The old unit's relative life and mana) else do (Do nothing)
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Hero - Give (Item carried by (Hero manipulating item) in slot (Integer A)) to (Last replaced unit)
-
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
I tested all trigger with game display text, and so the result is:
---at start---
Item[2]=0
---Picked up item---
Item[2]=1
---Dropped item---
Item[2]=1
------------------
So the problem is in event (unit loses an item(It works only when unit picks up the item, but not when he drops him))
What kind of even I have to use to get this trigger working correctly, like he has to?
There's map if u want to test it:
http://www.hiveworkshop.com/forums/pastebin_data/0v71nu/_files/test.w3x
Last edited: