Home   Help Search Login Register  

Author Topic: Capture & Hold  (Read 1456 times)

0 Members and 2 Guests are viewing this topic.

RedHavoc

  • Guest
Capture & Hold
« on: 06 Feb 2004, 20:03:52 »
Hello. How can I make a mission, where are 2 flags, one on both 2 teams side, and when the other team controls enemy flag for let say 1 minute, it wins?  ???

madcap_28

  • Guest
Re:Capture & Hold
« Reply #1 on: 09 Feb 2004, 07:37:52 »
hey.......

There are lots of tutorials, in the editors section here. I am most sure you wil find your answer there.

Take care

RedHavoc

  • Guest
Re:Capture & Hold
« Reply #2 on: 09 Feb 2004, 17:04:07 »
Nope

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Capture & Hold
« Reply #3 on: 09 Feb 2004, 17:51:08 »
Havoc nobody is going to tell you how to make a complete mission

Asking specific questions about specific problems will bring forth much help

Scripting, missionmaking is a very steep learning curve to start off with

My advice to you is:

1) Grab a de pbo program, there is one available on this site
2) Read through the comref
3) De-PBo some C&H missions
4) Spend a good few hours reading through the scripting and Mplayer scripting forums

Then have a go and come back to us with more specific questions

What you basically need to so is create a 2 flag C&H

and then adapt scripts from their

This is the only way that you will learn the ins and outs of how things are done.

This may seem to you a cold hard approach

To folks on these forums, your question doesn't come over as "How do i do X?" but more of "Will you create a complete mission for me please"


Hope this helps, please stick at it, it is worth the effort

« Last Edit: 09 Feb 2004, 17:52:27 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

RedHavoc

  • Guest
Re:Capture & Hold
« Reply #4 on: 09 Feb 2004, 20:19:32 »
Yes, there are many C&H tutorials, but they all have scoring system, I meant, when the flag has been hold for 1 min, the team will win. I just need to know how make correct time limit when the flag is hold.  :P

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Capture & Hold
« Reply #5 on: 10 Feb 2004, 17:11:07 »
have the following script run by each flag
in other words add the following line into each flags initilaisation box

Code: [Select]
this exec "Flags.sqs"
create a gamelogic and give it the name "Server"

The following script will run server side only, which is the best method for script of this type

Substitute the variable name "X" for the amount of time a side needs to own a flag for before they can win

eg _count = 120 (2 minutes)

Code: [Select]
;;;Flags.sqs
?!(local server): exit

_Flag = _This select 0
#START
~0.5
?(Side flagowner _Flag == West) : goto "WESTHAS"
?(Side flagowner _Flag == EAST): goto "EASTHAS
goto "START"

#WESTHAS
_count = X
#WLOOP
~1
?(Side flagowner _Flag == EAST): goto "EASTHAS
_count = _count -1
?(_count <= 0): Westwins = True;  goto "END"
goto "WLOOP"

#EASTHAS
_count = X
#ELOOP
~1
?(Side flagowner _Flag == WEST): goto "WESTHAS
_count = _count -1
?(_count <= 0): Eastwins = True; goto "END"
goto "ELOOP"

#END


Add whatever additional lines you need to run an outro or the end mission trigger etc under the #END label
You have 2 booleans "Eastwins" and "Westwins" which you could publicvariable so that each client has the boolean activated. You could then use this boolean (True or false variable) to run an outro or run lines in a script or use it as a condition for a trigger




the rest is up to you
« Last Edit: 10 Feb 2004, 17:12:11 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123