[Adventurer] Random Riposte

The level Random Riposte is ready for testing!

This level takes place in the Game Dev 2 campaign and teaches the game.randomInteger(min, max) function for using randomness in your games.


completed no issues.

The knight shows up as red knight however. Was that the intent?



nice level! I think it’s a good idea to start with the method rather than using the original functions.

Just a short bug report:

There is a comment that might need changing. At the moment, the given source says

# Spawn an ogre every 2 seconds.
spawnTime = 0
while True:
    if game.time > spawnTime:
        #[...] (omiting some stuff)
        # Spawn again in 0 through 4 seconds
        spawnTime = game.time + game.randomInteger(0,4)

So, the first comment should in my opinion be changed to

#Spawn an ogre every 0 to 4 seconds.

I did not find where I might have this changed and approved directly in the game, thus my suggestion here.



Thanks for the report! Fixed now :slight_smile:


The phrase ‘# Spawn again in 0 through 4 seconds’ has not been changed so I can’t go on. Is it fixed already? Please check again. I’m also not sure about the programming script around the program that randomly spawns the munchkins on the field. It seems as though even when I input the random numbers, it just doesn’t spawn any munchkins.

Thank you.

1 Like

It tells me to defeat the munchkins how am I supposed to do that ?

What do you mean @Jake_Doggy?