juhomma Posted October 4, 2009 Share Posted October 4, 2009 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 Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 4, 2009 Share Posted October 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 4, 2009 Author Share Posted October 4, 2009 How to set officer to false? :'( Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 4, 2009 Share Posted October 4, 2009 At the start you Set Flag State to false Variable name = Officer. So Flag Officer is now false When Officer dies you Set Flag State Set Officer flag to true Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 4, 2009 Author Share Posted October 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 4, 2009 Share Posted October 4, 2009 GR/DS/IT Needed Test mission on the Plantation. Place into Origmiss mission folder, name is: extract test, containd all above script. DOWNLOAD Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 5, 2009 Author Share Posted October 5, 2009 Thanks a load! Never thought extraction would be that hard for first time. Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 5, 2009 Author Share Posted October 5, 2009 Damn! everything is alright, but i cant get the guys extract. Does it mean anything, that i had to made the "Player Platoon" myself to PlatoonREF or something like that? Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 5, 2009 Share Posted October 5, 2009 Open mission in Igor, edit script, select SUMMARY on the right side, copy paste the Extraction code here, include player platoon reference. Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 5, 2009 Author Share Posted October 5, 2009 (edited) 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 October 5, 2009 by juhomma Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 5, 2009 Share Posted October 5, 2009 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. Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 5, 2009 Author Share Posted October 5, 2009 No effect. Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 5, 2009 Share Posted October 5, 2009 Can you copy all the code from SUMMARY and send me it in a PM? Sure it will be a little error. Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 7, 2009 Author Share Posted October 7, 2009 Did you get my message? Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 7, 2009 Share Posted October 7, 2009 No PM from you in my inbox, I would of replied straight away. Quote Link to comment Share on other sites More sharing options...
migryder Posted October 8, 2009 Share Posted October 8, 2009 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 Quote Link to comment Share on other sites More sharing options...
juhomma Posted October 8, 2009 Author Share Posted October 8, 2009 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. Quote Link to comment Share on other sites More sharing options...
migryder Posted October 8, 2009 Share Posted October 8, 2009 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 Quote Link to comment Share on other sites More sharing options...
Tinker Posted October 8, 2009 Share Posted October 8, 2009 Group: <Default> Comment: Set Ups Trigger Event: The simulation is starting. Responses: Set Officer1 to false. Set PlayerPlatoon to the player controlled platoon It was in the example file I uploaded. Quote Link to comment Share on other sites More sharing options...
migryder Posted October 9, 2009 Share Posted October 9, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.