Jump to content

Recommended Posts

I made s sp mission but all i have to do is after the mission is completed, there's green box that fill the empty box

Do you know how i make a green box for my mission after i completed this mission just like the offical sp mission that if i completed one of them, i got a green box marked?

Share this post


Link to post
Share on other sites

I mean, in sp missions there's green box on each completed mission like in this picture

Taskstates.png

Succeeded (green) = Mission Completed in sp missions menu

Share this post


Link to post
Share on other sites

ah, you need to win the mission for that to be checked green.

so a win trigger will do it.

Share this post


Link to post
Share on other sites
ah, you need to win the mission for that to be checked green.

so a win trigger will do it.

Those icons apply to Tasks, not the mission in Scenarios menu.

OP: I'd recommend gettings a de-PBO tool and opening up simple missions that you are familiar with as examples.

There's some settaskstate and variable junk you need to put in the Activation of a trigger. I can never remember it all so I just copy it from older missions.

Share this post


Link to post
Share on other sites
Those icons apply to Tasks, not the mission in Scenarios menu.

OP: I'd recommend gettings a de-PBO tool and opening up simple missions that you are familiar with as examples.

There's some settaskstate and variable junk you need to put in the Activation of a trigger. I can never remember it all so I just copy it from older missions.

he is afaik refering to the "check" box in the scenarios menu, not in the mission itself and tasks.

wich will be checked once you win that mission.

he just used picture to show the "check box" example.

again, in the Scenarios menu, not in a mission.

Share this post


Link to post
Share on other sites

Yeah that picture above is for mission tasks.

When you finish a mission and lets say... the last task was task8, use this in your last task script.

task8 setTaskState "succeeded";

endMission "END1";

Then you will get the task8 completed green box AND the SP scenario completed green box.

I was just testing the other end numbers an hour ago, like end2, end3, etc. Not sure what the difference between them are. My guess is so you can have different ending outcomes in 1 mission, but I'm not sure.

---------- Post added at 06:35 PM ---------- Previous post was at 06:23 PM ----------

Here is an actual script I use to end one of my missions.

task8_completed.sqf

obj8 = true;
publicVariable "obj8";
task8 setTaskState "succeeded";

playSound "IncomingChallenge";
hint composeText [parsetext format["<t size='1.2' align='center' color='#6698FF'>EXTRACTION SUCCESSFUL%1</t>"]];
sleep 10;
taskhint ["MISSION COMPLETED\nGood Job!", [1,1,1,1], "taskNew"];
sleep 11;
endMission "END1";

exit

Edited by A-SUICIDAL

Share this post


Link to post
Share on other sites

[objNull, ObjNull, tskExample1, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf";

Just replace "SUCCEEDED" with one of the options below:

SUCCEEDED

FAILED

CANCELED

ASSIGNED

Or you can use A-SUICIDAL's method above taskHint.

In order for the box to be checked off you need to use:

tskExample1 setTaskState "SUCCEEDED";

You should read the "how to make a briefing" here.

Edited by cobra4v320

Share this post


Link to post
Share on other sites

I think what you're looking for is done keys.

Put this in your description.ext:

doneKeys[] = {"TAG_MissionName"};

Then at the end of your mission (e.g. end trigger) put this:

activateKey "TAG_MissionName";

Share this post


Link to post
Share on other sites
I think what you're looking for is done keys.

No, what you posted is for checking the box on the SP Missions, he is talking about what is pictured in the third post above. taskhint and settaskstate

Share this post


Link to post
Share on other sites
Succeeded (green) = Mission Completed in sp missions menu

No, he's not. ;)

But either way, the question is answered.

Share this post


Link to post
Share on other sites
No, he's not. ;)

But either way, the question is answered.

True :rolleyes:

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
Sign in to follow this  

×