- Joined
- Jul 21, 2015
- Messages
- 143
So the purpose of this trigger is for a unit to "drop" a feather (item) every so often. I don't want the feather to stay on the map, as in it should disappear if it is not picked up. I have currently 10 eagles (set as variables for simplicity) and the trigger checks that the feather has not been picked up.
Things that work:
* the feather does disappear
Things that don't work:
*the feather still disappears even if certain units have the item in their inventory
I will accept any suggestions to make the trigger work better, even if it means completely deleting this trigger. I have the eagles set as variables and they can die but a new one takes their place with the proper variable, so that is a constant. Anyways here is the trigger... sorry its long
Things that work:
* the feather does disappear
Things that don't work:
*the feather still disappears even if certain units have the item in their inventory
I will accept any suggestions to make the trigger work better, even if it means completely deleting this trigger. I have the eagles set as variables and they can die but a new one takes their place with the proper variable, so that is a constant. Anyways here is the trigger... sorry its long
-
DropFeathers Copy
-
Events
-
Time - Every 13.00 seconds of game time
-
-
Conditions
-
Actions
-
Custom script: set udg_Feather1 = null
-
Custom script: set udg_Feather2 = null
-
Custom script: set udg_Feather3 = null
-
Custom script: set udg_Feather4 = null
-
Custom script: set udg_Feather5 = null
-
Custom script: set udg_Feather6 = null
-
Custom script: set udg_Feather7 = null
-
Custom script: set udg_Feather8 = null
-
Custom script: set udg_Feather9 = null
-
Custom script: set udg_Feather10 = null
-
Item - Create Feather at (Position of Eagle1)
-
Set VariableSet Feather1 = (Last created item)
-
Item - Create Feather at (Position of Eagle10)
-
Set VariableSet Feather10 = (Last created item)
-
Item - Create Feather at (Position of Eagle2)
-
Set VariableSet Feather2 = (Last created item)
-
Item - Create Feather at (Position of Eagle3)
-
Set VariableSet Feather3 = (Last created item)
-
Item - Create Feather at (Position of Eagle4)
-
Set VariableSet Feather4 = (Last created item)
-
Item - Create Feather at (Position of Eagle5)
-
Set VariableSet Feather5 = (Last created item)
-
Item - Create Feather at (Position of Eagle6)
-
Set VariableSet Feather6 = (Last created item)
-
Item - Create Feather at (Position of Eagle7)
-
Set VariableSet Feather7 = (Last created item)
-
Item - Create Feather at (Position of Eagle8)
-
Set VariableSet Feather8 = (Last created item)
-
Item - Create Feather at (Position of Eagle9)
-
Set VariableSet Feather9 = (Last created item)
-
Wait 10.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather1) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather1) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather1) Equal to False
-
(Main Character 0006 <gen> has Feather1) Equal to False
-
(Main Character 0007 <gen> has Feather1) Equal to False
-
(Main Character 0049 <gen> has Feather1) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather1
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather2) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather2) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather2) Equal to False
-
(Main Character 0006 <gen> has Feather2) Equal to False
-
(Main Character 0007 <gen> has Feather2) Equal to False
-
(Main Character 0049 <gen> has Feather2) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather2
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather3) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather3) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather3) Equal to False
-
(Main Character 0006 <gen> has Feather3) Equal to False
-
(Main Character 0007 <gen> has Feather3) Equal to False
-
(Main Character 0049 <gen> has Feather3) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather3
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather4) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather4) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather4) Equal to False
-
(Main Character 0006 <gen> has Feather4) Equal to False
-
(Main Character 0007 <gen> has Feather4) Equal to False
-
(Main Character 0049 <gen> has Feather4) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather4
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather5) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather5) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather5) Equal to False
-
(Main Character 0006 <gen> has Feather5) Equal to False
-
(Main Character 0007 <gen> has Feather5) Equal to False
-
(Main Character 0049 <gen> has Feather5) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather5
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather6) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather6) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather6) Equal to False
-
(Main Character 0006 <gen> has Feather6) Equal to False
-
(Main Character 0007 <gen> has Feather6) Equal to False
-
(Main Character 0049 <gen> has Feather6) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather6
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather7) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather7) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather7) Equal to False
-
(Main Character 0006 <gen> has Feather7) Equal to False
-
(Main Character 0007 <gen> has Feather7) Equal to False
-
(Main Character 0049 <gen> has Feather7) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather7
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather8) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather8) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather8) Equal to False
-
(Main Character 0006 <gen> has Feather8) Equal to False
-
(Main Character 0007 <gen> has Feather8) Equal to False
-
(Main Character 0049 <gen> has Feather8) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather8
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather9) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather9) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather9) Equal to False
-
(Main Character 0006 <gen> has Feather9) Equal to False
-
(Main Character 0007 <gen> has Feather9) Equal to False
-
(Main Character 0049 <gen> has Feather9) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather9
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Main Character (ranged) 0008 <gen> has Feather10) Equal to False
-
(Main Character (ranged) 0050 <gen> has Feather10) Equal to False
-
(Main Character (ranged) 0051 <gen> has Feather10) Equal to False
-
(Main Character 0006 <gen> has Feather10) Equal to False
-
(Main Character 0007 <gen> has Feather10) Equal to False
-
(Main Character 0049 <gen> has Feather10) Equal to False
-
-
-
-
Then - Actions
-
Item - Remove Feather10
-
-
Else - Actions
-
-
-