Jump to content
Vimes

Sector Controll Win conditions?

Recommended Posts

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 : Bluefor

Repeatedly

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.

  • Like 1

Share this post


Link to post
Share on other sites

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

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.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×