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?
Sushi Chef (previous)
by
Rob Clarke
Played 1,174 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Sushi Chef" by SSML IT / Robert Clarke The release number is 4. [ Create a list of sushi requests that we want the player to prepare. Once they have made one, it is classified as done ] Request is a kind of value. The requests are tuna sushi, salmon sushi, fried egg sushi. A request can be done or todo. [ Koma Sushi Restaurant, where the player starts, and where they will stay until they finish preparing all of the sushi ] Koma Sushi Restaurant is a room. "A small, dimly lit restaurant that is the best in the town. A Gojira poster hangs on one wall and a furry Totoro watches you as you PREPARE the sushi." Some rice is here. The description is "An important ingredient for preparing sushi." Some tuna is here. The description is "An important ingredient in maguro nigirizushi." Some salmon is here. The description is "An important ingredient in sake nigirizushi." Some fried egg is here. The description is "An important ingredient in tamago nigirizushi." Some fried tofu is here. The description is "An important ingredient in preparing inarizushi." A Totoro is here. It is scenery. The description is "This Totoro has always followed you from one workplace to another." A Gojira poster is here. It is scenery. The description is "An iconic poster, that matches perfectly with the decor of the restaurant." [ This object will always tell the player what they need to prepare. It doesn't handle the situation when there are no sushi left, but that isn't a problem because the player will be moved to another room ] An order list is in Koma Sushi Restaurant. "There is an order list with a list of sushi to prepare." The description is "You have to prepare: [list of requests that are todo]"; [ Karaoke Bar, where the player ends up once they have finished preparing all of the sushi ] Karaoke Bar is a room. "The second-best karaoke bar in town. It might not have the latest TVs and the microphones are a bit too heavy, but the choice of music is eclectic." Understand "sing" as a mistake("In this story you can't sing. Why not try and add it yourself?") [ Has the player prepared everything yet? We only want this check to be done when the player is in the restaurant, otherwise they will continue to see the same message even when they are in the karaoke bar ] Every turn when the player is in Koma Sushi Restaurant: if there are no todo requests: say "[italic type]You finally finish your job and head out into the warm night. Your favourite karaoke bar awaits you.[roman type]"; move the player to the Karaoke Bar. [ New action: PREPARE something WITH something ] Preparing it with is an action applying to two things. Understand "prepare [something] with [something]" as preparing it with. Instead of preparing the rice with the tuna: now the tuna sushi is done; say "You make Maguro Nigirizushi and it looks great! A customer reaches out and takes it from you."; remove the tuna from play. Instead of preparing the rice with the salmon: now the salmon sushi is done; say "You make Sake Nigirizushi and it looks great! A customer reaches out and takes it from you."; remove the salmon from play. Instead of preparing the rice with the fried egg: now the fried egg sushi is done; say "You make Tamago Nigirizushi and it looks great! A customer reaches out and takes it from you."; remove the fried egg from play. Instead of preparing the rice with the fried tofu: say "You make Inarizushi and it looks great! You eat it before anyone can ask for it."; remove the fried tofu from play. [ Since the player could type "prepare fried tofu with rice", to avoid repeating the above lines, let's just try and prepare the rice with the ingredient instead, but making sure that it isn't rice, otherwise the story will explode ] Instead of preparing something which is not rice with the rice, try preparing the rice with the noun. [ The player wants to prepare something with itself ] Instead of preparing the noun with the noun, say "You take half of [the noun] and combine it with the other half, and you obviously end up with [noun]." [ The player wants to prepare something that we haven't planned ] Instead of preparing, say "You combine [the noun] with [the second noun] and make [noun]-[second noun] sashimi, but no-one wants to eat it." [ New action: PREPARE xyz -- used when the player doesn't refer to an ingredient that exists ] Trying to prepare is an action applying to one topic. Understand "prepare [text]" as trying to prepare. [ NOTE: the following line doesn't work on playfic ] [Instead of trying to prepare, say "Try specifying the two ingredients that you want to prepare together."] Carry out trying to prepare: say "Are you sure those are the right ingredients?" [ Let's try and help the player in case they type 'prepare the sushi', by telling them that they made a mistake and that should type something else instead ] Understand "prepare the sushi" or "prepare sushi" as a mistake ("Try typing PREPARE an ingredient WITH another.") [ The player typed verbatim our suggestion, so let's help them again ] Understand "prepare an ingredient with another" as a mistake ("No, I meant try typing something like PREPARE RICE WITH SALMON.") Understand "prepare salmon sushi" or "prepare tuna sushi" or "prepare egg sushi" as a mistake ("Try typing PREPARE an ingredient WITH another.")