Script that's done every hour

Posted by littlecoolpug
I can't figure out how to use the Script that's done every hour that you find in the "Developer" area of your game, I'm trying to add a var. that randomizes every hour between 0 and 4 but I can't figure out how to use the Script that's done every hour thanks in advance!

Replies (1)

Last message on 1 Jun 2015

Size43 (Administrator) on 1 Jun 2015, 18:58:11
I can't guarantee that the scripts will work properly anymore, as they aren't supported anymore (and never got out of beta anyway). But I'd imagine something like this would work:

server_ini_game_write("section", "key", choose(0, 1, 2, 3))


Yeah, the server-sided functions still use the old server_* prefix. I haven't ever touched that code after releasing GameMaker Server+, which was about 4 years ago.

I'm working on a much better solution (running full gmks/gmzs), so there isn't really a point in updating and fixing the server-sided scripts right now.