Jump to content
Sign in to follow this  
hedcrusha

Taking over an object!?

Recommended Posts

Hi ive started making a map and put all the buildings that i want where i want and i want to make a "Hold" map. Im a little stuck as to what to do about making a place capturable. BTW i have used the search function and nothing and also checked the biki and nothing there. Ive opened already made hold maps to try and find out but again nothing. Im wondering what trigger i should place to get this affect. BTW im new to map making so be gentle.

Thanks in advance.

Share this post


Link to post
Share on other sites

Trigger page

Well heres the trigger page so you can look at those pictures to see what i mean.

Under activation sould be someting like seized by side name

What it does is when for example bluefor has most units in the trigger area they seized it.

If you would put your codeing for what needs to happen in the on activation field and make the trigger for each side you use, you would have your capture trigger.

there is also someting about that type on the trigger page.

The Unknown

P.S. Welcome :P

Share this post


Link to post
Share on other sites

Awsome thanks but still a little baffled! Ive set two triggers up one for bluefor and one for opfor and set a text effect and a little tune and when i get there it says my text so i know that its working BUT how do i place a flag that changes to the sides flag of whoever took over it and also how do i make it so you can see it on the map eg. blue for untaken red for opfor and blue for well bluefor?

And also whenever you take over a base how do i set up being able to spawn there like in the beserk maps. Also how do i set up just normal respawning at the main base? Sorry but i have searched like my first post but no avail thats why im asking.

Thanks in advance.

Share this post


Link to post
Share on other sites

1. Flag changeing

Well you place the flag.

Give it a name.

Then in the on activation field of the trigger put:

Flagname Settexture "Flagfile.jpg"

I dont know the names of the standard flags that come in the game so someone els has to provide them.

2. Marker changeing

Make your maker.

Name it.

Then put this in the on activation field:

"Markername" SetMarkerColor "Colors"

The Colors you can use are:

Default

ColorBlack

ColorRed

ColorRedAlpha

ColorGreen

ColorGreenAlpha

ColorBlue

ColorYellow

ColorWhite

3. normal respawn

Make a marker where you want to respawn your people.

name it:

Respawn_West

Respawn_East

Respawn_Guerilla

Respawn_Civilian

West: Bluefor

East: Opfor

Guerilla: Independent

Civilian: Take a Gues tounge2.gif

Then make a file in your mission folder called: Description.ext

Then open it with a text editor and put the code in.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Respawn = "BASE";

RespawnDelay = 15;

The other one I dont know do I would like to know the awnser on that.

Share this post


Link to post
Share on other sites

Great thanks again will try it out. Just another question about respawn

Respawn = "BASE";

RespawnDelay = 15;

How do i specify that the base is the base? Do i have to create a marker or triggers one called west base and other east base?

Also where do i put scripts and how do i activate them as i want to use the spectator script.

Share this post


Link to post
Share on other sites

I want to reply to give you the basic setup that I use without going into the detail on how to change their appearances.  Since you are new, I want to lead you to the setup 1st.  I am new, but I have spent tons of hours researching stuff.

At the bottom I will discuss changing the colors and flags based on a base takeover.  Get the initial setup stuff working, test it, then do the color changing stuff.

---------------------------------------

FLAGS

If I am going to use a flag unit in my maps and want to represent a side I do this

Step 1: Add the flag to the map

Step 2: Double click it to access the item's parameters

Step 3: In the "Name" prompt give the flag a name (ex: flag1)

Step 3: In the INIT box/prompt enter in the type of flag you would like to be displayed or leave emtpy.  Here are the lines that you add to the init field to make it happen.

USA Flag

this setFlagTexture "\ca\misc\data\usa_vlajka.paa"

SLA Flag

this setFlagTexture "\ca\misc\data\sever_vlajka.paa"

Royal Sahrani (Independant) Flag

this setFlagTexture "\ca\misc\data\jih_vlajka.paa"

