Room RNG
6 years ago
Los Angeles, CA, USA

Does anyone know how the room RNG is decided on? Is it upon selecting new game or is it rolling a dice on every room enter? Can it be manipulated at all or is it just hoping you don't get the chasm rooms each time?

Montenegro

As far as i know you just gotta get lucky

New Jersey, USA

I've been looking into the RNG of the game for some time now. Here are my findings:

Spooky was made in Game Maker 8 or 8.1. RNG in these versions of GM is pretty hard to find info about. I think it has to do with an RNG function built into Windows and therefore cannot be manipulated due to technical reasons. This was changed in Game Maker Studio, but that doesn't cover this game.

RNG is called to determine the next room when you interact with a door. The way it's done is different if you're playing on endless mode, but I won't cover that here.

What happens when you interact with a door is like this: -Add 1 to the room count -If the room count is for a scripted room (i.e. elevators, monster spawns, etc.) then go to the scripted room -else if room > 60 and no monsters are chasing you (afaik), and if a random number between 1 and 8 is 1, go to 1 of 13 special rooms -else if room count < 50, go to 1 of 49 normal rooms -else if room count < 100, go to 1 of 45 normal rooms -else if room count < 200, go to 1 of 61 normal rooms -else if room count < 300, go to 1 of 55 normal rooms -else if room count < 400, go to 1 of 51 normal rooms -else if room count < 500, go to 1 of 55 normal rooms -else if room count < 600, go to 1 of 69 normal rooms -else if room count < 700, go to 1 of 49 normal rooms -else if room count < 800, go to 1 of 66 normal rooms -else if room count < 900, go to 1 of 66 normal rooms -else, go to 1 of 89 normal rooms

Every room that isn't scripted is determined with a single random number. The range of numbers that can be used when determining the next room is from 0 to n-1 inclusive, in which n is the number of rooms that you could be sent to (it's n-1 because of how arrays work, but that's outside the scope of this explanation). This basically means that you can semi-guess what room you could end up in next depending on what your current room count is, though fully manipulating it is impossible.

tl;dr RNG cannot be predicted or manipulated, but one can guess what room they can get from their room count.

Hope this answers your questions.

Shadrake likes this