Home
Start a new game
Explore games
Help
Log in or sign up
Log in
Username
Password (
Forgot it?
)
×
New to Playfic?
Full Name
Email
Username
Password
Password (confirm)
Are you sure about this?
Random Rooms
by
Cool Game Maker
Played 1,660 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
Area is a number variable. Landform is a number variable. When play begins: now area is a random number from 1 to 2. Every turn: now landform is a random number from 1 to 3. The place1 is a room. The printed name is "[if area is 1 and landform is 3]Dense Forest[end if][if area is 1 and landform is 2]Pond[end if][if area is 1 and landform is 1]Forest Clearing[end if][if area is 2 and landform is 1]Bare Desert[end if][if area is 2 and landform is 2]Cacti Forest[end if][if area is 2 and landform is 3]Desert Plateau[end if]". "This is the first random room. The second one is south." The switch is a device in the place1. The switch is switched off. The description is "Turn it on to get the random rooms going!" Carry out switching on the switch: now landform is a random number from 1 to 3. The place2 is south of the place1. The printed name is "[if area is 1 and landform is 3]Dense Forest[end if][if area is 1 and landform is 2]Pond[end if][if area is 1 and landform is 1]Forest Clearing[end if][if area is 2 and landform is 1]Bare Desert[end if][if area is 2 and landform is 2]Cacti Forest[end if][if area is 2 and landform is 3]Desert Plateau[end if]". "This is the second random room. The first one is north."