I was wondering how to write a repop that happend every 10 minutes. (6000 ticks)
I know I would either use while, do while, or for, but I'm not to familiar with them. (And the DM Guide is too confusing)
Please help, thanks!
ID:159981
![]() Dec 9 2008, 12:40 pm
|
|
![]() Dec 9 2008, 12:46 pm
|
|
Here is what I would do. Not saying its correct, but it works. I don't use repop though.
|
Hi1 wrote:
And the DM Guide is too confusing Just out of curiosity, could you be a bit more specific on the matter, in case there are attempts to improve the guide, it might be helpful to know what to focus on. |
Dragonn wrote:
Here is what I would do. Not saying its correct, but it works. I don't use repop though. > world/New() That will not work. After the sleep proc runs out, it will spam the Repop. This works better: world/New() You may need to add 'Set background = 1' at the beginning of the main proc to help with lag/errors. |
Developous wrote:
That will not work. After the sleep proc runs out, it will spam the Repop. Huh? No it won't. This works better: IMHO, an actual looping construct works better. You may need to add 'Set background = 1' at the beginning of the main proc to help with lag/errors. That should have no effect whatsoever with your implementation, because it doesn't have a proper loop at all, as far as the language is concerned; and all setting a proc to background does is cause it to (arbitrarily) sleep between loop iterations. |