- Joined
- Jun 6, 2008
- Messages
- 51
I hope to take care of this problem before it actually becomes a problem
I remember reading somewhere on this forum that the Wait function causes problems, one of which was that variables like Triggering unit, Triggering player, and so on may get lost or changed if there is a Wait somewhere in the trigger. I didn't bookmark the tread, so I am unsure.
Here is the trigger I am worried about. portalopentime = 60.00
Also could anyone point me toward the thread that listed all those nasty problems with the wait function? If it doesn't exist we could create it here or elsewhere
I remember reading somewhere on this forum that the Wait function causes problems, one of which was that variables like Triggering unit, Triggering player, and so on may get lost or changed if there is a Wait somewhere in the trigger. I didn't bookmark the tread, so I am unsure.
Here is the trigger I am worried about. portalopentime = 60.00
-
FF dial portal 12
-
Events
- Player - Player 1 (Red) types a chat message containing dial as A substring
- Player - Player 2 (Blue) types a chat message containing dial as A substring
- Player - Player 3 (Teal) types a chat message containing dial as A substring
- Player - Player 4 (Purple) types a chat message containing dial as A substring
- Player - Player 5 (Yellow) types a chat message containing dial as A substring
- Player - Player 6 (Orange) types a chat message containing dial as A substring
-
Conditions
- (Substring((Entered chat string), 1, 5)) Equal to dial
- (Substring((Entered chat string), 6, 7)) Equal to portalcode[1]
- (Substring((Entered chat string), 8, 9)) Equal to portalcode[2]
- (Substring((Entered chat string), 10, 15)) Equal to <Empty String>
- portalbusy[1] Equal to False
- portalbusy[2] Equal to False
- connectionopen[(Player number of (Triggering player))] Equal to False
-
Actions
- Set portalfrom[(Player number of (Triggering player))] = 1
- Set portalto[(Player number of (Triggering player))] = 2
- Neutral Building - Enable portal[portalfrom[(Player number of (Triggering player))]]
- Set portalbusy[portalfrom[(Player number of (Triggering player))]] = True
- Neutral Building - Set portal[portalfrom[(Player number of (Triggering player))]] destination to (Center of portalregions[portalto[(Player number of (Triggering player))]])
- Set portalbusy[portalto[(Player number of (Triggering player))]] = True
- Set connectionopen[(Player number of (Triggering player))] = True
- Wait portalopentime seconds
- Neutral Building - Disable portal[portalfrom[(Player number of (Triggering player))]]
- Set portalbusy[portalfrom[(Player number of (Triggering player))]] = False
- Neutral Building - Disable portal[portalto[(Player number of (Triggering player))]]
- Set portalbusy[portalto[(Player number of (Triggering player))]] = False
- Set portalfrom[(Player number of (Triggering player))] = 0
- Set portalto[(Player number of (Triggering player))] = 0
- Set connectionopen[(Player number of (Triggering player))] = False
-
Events
Also could anyone point me toward the thread that listed all those nasty problems with the wait function? If it doesn't exist we could create it here or elsewhere