BaronVonRed 0 Posted November 13, 2002 Hello all! I have a challenge before me, and I prefer NOT to use a script, but that may not be possible. Here's the setup: * Three squads of men on the ground, one squad are good guys, the other two are bad. All squads are set to "NEVER FIRE" and are not moving. * The player is in a UH-60mg returning from a previous mission when they are diverted to the area of the squads described as HOT EXTRACTION. * When the player is withing 200m of the good guys, they all get up and start running for the chopper. After 25m, the bad guys come out of hiding and the assault begins. (side note: it's a really cool scene with tanks exploding and triggered and real gunfire - all hell is breaking loose). * The player covers the retreat (all good guys on up position). Good guys waiting to load open fire on the now two squads of approaching bad guys. As expected, not all of the good guys make it, and herein lies my challenge: : how can I count the number of good guys that survived (or died) so that if losses are too high I can trigger a failure? It wouldn't have to be counted at the scene, I could always trigger the failure back at the hospital landing pad. The problem seems easy enough at the onset, but each time I try to do it, I draw a blank. Any thoughts? Obviously, I am not very advanced at this and have NO experience with scripting. Share this post Link to post Share on other sites
Doolittle 0 Posted November 13, 2002 Make a trigger at the spot where you want the checking of casualties to take place. Â Make it activate with West troops. Â Set the Condition field to be this and "alive _x" count thisList > NUMBER where NUMBER is however many you want to be sure are alive. Â Then for the OnActivation you have whatever you want to run, like Failure = 1. Doolittle Share this post Link to post Share on other sites
BaronVonRed 0 Posted November 13, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Doolittle @ Nov. 13 2002,19:03)</td></tr><tr><td id="QUOTE">Make a trigger at the spot where you want the checking of casualties to take place. Make it activate with West troops. Set the Condition field to be this and "alive _x" count thisList > NUMBER where NUMBER is however many you want to be sure are alive. Then for the OnActivation you have whatever you want to run, like Failure = 1. Doolittle<span id='postcolor'> That looks GREAT I'll try it - thanks. I had tried something similar to this, but was trying to use the foreach instead of the count (what an idiot ) - thanks again! Share this post Link to post Share on other sites