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.
