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?
Naming and Gender
by
It's A Secret
Played 1,411 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
Nameindex is a kind of value. The nameindexes are George, Bill, Bob, Edward, Larry, Barry, Mary, May, Maria, Margaret, Mable, Madison. A pokemon is a kind of person. The plural of pokemon is pokemon. A pokeball is a kind of container. A pokeball is closed. A pokeball is openable. A pokemon can be tame or wild. Gender is a kind of value. The genders are boy, girl, sixtysixtysix. Understand "m" and "b" as boy. Understand "f" and "g" as girl. The player has a gender. The player is sixtysixtysix. Pokemon have a text called nickname. Player's name is a text that varies. Phase is a number variable. Phase is 1. A person can be starting or not starting. A person is usually not starting. The player is starting. After reading a command while the player is starting and phase is 1: if the player's command includes "[gender]" begin; now the gender of the player is the gender understood; say "Congratulations, you are now a [gender of the player]. Now, what is your name? Please pick one of these names:[line break]George, Bill, Bob, Edward, Larry, Barry, Mary, May, Maria, Margaret, Mable, Madison."; now phase is 2; reject the player's command; end if; if the player's command does not include "[gender]" begin; say "Please select a gender."; reject the player's command; end if. Every turn while phase is 0: say "Hello, [player's name]." After reading a command while the player is starting and phase is 2: if the player's command includes "[nameindex]" begin; now the player's name is "[player's command in title case]"; say "Hello, [player's name]."; now phase is 0; reject the player's command; end if; if the player's command does not include "[nameindex]" begin; say "Please select one of the names above."; reject the player's command; end if. The place is a room. The printed name is " ". "Hello, young one. Are you a boy? Or a girl?"