arteedecco Posted April 18, 2013 Posted April 18, 2013 See attached FC3 .miz (very smiple). The goal of the mission is to land at the little (closed) airstrip and stop at the very end of the runway (the far end from your starting point). I'm trying to figure out Mission Goals for multiplayer. Primarily, I want the mission to end when you've hit 100% mission goals. So... I looked at some of the A-10C multiplayer missions. They set flag 1 to true when the win victory condition is met. Then they set the Mission Goal to 100% for "OFFLINE" (that part confused me) when flag 1 is true. However, I can't figure out how to: 1. Broadcast the mission goals score to players when mission goals are achieved (I thought it was built in to the goals system, but apparently you have to use the trigger system and a message like I have in that .miz?) 2. End the mission and present the mission goals score outcome to the players Is this possible w/out Slmod? If so, how? Thanks all!_apd_test_mission-goals_v1.miz "Snipe" -------------------------------------------------------------------------------- OS => Win7 64-bit Ultimate | MOBO => ASUS M2N-SLI Deluxe | RAM => 8GB | VIDEO CARD => XFX ATI 4850 | CONTROLLER => Saitek X52 | DISPLAY => ASUS 25.5" 1600x1280 | HDD => 150GB WD Raptor (10K RPM)
ENO Posted April 18, 2013 Posted April 18, 2013 (edited) Try this. Just need to enter an end condition. I've put it in so see if it'll work for you. You may change that victory (win) selection from offline to blue- not sure about the offline thing either, now that you mention it. It may have to do with a campaign setting that will allow determination as to the mission to follow... Just guessing though._apd_test_mission-goals_v1.miz Edited April 18, 2013 by ENO "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
arteedecco Posted April 18, 2013 Author Posted April 18, 2013 Thanks for the response @ENO, but mission still keeps on going and never quits. Wonder if it's some of the ME mission options, like Crash Rcvr? I dunno. Re-attached updated .miz where I added in your version and added the mission goal to BLUE update you recommended. Plus I made the plane a little lower and slower to start, to make it easier to get setup for landing. Any other ideas... @Grimes?_apd_test_mission-goals_v2.miz "Snipe" -------------------------------------------------------------------------------- OS => Win7 64-bit Ultimate | MOBO => ASUS M2N-SLI Deluxe | RAM => 8GB | VIDEO CARD => XFX ATI 4850 | CONTROLLER => Saitek X52 | DISPLAY => ASUS 25.5" 1600x1280 | HDD => 150GB WD Raptor (10K RPM)
Grimes Posted April 18, 2013 Posted April 18, 2013 I think Mission End might be one of those triggers that is meant to work in SP only while "Load Mission" or player action would be the equivalent used in MP. Mission goals aren't used in the same context in MP as they are in SP. In SP the goal is often used to define whether or not the player can move to the next mission in a campaign or to give a rough idea to the player if they accomplished their objective. The mission goal score is also updated on the debrief screen. In MP, players can't see the current mission goal score at all and but it can be used as an enhancement to mission triggers. The score behavior is also different in SP and MP SP: Mission score = Red Score + Blue Score + Offline score MP: Red Score, Blue Score, and Offline score are each their own value. As for broadcasting the mission goal score. I think triggers are the only way to access the current mission goal score. It depends on what you are doing via the score, but it can pretty easily be replicated via triggers and adding/subtracting values from a single flag. If you do set the score via triggers and a flag you can then output the current flag value using a little bit of scripting in a "do script" action. trigger.action.outText(tostring('You scored ' .. trigger.misc.getUserFlag('1') .. ' points!'), 10) The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
ENO Posted April 19, 2013 Posted April 19, 2013 We've used load mission before- though a few patches ago it didn't work well. Load mission was a way of ending the current mission and moving on to something else. Problem is, it loads THAT mission inside the mission file of the current mission- frequently affecting load time (though that wouldn't be an issue with such a small mission as this. If you want to be able to "end" the mission and reload- then try a load mission trigger 30 seconds after flag 1 is established with your message saying the objective was accomplished. Standby to reload the mission. You could adjust your "mission" to have different zones- the shorter a pilot lands (-1 speed) in zones along the runway. If the pilot lands and is able to get below 1 halfway down the runway, then he gets (flag 1) activated and "EXCELLENT WORK..." If he lands 3/4s of the way down the runway he gets (flag 2) and "Nice job." If he lands in the spinach 50 feet off the end of the runway he gets a (flag three) and a "Hey, Happy Gilmore... find your ball out there?" You get the idea. Then, if it's only 1 pilot in there you can reload and try again. If you have multiple pilots, you could have them all land then reload the mission. Create a zone that encompasses the entire far end of the runway. It would be a continuous trigger (we'll leave the benefits of mist out of this for now- though it's EASY with MIST if you read the guide... pretty much copy and paste script) that you set with the condition all of coalition in zone (and under speed and altitude settings as you have them)- then once they've all landed and come to a stop- just set a flag and set a time delay based on a "time since flag" with a message saying it's going to reload... then you get a reload and start over. There is a way to establish a "ranking" system but there's a lot of triggering that takes place there without slmod or mist. Play around with what has already been talked about and then we'll push further! "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Recommended Posts