Russian Federation Flag

this setFlagTexture "\ca\misc\data\rus_vlajka.paa"

---------------------------------------

MARKERS - how to add the marker to the map

If I am going to use markers to show a colored box or circle for players to see where the "zone" is on the map I do the following

Step 1: At the right side of the mission editor click where it says Markers

Step 2: Choose if you want an elyptical marker or rectangle marker

Step 3: Choose solid or other styles for the marker then pick the color you want.

NOTE: If you want to have a marker circle, rectangle, etc to represent a base/zone, you will also want to add a trigger of the same size and move it to center in the marker color.  There are probably other ways to accomplish this using script logic, but this is the way I create bases.  You can have a trigger for BLUFOR and one for OPFOR and kind of overlap them.

---------------------------------------

MARKERS - how to add for respawning

The person who replied should have the answer for you

In the description file add the lines anywhere you want

Respawn = "BASE";

RespawnDelay = 15;

For the respawning base you add a marker and give it the name respawn_east for OPFOR, respawn_west for BLUFOR, etc.  Not case sensitive as far as I know, but the name needs to have those values for it to work.  As far as respawning at a base of your choice like berzerk, I haven't mastered that part yet.  Soon hopefully.

---------------------------------------

CHANGING FLAGS and MARKER ZONE COLORS

Since you are new and have read the above, you should know the script lines to set a flag's texture/style and know how to add a marker with solid colors and stuff.

Changing them requires the script lines to do the job

NOTE: markername is the name you gave to your marker

So for example if you gave your base marker the name "zone".

zone setMarkerColor "ColorGreen"

choose any that the other gentleman mentioned.  I am going off memory - if this line doesn't work or gives you an error try adding quotes around the name - I forget if they are needed.

"zone" setMarkerColor "ColorGreen"

To use it based on your zone/base takeover you would use it in a trigger for starters.  When you become familiar with writing and using scripts you can put them there as well.

Lets consider a trigger where BLUFOR activates it.  In the trigger you would have BLUFOR at the top for the trigger or SIEGED BY BLUFOR.  You could have the type set to SWITCH or if you wanted the mission to end have END1, END2, etc.

In the COND (condition) box it should have the value 'This'.  Basically that means when a BLUFOR enters the zone area it will enable the ACT (activation) box and do whatever you put in there.  The condition field box can be used for many options to allow the trigger to activate so just let it soak in for now.

Having said that try using this line of code in the trigger activation box (again - you may need the quotes "zone")

zone setMarkerColor "ColorBlue"

Now when a BLUFOR goes in the trigger area the zone color should change to BLUE.  You can also get more creative and use the trigger's timeout values.  You should see 3 boxes with zeros.  If you want it so that the player has to stay in that area for a length of time before changing, you can add the time in seconds there.  Try 30 seconds in each box and go in the zone to see how long it takes to have the color change.  Should be 30 seconds.

You would use the same are to have the flag change.  To change the zone color as well as the flag you would use in the Act (activation) box

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">zone setMarkerColor "ColorBlue";flag1 setFlagTexture "\ca\misc\data\usa_vlajka.paa

Using the ';' we are separating the commands.  This shows that we are changing the zone color to BLUE and making the flag the BLUFOR or USA flag.

---------------------------------------

TEXT to show up

If you want to go a step further and have a pop up text you can use the EFFECTS section of the trigger where it has TEXT or use the Act (activation) again by adding the command to have text show up.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">zone setMarkerColor "ColorBlue";flag1 setFlagTexture "\ca\misc\data\usa_vlajka.paa;titletext ["BLUFOR has taken ALPHA","PLAIN DOWN"]

If you want a team to have to hold the zone for a period of time to win the mission use the timeout feature and see how that works for you.

Lets stay at this point for now so that you can get famliar with zones, flags, and markers.  I am learning as well, but figured I would help on this subject.

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
Sign in to follow this  

×