tonton302
Member
- Reaction score
- 0
I have this trigger that works in a new map, but when I try to put it into my rpg it doesn't. I copy pasted the exact code and it just doesn't work. I looked through all of my other triggers and I don't see any contradictory triggers. If you want to see the map I will let you. Or if you have another trigger I can try.
Trigger 1
Trigger 2
Thanks
Trigger 1
Code:
Time - Every 0.10 seconds of game time
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Set ItemThing[1] = (Item carried by (Picked unit) in slot 1)
Set ItemThing[2] = (Item carried by (Picked unit) in slot 2)
Set ItemThing[3] = (Item carried by (Picked unit) in slot 3)
Set ItemThing[4] = (Item carried by (Picked unit) in slot 4)
Set ItemThing[5] = (Item carried by (Picked unit) in slot 5)
Set ItemThing[6] = (Item carried by (Picked unit) in slot 6)
Code:
Unit - A unit Acquires an item
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 ItemThing[1])
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - 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 ItemThing[2])
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - 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 ItemThing[3])
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - 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 ItemThing[4])
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - 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 ItemThing[5])
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - 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 ItemThing[6])
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - Actions
Do nothing
Thanks