Home   Help Search Login Register  

Author Topic: multiple endings question...  (Read 455 times)

0 Members and 1 Guest are viewing this topic.

RP

  • Guest
multiple endings question...
« on: 17 Mar 2003, 05:59:30 »
Hi everybody,

anyone knows of a tutorial on how to make multiple endings?
Besides choosing the "end number" in Triggers and ObjStatus "DONE" for it, what if the same Objective is needed for diferent endings, and some Objectives are opcional?
I've searched the forums, and couldn't find information on the subject.
Any help would be wellcome.

RP

RP

  • Guest
Re:multiple endings question...
« Reply #1 on: 17 Mar 2003, 06:13:01 »
I also want the radio for extraction to apear only when the main Objectives are done. Besides setRadioMsg "NULL" in the init.sqs, what would be the condition in the Trigger to activate the radio, considering that multiple Objectives achieved are rquired?

Thanks in advance.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:multiple endings question...
« Reply #2 on: 17 Mar 2003, 12:03:54 »
INSTANT MULTIPLE ENDINGS TUTORIAL

Create ONE trigger for each ending - End#1, End#2 etc.      

Use variables to fire the triggers.    For example, when Objective 1 is complete, the variable Done1 is set to true.   Your trigger would look like this

On activation:   "1" ObjStatus "done"; Done1=true

Example:-

Trigger End#1
Condition:    Done1 and Done2

Trigger End#2
Condition:    Done2 and (not Done1)

So if you complete Obj 2 first, the mission will end. Remember to initialise your variables in init.sqs by writing

Done1=false    etc.

This is necessary since OFP doesn't get on with variables it hasn't met before.

You can see a real life example of this in the Tutorial Mission in the Editors Depot, where you get a mission failed if the civvy driving the tractor is killed.

Make sure that your mission will always end correctly.   Your variables and triggers must cover all possibilities, so that if the player screws up or does things in the wrong order the mission will still end.


The radio thing uses the same principle.    Create a trigger

Condition:   Done1 and Done2 and Done3
On activation:   "1" setRadioMsg "Come and get us."

Live example in the tutorial mission, though its calling for chopper anti-tank support rather than exfil.


Hope that helps.
Plenty of reviewed ArmA missions for you to play

RP

  • Guest
Re:multiple endings question...
« Reply #3 on: 17 Mar 2003, 19:53:40 »
Thanks macguba, this shure helps!

I guess i'll have to figure out and test a lot of configurations in the mission i am making, so i'm not solving this yet, cuz maybe i'll need to come back for help once more...
I'll check out that tut mission, a practical example is allways usefull.

Thank you very much,

RP.