Home   Help Search Login Register  

Author Topic: Objective Counters  (Read 815 times)

0 Members and 1 Guest are viewing this topic.

2nd Ranger

  • Guest
Objective Counters
« on: 21 Feb 2005, 18:37:01 »
Hello folks,

I'd like to create an objective counter that allows extraction (or ends the mission) when its value is equal to the number of objectives. It's probably pretty simple, but I'm not sure how to initialise them. Do I just put something like ObjCounter=0 in the INIT file?

Upon completion of each objective, I'd like to increment the counter. Then I will have a trigger waiting for ObjCounter to equal 4, which will trigger either mission end or an extraction sequence.

Any help on that would be great.

scooter24

  • Guest
Re:Objective Counters
« Reply #1 on: 21 Feb 2005, 18:51:43 »
Hey!
Try this. Once your objective 1 is complete, you could put in the 'On Activation' field of either a trigger or waypoint: obj1. For objective 2, in the 'On Activation' field: obj2 etc... In a final trigger, place in the 'Condition' field: obj1=true AND obj2=true. This is followed by making the trigger execute the desired 'On Activation' field commands.
     Basically, when a objective is acheived it makes obj1 true. The same is true for obj2. In the final trigger, obj1 and obj2 must both be true AT THE SAME TIME, then the 'On Activation' field will offer it's actions.
    I don't think I explained this well and I might have got the "obj1" and "obj1=true" mixed up. But, the concept it right. Good luck!
Scooter24
« Last Edit: 21 Feb 2005, 18:55:35 by scooter24 »

2nd Ranger

  • Guest
Re:Objective Counters
« Reply #2 on: 21 Feb 2005, 19:26:59 »
Oooh yeah, I forgot about that. Thanks, I'll give it a go.

2nd Ranger

  • Guest
Re:Objective Counters
« Reply #3 on: 21 Feb 2005, 20:43:46 »
How do I get the game to know that 'obj1' relates to my first objective?

scooter24

  • Guest
Re:Objective Counters
« Reply #4 on: 21 Feb 2005, 21:16:33 »
Hey!
You don't. You can put anything. Be it "obj1" or "mincepies"!  ::) As long as "obj1" is put in the trigger/waypoint that relates to the objective being complete (eg: assassanate Guba) it works fine. Also, so long as the trigger that verifys all objectives are complete contains "=true" (eg: "christmaspudding=true"), there are no problems. Good luck!
Scooter24
« Last Edit: 21 Feb 2005, 21:23:06 by scooter24 »

2nd Ranger

  • Guest
Re:Objective Counters
« Reply #5 on: 21 Feb 2005, 21:29:15 »
This is what my obj1 trigger looks like. Do you mean I should add obj1 to the activation like this:

Condition : !(alive plane1)
Activation: hint "Aircraft destroyed."; "1" objstatus "DONE"; obj1


Or in the condition line?

scooter24

  • Guest
Re:Objective Counters
« Reply #6 on: 21 Feb 2005, 21:39:08 »
Hey!
I'm sorry, but I get confused with this all the time  :-\! Add "=true" to "obj1". On the trigger that verifies all objectives are done, put "obj1" in the condition line. You might have to test it to ensure it works properly. Getting the order right puzzles me all the time! Make a 'testmap' on the Desert Island and play around to check which method works! Good luck!
Scooter24

2nd Ranger

  • Guest
Re:Objective Counters
« Reply #7 on: 21 Feb 2005, 22:01:44 »
Ah, it works now. Thanks very much for your help :)