OK as you all know I am working on
Starcraft Fortress. And I encountered something really stupid, at least I think it's stupid not me

...
I need a teleporter
system, few triggers actually. Probe builds a pylon and it is replaced with disabled cannon(teleporter entrance). Then build another pylon which is teleporter exit. The trigger is for offence packs(p3,4,7,8) so I'll write it as p3...
| Trigger |
| Description: |
| build entrance |
| Players: |
| ¤ p3 |
| Conditions: |
¤ p3 commands exactly 0 entrance
|
| ¤ p3 commands exactly 1 exit(100% warped pylon) |
| Actions: |
¤ center location "p3 t1" on exit
|
¤ remove 1 exit at "p3 t1" for p3
|
¤ wait 100 ms
|
¤ create 1 entrance for p3 at "p3 t1"
|
| ¤ preserve trigger |
| Trigger |
| Description: |
| build exit |
| Players: |
| ¤ p3 |
| Conditions: |
¤ p3 commands exactly 1 entrance
|
| ¤ p3 commands exactly 1 exit |
| Actions: |
¤ center location "p3 t2" on exit
|
| ¤ preserve trigger |
| Trigger |
| Description: |
| disable entrance |
| Players: |
| ¤ p3 |
| Conditions: |
| ¤ always |
| Actions: |
¤ disable entrance for p3 at p3 t2
|
| ¤ preserve trigger |
Ok this far everything works fine but there comes the "stupid" part...
(Force1,2 is team red)
| Trigger |
| Description: |
| display p3 teleporter is connected |
| Players: |
| ¤ force1,2 |
| Conditions: |
¤ switch 1 is cleared
|
| ¤ p3 brings at exactly 1 exit to "p3 t2" |
| Actions: |
¤ set switch 1
|
¤ display text...
|
| ¤ preserve trigger |
| Trigger |
| Description: |
| display p3 teleporter is disconnected |
| Players: |
| ¤ force1,2 |
| Conditions: |
¤ switch 1 is set
|
| ¤ p3 brings at exactly 0 exit to "p3 t2" |
| Actions: |
¤ clear switch 1
|
¤ display text...
|
| ¤ preserve trigger |
The first one runs but the second one never runs, I mean WTF is wrong. No other switches or probably anything else is used. IM just confused and to be honest I am making this stupid trigger whole day already
