Jump to content

Help with objectives


juhomma

Recommended Posts

I got 2 objectives.

1. Kill "Officer"

2. reach extraction zone

How do i make the objectives to work like:

When i have killed the officer a box pops up "Objective 1 completed: Kill officer"

then, when this objective has completed, then i have to reach the extraction.

I have no idea how to make this :mellow:

Link to comment
Share on other sites

Use Set Flag

Set flag to false on startup, on Officer death, set flag to true. Extraction will only work once flag is true.

Group: <Default>

Comment:

Set Ups

Trigger Event:

The simulation is starting.

Responses:

Set Officer to false.

Group: <Default>

Comment:

Officer Dead

Trigger Event:

Officer has been killed.

Responses:

Set Officer to true.

Show Extract Zone on the command map for all players, hightlight = true.

Mark Extract Zone green.

Display "Extraction Enabled" to all players.

Group: <Default>

Comment:

Extract

Trigger Event:

A member of Player Platoon is within 10 meter(s) of Extract Zone.

Responses:

Allow this block to be reactivated.

Continue executing responses if (The state of Officer).

Continue executing responses if ((The number of members of Player Platoon within 10 meter(s) of Extract Zone) is equal to (The number of active actors on Player Platoon)).

Display "Win!" and register mission completion.

Prevent this block from being reactivated.

:thumbsup:

Link to comment
Share on other sites

I got stuck in the

"Continue executing responses if ((The number of members of Player Platoon within 10 meter(s) of Extract Zone) is equal to (The number of active actors on Player Platoon))."

I can choose only false or true, not numbers.

Link to comment
Share on other sites


Group: <Default>

Comment:

   Extract

Trigger Event:

   A member of PlayerPlatoon is within 10 meter(s) of Extract Zone.

Responses:

   Allow this block to be reactivated.

   Continue executing responses if (The state of Officer1).

   Continue executing responses if ((The number of members of Player Platoon within 10 meter(s) of Extract Zone) is equal to (The number of active actors on PlayerPlatoon)).

   Mark Objective 2 complete in the objective list.

   Display "Win!" and register mission completion.

   Prevent this block from being reactivated.

Edited by juhomma
Link to comment
Share on other sites

Continue executing responses if ((The number of members of Player Platoon within 10 meter(s) of Extract Zone) is equal to (The number of active actors on PlayerPlatoon))

These 2 should be the same.

Change Player Platoon to PlayerPlatoon and try. (Lose the space, I think you have 2 references by mistake)

Make sure all references to PlayerPlatoon are the same.

Link to comment
Share on other sites

this may seem silly but also try enlarging the extraction zone...I've seen all too many missions that suffered from this...elsewise seems Tinker has you on the right track...though you may have to simply re-do the player platoon reference alltogether..try that maybe if the zone size does not work.also make sure the officer thing is getting counted...try a message display dependent upon that flag being true to test that...I like to use counters so that in the end my only condition is the completed objectives counter being the right sum... = victory in other words. each obj is met and a counter incremented..then run a check for the correct sum(2) and have the victory condition there...

mig :ph34r:

Link to comment
Share on other sites

Just to make sure i'll post it up here

Group: <Default>

Comment:

Set Ups

Trigger Event:

The simulation is starting.

Responses:

Set Officer1 to false.

Group: <Default>

Comment:

Officer Dead

Trigger Event:

Officer1 has been killed.

Responses:

Set Officer1 to true.

Show Extract Zone on the command map for all players, hightlight = true.

Mark Extract Zone green.

Mark Objective 1 complete in the objective list.

Group: <Default>

Comment:

Extract

Trigger Event:

A member of PlayerPlatoon is within 10 meter(s) of Extract Zone.

Responses:

Allow this block to be reactivated.

Continue executing responses if (The state of Officer1).

Continue executing responses if ((The number of members of PlayerPlatoon within 10 meter(s) of Extract Zone) is equal to (The number of active actors on PlayerPlatoon)).

Mark Objective 2 complete in the objective list.

Display "Win!" and register mission completion.

Prevent this block from being reactivated.

Link to comment
Share on other sites

I really think you should create a counter called Completed Objectives....increment this counter for each objective completed, then have a time elapsed block that checks the value of that counter...in this case 2, if that is true then declare mission complete...try and see how that goes...you should be able to find examples of this in many missions, including the originals, DS, or IT...

mig :ph34r:

Link to comment
Share on other sites

yea! Tinker is right...now that I look again you never set the playerplatoon reference up at start up(?)! call it anything you like(I usually just call it Player) but you must set a variable up as the playerplatoon reference..best to do in the start up blocks...

mig :ph34r:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...