PDA

View Full Version : Malfunctional Triggers


zeratulthedark
12-30-2006, 2:17 PM
Can someone help me with these RPG triggers?
I have a trigger for a door, but instead of closing, the door re-opens again
this is the trigger:
Players:1
Conditions:
P1 brings exactly 1 any unit to location door
Actions:
Toogle doodoad state for right uper door for player 3 at location door
wait for 3500 miliseconds
Toogle doodoad state for right uper door for player 3 at location door
wait for 3500 miliseconds
preserve trigger

And I have another RPG problem in this case the triger doesn't start, this is the trigger:
Players:1
Conditions:P1 brings exactly 1 terran ghost to location1
Actions:
Send transmition from high templar at location2
Send transmition from high templar at location2
give all high templar owned by P7 to P5
Wait for 1 miliseconds
disable invincibility for all high templar owned by P5 at anywhere
Set swich1
can ayone hel me please?
I hate those triggers that seem to work and don't work :chuckball:twak:

SuiCidAl-KiSmEt
12-30-2006, 2:52 PM
The 'toggle' option close the door if it's open and opens the door when it's closed and you got the preserve trigger on it...
To learn how to open and close doors properly, check the FAQ (http://www.warboards.org/showthread.php?t=13285).

I have no clue how the second trigger wouldn't work, except your Ghost isn't going to the right location. Also, the transmition trigger has a wait function in it, if there is another trigger causing a long pause of wait it will effect the transmission trigger. Playing the map in Multiplayer will decrease or remove the wait, try seeing if the map works in a Multiplayer mode (like playing it under LAN UDP, Battle.net, or something).

zeratulthedark
12-30-2006, 4:32 PM
Some days ago the door trigger was different but the problem was the same.
This was the trigger:
Players:1
Conditions:
P1 brings exactly 1 any unit to location door
Actions:
Disable doodoad state for right uper door for player 3 at location door
wait for 3500 miliseconds
Enable doodoad state for right uper door for player 3 at location door
wait for 3500 miliseconds
preserve trigger
I have other transmitions in my RPG (because the High Templar is tasadar and he is the second Boss of my game) But the other transmitions were OK

SuiCidAl-KiSmEt
12-30-2006, 6:28 PM
For the doors, you got to make two triggers, one when someone is trieng to open the door and the other when someone is not near the door.

Try to disable the door when a unit enter the door's location and enable the door when no one is around the door's location. You won't need wait triggers, which works better for game.

zogzog
12-30-2006, 7:44 PM
I dont know if this will help but here's a guide for doors:
http://www.staredit.net/index.php?tutorial=27

Opening and closing the door in the same trigger is probably the problem.

For the second one I have no idea except to doublecheck the location in the trigger matches the location name on the map.

TheDriver
12-30-2006, 9:00 PM
Check The Trigger by doing this
Conditions:
Always
Actions: Wait 60000 seconds display minimap ping at location door.
Preserve Trigger This should help you find the location when you bring the unit to the square the trigger should activate. When you Finsh delete the trigger!