Home   Help Search Login Register  

Author Topic: one last time....NEED HELP!!  (Read 1794 times)

0 Members and 3 Guests are viewing this topic.

DarkCell

  • Guest
one last time....NEED HELP!!
« on: 17 Nov 2003, 16:20:26 »
Oh man I get Frustrated Becease Nobdy wanna help me with this Flag Problem!  :'( I REALY REAAAAALLLYYY NEED HELP!!!!  :o

Is there Nobody that Can Help me Solve the Problem?

THIS IS THE PROBLEM ONCE AGAIN....

I got the take and Hold flag Tutorial from Tactician
Now everything works fine (ALMOST)
What is the last problem?
Well....Everytime when I wanna take the flag it get's off the  FlagPole! I wan't the flag to stay on the pole,So I saw his Return script that has to fix the problem but it won't work!
So players can take the flag and run away with it that's not the meaning.

(BUT)The first time I take the Flag it get's back on the pole after 5seconds offcourse I know this script has to do something with it:

_flag = _this select 0
~5
?(!isnull (flagOwner _flag)): goto "return"
Exit

The 5 can be changed to 10 or whatever I want to to change the time it returns.
but the flag only get's back once  
So this are the problems I have:

1: Flag Returns only once.

2:When Flag returns It isn't anymore Captured by anyone so it returns to Resistance side.

So plz tell me what went wrong?
I made 3 triggers for the flags this is how they look like

a=0
b=0
repeating=once
text=Return Flag1
expCond= !isnull (flagOwner flag1)
expActiv= [flag1] exec "return.sqs"

and flag 2 and 3 look the same but then other number offcourse ;)

and This is how my Return script looks like:


_flag = _this select 0
~5
?(!isnull (flagOwner _flag)): goto "return"
Exit

#return
(flagOwner _flag) SetFlagOwner objNull
_flag SetFlagOwner objNull
exit




Somebody sees the problem ?
Plzzz I REALY! mean it Many THNX for the person who can solve this problem!  

Terox don't you even see the Problem? :(
Normaly You alway's solved my problems  :-\

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:one last time....NEED HELP!!
« Reply #1 on: 17 Nov 2003, 16:39:08 »


Try repeating the Return trigger f, i think this is where you are going wrong

at the moment it will only run once which explains why the system only works once


« Last Edit: 17 Nov 2003, 16:42:55 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

DarkCell

  • Guest
Re:one last time....NEED HELP!!
« Reply #2 on: 17 Nov 2003, 18:34:34 »
Man Terox you did it again!  :D
The Problem was quite simple but I didn't think good enough :p
But I still got 1 problem Left...
Problem 2:

2:When Flag returns It isn't anymore Captured by anyone so it returns to Resistance side.

The Flag still Returns to Resistance Side :(
So when WEST or EAST captures the Flag it Returns to Resistance Side when it Returns So you can keep capturing the Flag for 100 Years but you never get it ???
So Plzz Tell me what I did wrong with that  :(

Terox Your the man of Wonders You alway's helped me out when I had problems. You made all my maps succesfull  :)
So PLz can you help me out with this Last I REALY MEAN IT! LAST PROBLEM!  ;)

Many Thnx for all your Help Terox and Plz help me out with this Last one :)

junglerot

  • Guest
Re:one last time....NEED HELP!!
« Reply #3 on: 18 Nov 2003, 02:29:00 »
 ;) ok try this set your Intel to Resistance friendly to noone
pic will say it all  8)

junglerot

  • Guest
Re:one last time....NEED HELP!!
« Reply #4 on: 18 Nov 2003, 02:30:37 »
ok sorry i don't think the attached pic attached it self

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:one last time....NEED HELP!!
« Reply #5 on: 20 Nov 2003, 01:57:24 »
initially its setside resistance, so either can cap it

when west caps the flag, setside west
(West no longer get the option to cap it)

when east caps the flag setside east
(West no longer get the option to cap it)



basically when a player caps a flag, you need something like the following lines implemented (Example are for scripts)


?(side player == west): goto "WESTCAPS
?(side player == East): goto "EASTCAPS"

#EASTCAPS
_flag SetFlagSide EAST
_flag setflagtexture "rus_vlajka.pac"  
_flag setFlagOwner objNull
goto "NEXT"

#WESTCAPS
_Flag SetFlagSide WEST
_Flag setflagtexture "usa_vlajka.pac"
goto "NEXT"

#NEXT
_flag setFlagOwner objNull


you will have to integrate this into the return system and your triggers somehow

I dont use tacticians system, so i aint that familair with it and i also aint a fan of extremely fast looping triggers
« Last Edit: 20 Nov 2003, 02:07:01 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

DarkCell

  • Guest
Re:one last time....NEED HELP!!
« Reply #6 on: 20 Nov 2003, 16:43:56 »
Flag still stay's White :(

You People Know a Better Capture and Hold the FLag script?

Becease Tacticians script doesn't work!  >:(

Why is that script even on this site? IT DOESN'T WORK! IT IS A FALSE MADE SCRIPT!
Or does someone else ever tried his script?
Becease it realy won't get to work....Cheap script I tell yah  :-\

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:one last time....NEED HELP!!
« Reply #7 on: 20 Nov 2003, 17:17:20 »
Tactician is the guy that created C&H, if the script isnt working and you have followed the tutorial to the letter, then you should let ofpec admins take a look at it and rectify the problems


The easiest way to get your map to work, as a c&h is to rip another map aprt with a de pbo program, place  the ripped folder into your user/username/mpmissions folder, load up your OFP, select mplayer then select new, choose the island where the de pbo'd mission resides, then select the mission, select edit ans drag the various triggers etc to where you want them

remove all the scripts that dont belong to the c&h system, edit the init.sqs and description.ext and build from there

by doing this you may also spot what you have been doing wrong


if the mission you de pbo's isnt from the island you want to create it on, simply change the island extension to the one it wants to be on. This may cause vehicles to be spawned into the sea etc, but you will be dragging them to different locations  anyway

I really dont have the time to look at your problem closely, and even if i did, the best way to learn is to figure oput the problem yourself


debugging a script can be made easier by placing hint lines in a script which then broadcast a hint message so that you know a script has gone down a certain path

using hint format or titltext format, %1 will also show you the values for the various variables that you are using, displaying them using a hint etc will tell you if they see the variable value that you think should be there
« Last Edit: 20 Nov 2003, 17:21:53 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

DarkCell

  • Guest
Re:one last time....NEED HELP!!
« Reply #8 on: 20 Nov 2003, 18:09:26 »
Terox maybe your Right but I am not a realy good scripter so I alway's need to copy scripts becease I can't make them myself  :P
But I Got Backoff his Capture and Hold the Flag Script but that 1 got  a PRoblem to...but not as big as Tactician's  :-\


So Maybe you Can Solve this problem:

Backoff His script got the following problem:

After East or West Captured a Flag,Nobody Else can capture it back  ???
But the Flags are Captured by the Team that got em first,but for an Example:
East wanna take the WEST flag but..The TAKE FLAG command won't show up.So the Flags can never be stolen back.

Know what's wrong with that?  :-\