Jump to content
Solarghost

How do I make objectives?

Recommended Posts

Here is some code I took from a trigger:

Obj1=true; publicvariable "Obj1"; nul = [objNull, ObjNull, tskblack, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf"; tskblack setTaskState "SUCCEEDED"; player setCurrentTask tskRefinery; null = [objNull, ObjNull, tskRefinery, "ASSIGNED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf"; HQ sideChat "Blackhawk has been secured. Good Work!"; nul = [] execVM "scripts\respawnrelocate.sqf"; "respawn_west" setmarkerpos getpos obj0complete; "checkpoint1_marker" setMarkerColor "ColorGreen"; "oilrefine" setMarkerColor "ColorGreen"; "protect" setMarkerColor "ColorGreen"; 30 fadeMusic 0;

But I have no idea what any of this means...

So... for instance, if I wanted to make a trigger where I walk in to a certain distance of the object can I trigger the objectiv ass completed and ticked?

And if I want to make an objective where I have to destroy something, what would the code be for that..

I basically just want a small step by step guide on what I would need to do for instance:

1. Create a object, and name it i.e: Batman1

2. Create a trigger, if you want the objective to be destroyed before it completes, then type this code:

Blah blah, add 'name' u called object; something a rather more code etc.

Copy and paste this in to the something field etc...

Well if someone could help me I would really appreciate it!!! :) :)

Thanks

Share this post


Link to post
Share on other sites

condition

!alive Batman1

init

tsk1 setTaskState "Succeeded"; player setCurrentTask tsk2;

so when batman1 is destroyed, the task called tsk1 is completed and task named tsk2 is assigned.

u need a briefing.sqs file

check out the A2B editor by EMSI for doing this, u can find it on armaholic. it makes it really really easy.

for reference here's something from a mission i did:

tsk1 = player createSimpleTask ["Rescue Pilot"];
tsk1 setSimpleTaskDescription ["Infiltrate the camp in Nadezhdino and secure the downed pilot for extraction.", "Rescue Pilot", ""];
tsk1 setSimpleTaskDestination (getMarkerPos "Hostage");
player setCurrentTask tsk1;
tsk1 setTaskState "Assigned";
tsk2 = player createSimpleTask ["Extract"];
tsk2 setSimpleTaskDescription ["Escort the pilot to the extraction point and wait for the evac chopper.", "Extract", ""];
tsk2 setSimpleTaskDestination (getMarkerPos "Extract");

also look at this thread

http://forums.bistudio.com/showthread.php?t=73424&highlight=briefing

hope that helps

Edited by AnimalMother92

Share this post


Link to post
Share on other sites

Dear Solarghost

I'm unfortunately not able to give you a detailed reply' cause I'm on work.

But you could start with following

http://forums.bistudio.com/showthread.php?t=78089

This is a sticky thread with a dozen links with useful editing info

Mr. Murrays editor guide which is valid also for ArmA II

http://forums.bistudio.com/showthread.php?t=67426&highlight=Editing+Guide

Reading throughout these threads and the editing guide should give you some more info on mission editing.

I'm unfortunately busy also this evening RL issues. In case nobody is going to answer, which is very unlikely, I'll try to give some info tomorrow evening.

Reading throughout the guide and the links will help to understand the basics of mission editing and keep you busy until someone can help you to solve your problems with triggers and objectives.

Kind regards:D

Share this post


Link to post
Share on other sites
condition

!alive Batman1

init

tsk1 setTaskState "Succeeded"; player setCurrentTask tsk2;

so when batman1 is destroyed, the task called tsk1 is completed and task named tsk2 is assigned.

u need a briefing.sqs file

check out the A2B editor by EMSI for doing this, u can find it on armaholic. it makes it really really easy.

for reference here's something from a mission i did:

tsk1 = player createSimpleTask ["Rescue Pilot"];
tsk1 setSimpleTaskDescription ["Infiltrate the camp in Nadezhdino and secure the downed pilot for extraction.", "Rescue Pilot", ""];
tsk1 setSimpleTaskDestination (getMarkerPos "Hostage");
player setCurrentTask tsk1;
tsk1 setTaskState "Assigned";
tsk2 = player createSimpleTask ["Extract"];
tsk2 setSimpleTaskDescription ["Escort the pilot to the extraction point and wait for the evac chopper.", "Extract", ""];
tsk2 setSimpleTaskDestination (getMarkerPos "Extract");

also look at this thread

http://forums.bistudio.com/showthread.php?t=73424&highlight=briefing

hope that helps

Cheers man this is great!

I should have a Mission ready this weekend :yay:

Share this post


Link to post
Share on other sites

Dude i'll jump on this weekend, I have an awesome idea for a mission if you're keen to help out?

:)

Share this post


Link to post
Share on other sites

Another good source is this thread:

http://forums.bistudio.com/showthread.php?t=73424

It's long but it's really a thread that you should read over. It explains everything I needed. The side discussions and examples are fantastic. I really don't know why a thread like this isn't a sticky. It's so helpful it's ridiculous.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×