Posted: Tue Mar 23, 2004 8:55 am Post subject:
Multi triggers (singleplayer FinalSun)
I'm trying to get my head around this. I can do the basic one off triggers but doing multiple is a pain in the arse. I'm trying to achieve something like this...
Engineer/Spy infiltrate/capture building - objective complete
Building destroyed - objective failed.
Now I've been looking at westwood maps and the target building often has the lose trigger attached e.g. T.V. Lose.
But this local variable stuff seems to do jack all, I need a more bare bones kinda tutorial _________________ QUICK_EDIT
The 'lose' trigger is simple, just create a trigger for the player's side, Event = ' Attached building destroyed' (note, not attacked, but attached), and action = 'lose'
Double click on the building at attach the trigger you just created.
The 'win' trigger is done in the same way, but event should be something like 'building infiltrated' (not sure if it exists). While the action is 'win', obviously. This trigger should also be connected to the building, but Finalsun only allows one trigger to be attached, so try to figure that out in the map's ini code. (look at the building's stats). QUICK_EDIT
Maybe use something with waypoints. (Engineer gets near waypoint beneath conyard.) but ofcourse, conyard shouldn't be destroyed then. So then you'll have to make a trigger that sets a local at the start of the mission, and that local is disabled when the building would be destroyed. You would then need events 1)engineer gets near the waypoint and 2) local is 'on'. QUICK_EDIT
This is easy. Make your win trigger using event #1. Make your lose trigger using event #48. Attach your winning trigger to the building. Under trigger options, attach your losing trigger to the winning trigger. Tada, you have two triggers attached to the same building.
(If it doesn't work, then attach the winning trigger to the losing trigger instead. I might have gotten mixed up.) QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum