Does this spawn code work?

Hi. I think I finally got my custom spawn code working, but I'm not sure, and I'd like someone else's opinion.

First, this is in the game's start script:

game.count2 = 0
spawnrooms
This is Route 24's monster spawning code:
After entering the room:

roll = GetRandomInt(1,100)
firsttime {
game.spawn = false
}
firsttime {
Route 24.circuitfirst = false
}
Route 24.countscript => {
if (game.count2 > 0) {
if (Route 24.circuitfirst = false) {
Route 24.count = Route 24.count + 1
Route 24.circuitfirst = true
if (game.spawn = false) {
SpawnSentret (Route 24)
}
}
}
}
if (Route 24.count > 5) {
Route 24.count = 0
}
if (Route 24.count = 0) {
Route 24.circuitfirst = false
}


Log in to post a reply.

Support

Forums