
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
1. Add 1 to game time (what you get from States.GameTime)
2. Update game assets (units, houses, etc.)
3. Run the code you put in OnTick.
So the reason it only happens once is because the condition States.GameTime = 1000 only occurs once. After that GameTime is 1001, 1002, etc. If you want it to happen every 1000 ticks (so 1000, 2000, etc.) you need to make the condition States.GameTime mod 1000 = 0. The tutorial I made explains how this works and what mod does.
Try to remember you are writing code for the game to execute step by step, just like if it was VB or C++ or Delphi.