Forum Jump :

Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2010-04-02 18:13        
     
Hi,

How can I add the option/parameter to win only after you have captured x amount of bases?

Does anyone happen to know how to do that? :D

Default there is the option to win when you capture ALL bases but I want to make it so you can choose a the amount of bases you have to capture in order to win.



Thanks.


Author Message


Posts: 208
Rank:


Level: Member

Country: us
Location: U.S.
Occupation: U.S. Army E-3 PFC MOS:92G
Age: 25
In-game name: BOB

 
#2 Posted at 2010-04-09 11:26        
     
in the begining of the game make a logic and put
_captured=0

then for each capture put
_captured=_captured+1

and for a ending trigger after x amount of bases get catured

X as the amount you want captured before the win
trigger form: put in condition
_captured==x

and for a script you need to make it like this:
?(_captured==x):

to choose how many you need to make a descrition file
and put this in it

statsColumn=1;
titleParam1="Captures to win";
valuesParam1[]={1,2,3,4,5,6,7,8,9,10};
defvalueParam1=1;
textsParam1[]={1,2,3,4,5,6,7,8,9,10};

and make a init.sqs
put this in it

X=_param1

?(_captured==X): bla bla

Played this game as a child, best times of my life.

Advertisement


Author Message


Posts: 62
Rank:


Level: Member

Country: ai
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2010-04-13 22:15        
     
Ok well looks nice.

Where do I add this?

_captured=_captured+1

And the last part:

?(_captured==X): bla bla

I'm not entirely sure its gonna work. But did you try it?