
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Re: Dynamic Script Usage
hello,
i'm new to scripting and i have two question.
Is there a way to set this script(see below) repeats itself every 20sec??? or have i copy/paste the script(whitout the top line) and change the time?
also doesn't i get the items into my barracks.(not getting an error) am i doing something wrong or is it just an type-error??

So if you want something to repeat every 20 seconds do this:
if States.GameTime mod 200 = 0 then
That means it will be true on these ticks: 200, 400, 600, 800, 1000, etc.

With the barracks problem, check the latest log file for script errors (newest file in the Logs folder). You might have used an incorrect ware index or something.