PDA

View Full Version : Ending a mission after a certain amount of SOM missions have been completed?



MechaStalin
Jun 3 2009, 08:54
Is it possible to have a script or trigger running that once you had completed a certain amount of SOM missions, say 5, it ended the mission?

DnA
Jun 3 2009, 15:20
Is it possible to have a script or trigger running that once you had completed a certain amount of SOM missions, say 5, it ended the mission?

Yes :)

The SecOps template (04: Combat) uses this concept. The SOM tracks completed / failed SecOps in an internal variable history (Array: Scalar | completed, Scalar | failed).

So let's say your SOM is myFirstSOM, you can make your trigger check for:


((myFirstSOM getVariable "history") select 0) == 5

MechaStalin
Jun 3 2009, 15:25
Thanks. :)