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?
Gun Game
by
Alexander Geoffrey Osborn
Played 34 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Gun Game" start is a room. "[if unvisited]Go north to enter the battle field." battle field is a room. battle field is north of start. dodging is an action out of world. understand "dodge" as dodging. ducking is an action out of world. understand "duck" as ducking. move count is a number that varies. move count is 0. After going to battle field: say "You are now in the battle field.[paragraph break]An officer begins to shoot at you. Avoid the bullets to avoid death.[paragraph break]"; say "[bold type] The officer shoots at your head![roman type][paragraph break]"; say "You can jump, dodge, or duck!"; now the command prompt is "Move >"; increase the move count by 1; continue the action. After reading a command when the command prompt is "Move >": if the player's command matches "duck" or the player's command matches "dodge" or the player's command matches "jump": if the player's command matches "duck" and move count is 1: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your feet![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "jump" and move count is 2: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your torso![roman type][line break]"; increase move count by 1; reject the player's command; continue the action; if the player's command matches "dodge" and move count is 3: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your torso![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "dodge" and move count is 4: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your feet![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "jump" and move count is 5: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your torso![roman type][line break]"; increase move count by 1; reject the player's command; continue the action; if the player's command matches "dodge" and move count is 6: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your feet![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "jump" and move count is 7: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your head![roman type][line break]"; increase move count by 1; reject the player's command; continue the action; if the player's command matches "duck" and move count is 8: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your head![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "duck" and move count is 9: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your torso![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "dodge" and move count is 10: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your head![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "duck" and move count is 11: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your feet![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "jump" and move count is 12: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your feet![roman type][line break]"; increase move count by 1; reject the player's command; continue the action; if the player's command matches "jump" and move count is 13: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your torso![roman type][line break]"; increase move count by 1; reject the player's command; continue the action; if the player's command matches "dodge" and move count is 14: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your head![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "duck" and move count is 15: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your torso![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "dodge" and move count is 16: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer shoots at your feet![roman type][line break]"; increase move count by 1; continue the action; if the player's command matches "jump" and move count is 17: say "You [player's command] and avoid the bullet.[paragraph break]"; say "[bold type] The officer is out of ammo![roman type][line break]"; increase move count by 1; end the game in victory; otherwise: say "You were shot by the officer."; end the game in death; otherwise: continue the action.