Vimes 2 Posted March 21, 2013 Hello all! My first post here, yesterday i made my first "Sector Controll" multiplayer mission, since its my fist mission i started off small, i have made 4 controll points inside Stratis Airbase, these switch colors on the Map depending on what team controll the zones, and a message display who controlls the zones. The triggers are (i have 4 of these for 4 zones to be controlled on the map so this is the Bluefor example of the Hangar zone) : Activation : BlueforRepeatedly Condition : This On Activation : "1" setMarkerColor "ColorBlue"; hint "Hangars is controlled by BLUFOR!"; On Deactivation : "1" setMarkerColor "ColorBlack"; hint "Hangars is Neutral!"; This works great for the four zones i created around the Airbase, the colours of the zone switches depending on who controll the zones etc, and the map got very popular quite quickly! but now i would like to add some winning conditions to the map, the winning condition im after is that if one teams controlls all the zones/triggers then the mission should end. Any ideas on how to do this? im a complete noob at scripting. If all Markers/Triggers/Zones are controlled by one team, then i want the mission to end! P.S Someone was able to spawn an helicopter on my map, even tough i havent added any helicopters, was that hacking or is it something i missed to disable? ---------- Post added at 15:47 ---------- Previous post was at 14:52 ---------- I was thinking since i allready have 4 markers/zones that is switching colors due to my triggers (black = neutral, blue=bluefor, red=opfor) then i could maybe add a winning condition that says "if marker 1,2,3,4 = blue then bluefor wins, if marker 1,2,3,4 = red then opfor wins). But i have no idea how to actually implement it. 1 Share this post Link to post Share on other sites
Vimes 2 Posted March 22, 2013 A guy from my arma community gave this code to implement for the function i want : Triggers ------ Condition: { _x side WEST } count _thisList > { _x side EAST } count _thisList Action: ZONE1 = WEST; "ZONE1" setMarkerCOlor "ColorBlue"; ---- Condition: { _x side EAST } count _thisList > { _x side WEST } count _thisList Action: ZONE1 = EAST; "ZONE1" setMarkerCOlor "ColorRed"; ----- make two other triggers that are the same as ZONE2 ----- Condition: ZONE1 == WEST && ZONE2 == WEST This trigger runs when bluefor has both zones. -- OCH EN TILL TRIGGER -- Condition: ZONE1 == EAST && ZONE2 == EAST This trigger runs when both zones are controlled by opfor. But i still cant implement it, i dont understand what to do. Share this post Link to post Share on other sites
f2k sel 164 Posted March 22, 2013 I'm not sure why he would give you that code as it won't work. The principle is right though. trigger 1 anyone present repeating condition: { side _x == WEST } count thisList > {side _x == EAST } count thisList Action: ZONE1 = EAST; "ZONE1" setMarkerCOlor "ColorRed"; trigger 2 anyone present repeating Condition: {side _x == EAST } count thisList > {side _x == WEST } count thisList Action: ZONE1 = EAST; "ZONE1" setMarkerCOlor "ColorRed"; The last two triggers should work as he has them. 1 Share this post Link to post Share on other sites