circassian 1 Posted March 12, 2013 Hi guys, I'm making a scenario like this: My position "camp 2", and the objective is to hold position. Enemy forces attacks me and when 50% of my side units dies considering that "my group is not the only group in this position", mission plan will update and i shall retreat to "camp 1". How to do this and how to update mission plan "in the briefing at first only one objective appears "Hold position", and when the update occur the "failed mark shows" and retreating objective appears?? Share this post Link to post Share on other sites
SKdavidSL 1 Posted March 13, 2013 (edited) Well, in the file briefing.html you should have this: <p><a name="Plan"></a></p> <p><a name="OBJ_0"></a>Hold <a href="marker:camp 1">this</a> postition.</p> <hr> <p><a name="OBJ_1"></a>Return to <a href="marker:camp 2">the camp</a>. </p> Then in the init.sqs file you have to write: "1" ObjStatus "HIDDEN" Finally, make a big trigger with name let's say T1 activated by your side and in the other (or in the trigger T1) condition place (west countSide list T1) < 32, where "west" can be replaced by the name of your side (west, east, resistance or civilian) and "32" with a number of 50 % of your units, and in it's "On Activation" field place "0" objStatus "FAILED"; "1" objStatus "ACTIVE" Add: Don't forget to use commands hint "Objective updated" and hint "Objective done" with a change of objetvives Edited March 13, 2013 by SKdavidSL Share this post Link to post Share on other sites
zulu1 145 Posted March 13, 2013 (edited) Hi guys, I'm making a scenario like this:My position "camp 2", and the objective is to hold position. Enemy forces attacks me and when 50% of my side units dies considering that "my group is not the only group in this position", mission plan will update and i shall retreat to "camp 1". How to do this and how to update mission plan "in the briefing at first only one objective appears "Hold position", and when the update occur the "failed mark shows" and retreating objective appears?? @Circassian It's a bit hard to explain all that is required to do. I made this demo mission which I think will do what you want. There is one trigger that will activate at 50% or less. It uses the condition: (("alive _x" count units wgrp1) <= 5); Then makes this variable true. expActiv=half_dead=true; The part <= 5 represents 50% of the 10 man squad. This will need to be adjusted if you have more troops. There is the pbo'ed mission and a template you can use in the editor. You can look at this to see what I did. Look at the files I created in the folder. It might seem like too much to takein at first, but when you start scripting and doing briefing's it gets eaiser. I made a cheat sheet with lots of code snipets that makes mission making much eaiser for me. I can send it to you if you want it. http://www.gamefront.com/files/23068185/Demo_Retreat.Intro.pbo.zip Edited March 13, 2013 by Zulu1 Share this post Link to post Share on other sites
circassian 1 Posted March 13, 2013 Thanx guys I made a cheat sheet with lots of code snipets that makes mission making much eaiser for me. I can send it to you if you want it. sure Zulu1 i would like to have it gladly :) and the demo mission is great Share this post Link to post Share on other sites