To find the answer to your question, use the search or choose a category to read the related questions.

Print this article   
Tasks Example
This example was created for ArmaHolic by DarkXess.

It is to show how simple "Script Snippets" or "Modules" etc are easy to set up for missions makers
by using and showing in the example form in which it was created.

How to use "Tasks Example"

Ok, first we need to place 4 triggers on the map!

1st trigger with this in the Condition:

player in sweetRide

Then this in the On Act:

tskStealCar setTaskState "Succeeded"; taskhint ["You stole the car!", [0, 1, 0, 1],
"taskDone"]; {deleteMarker _x} forEach ["goatMarker","girlMarker","carMarker"];

And this in the Text:

Did you steal the car?

Now for your 2nd trigger with this in the Condition:

!alive poorGirl;

And also this in the On Act:

job!", [0, 1, 0, 1], "taskDone"]; tskStealCar = player createSimpleTask ["Steal Car"];
tskStealCar setSimpleTaskDescription ["Steal the girl's sweet ride.", "Steal Sweet Ride",
"Car Parked Here"]; tskStealCar setSimpleTaskDestination (getMarkerPos "carMarker");
taskhint ["Now steal her sweet ride!", [1, 1, 1, 1], "taskNew"];player setCurrentTask tskStealCar;
sweetRide lock false; "girlMarker" setMarkerColor "ColorGreen";

And in the Text:

Did you kill the girl?

And the 3rd trigger also in the Condition box:

!alive adorableGoat;

And this in the On Act:

tskDontKillGoat setTaskState "Failed"; taskhint ["You killed the goat!!", [1, 0, 0, 1],
"taskFailed"]; "goatMarker" setMarkerColor "ColorRed"

And again in the Text:

Did you kill the goat?

And for the final trigger you need to add this in the On Act:

tskKillGirl = player createSimpleTask ["Kill Girl"]; tskKillGirl setSimpleTaskDescription ["Kill the girl
picnicing with her pet goat.", "Kill the Girl", "Girl Picnicing"]; tskKillGirl setSimpleTaskDestination
(getMarkerPos "girlMarker"); tskDontKillGoat = player createSimpleTask ["Don't Kill Goat"];
tskDontKillGoat setSimpleTaskDescription ["The goat has nothing to do with it. Don't harm it.",
"Don't kill the goat!", "Protected Goat"]; tskDontKillGoat setSimpleTaskDestination (getMarkerPos "goatMarker");
tskKillGirl setTaskState "Assigned"; player setCurrentTask tskKillGirl; taskhint ["Kill the girl,\nbut not the goat!",
[1, 1, 1, 1], "taskCurrent"];

And this in the Text:

Initial Task Setup

**ALL these DO NOT need anything else!

Now add a marker called:


and this as Text:

The Goat

Add the goat as named in the example "adorableGoat"

Now add the poor takistani women named "poorGirl" as in the example.

Finally add the SUV with the name "sweetRide"

Also put the markers down to where these things are so you can direct to them clearly!

That is it! done... its all in the example if you need help! or just drop me a comment or a line in PM.

Tasks Example
Back To Top
Updated: Sunday 10th of June 2012 10:07 AM,  Asked By: DarkXess,  viewed 2692 times