Page 1 of 1

help me with set fraglimit from .scr file!!

Posted: Sat Aug 30, 2003 3:06 pm
by Redliner
Please help me! :)
I trying to make a simple mod 4 mohaa!
For dm battles. As the game starts the frag limit is 100 an after 10 seconds it goes down by 1. So For one game is 1000 seconds. And you must kill as many as possible players to have as many frags as possible.
I should be easy.
But. If I add my script to any map a can't set the frag limit from my script (.scr file).
!'ve just added this line to for ex.: maps/dm/mohdm1.scr

//runs my .scr file
exec my.scr

And my .scr file looks like that:

main:
local.time = 1000
local.frag = 100
while ( local.time > 0 )
{
iprintlnbold_noloc (local.frag + " frags remaining!")
wait 10
local.time = local.time - 10
local.frag = local.frag - 1
local.fraglimit = local.frag
}

end

The bug is in the local.fraglimit variable - I DO NOT KNOW HOE TO SET THE FRAGLIMIT!!! WHICH VARIABLE? OR USE "SET" OR SOMETHING???? PLEASE HEPL. :) I am a beginer....

Posted: Sun Aug 31, 2003 6:27 am
by jv_map
To set the fraglimit to local.fraglimit:
setcvar fraglimit local.fraglimit

There you go :wink:

thanx

Posted: Sun Aug 31, 2003 11:15 am
by Redliner
Thanx! :)

BTW: Me and my small clan (www.hardjustice.tk) really love your vj_bots opcenter and lakeside. Good work :)