- Joined
- Nov 18, 2015
- Messages
- 41
I guess today just isn't my day. Gate doesn't like me, won't open. I'm awful tired and could probably use a fresh pair of eyes to take a gander and find what I'm doing wrong here.
EDIT: My apologies, I JUST realized I was in the wrong section. I'm sorry.
EDIT2: After a few tests I determined my first problem lies with the first condition...
EDIT: My apologies, I JUST realized I was in the wrong section. I'm sorry.
EDIT2: After a few tests I determined my first problem lies with the first condition...
-
If - Conditions
-
((Triggering unit) is in (Units in gateRegion[tempInt])) Equal to True
-
(gateRegion[tempInt] contains tempLoc) Equal to True
-
(gateRegion[tempInt] contains (Triggering unit)) Equal to True
-
-
Main
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Trigger - Run InitGates <gen> (ignoring conditions)
-
-
-
InitGates
-
Events
-
Conditions
-
Actions
-
Set gate[0] = Icy Gate (Horizontal downwards) 0100 <gen>
-
Set gateRegion[0] = gate01 <gen>
-
Set gateCount = 1
-
For each (Integer tempInt) from 0 to (gateCount - 1), do (Actions)
-
Loop - Actions
-
Set gateOpen[tempInt] = False
-
Trigger - Add to Gate Open <gen> the event (Unit - A unit enters gateRegion[tempInt])
-
Trigger - Add to Gate Close <gen> the event (Unit - A unit leaves gateRegion[tempInt])
-
-
-
-
-
Gate Open
-
Events
-
Conditions
-
Actions
-
For each (Integer tempInt) from 0 to (gateCount - 1), do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) is in (Units in gateRegion[tempInt])) Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
gateOpen[tempInt] Equal to False
-
-
Then - Actions
-
Destructible - Open gate[tempInt]
-
Set gateOpen[tempInt] = True
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-
-
Gate Close
-
Events
-
Conditions
-
Actions
-
For each (Integer tempInt) from 0 to (gateCount - 1), do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in gateRegion[tempInt])) Equal to 0
-
gateOpen[tempInt] Equal to True
-
-
Then - Actions
-
Destructible - Close gate[tempInt]
-
Set gateOpen[tempInt] = False
-
-
Else - Actions
-
-
-
-
-
Last edited: