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?
EarthBound Beta (battling and enemies)
by
Carter
Played 1,390 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
Home is a room. The description is "Your Home, in all its glory." An enemy is a kind of person. An enemy can be attacked. When play begins: say "Are you a boy or a girl? [paragraph break] You have certain battle commands: Magic, Attack." Caldecott Road is north of Home. "The Great Caldecott Road. Stuff happens here. You may wanna wait." Magicing is an action applying to one thing. understand "magic [something]" as magicing. carry out magicing: say "Why do you need to magic [printed name]"; now the MP of the player is MP minus 1. Nameindex is a kind of value. The nameindexes are Jeff, Ness, Lucas, Paula, and Poo. 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. 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] Jeff, Ness, Lucas, Paula, and Poo."; 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. 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. use no scoring. include exit lister by eric eve. use undo prevention. people and nouns and locations and objects and enemies have a number called HP. The hp of a noun or object or location or person or enemy is usually 1. Every turn: if the hp of the player is less than 1, end the game in death. Every turn: if the hp of the noun or object or location or person is less than 1, now the noun or object or location or person is off-stage. When play begins: now HP of the player is 50. Caldenemytimer is a number variable. Caldenemytimer is 3. Every turn: now Caldenemytimer is caldenemytimer minus 1. Every turn: if caldenemytimer is -1, now caldenemytimer is 3. Abstract Art is a person. it is in the bloom room. The description is "Art is so dangerous." Abstract Art has HP 15. Abstract Art is an enemy. every turn: if player is in caldecott road and caldenemytimer is 0 begin; say "Oh no! Some Abstract Art appeared!"; end if. every turn: if player is in caldecott road and caldenemytimer is 0 begin; now Abstract Art is in Caldecott Road; end if. people have a number called MP. The MP of the person is usually 0. check magicing: if the mp of the player is 0, say "You can't magic idiot!"; reject the player's command. when play begins: now MP of the player is 10. Instead of magicing enemy: let accuracy be a random number from 1 to 2; if accuracy is 1 begin; say "[noun] dodges your attack. Come on!"; end if; if accuracy is 2 begin; let damage be a random number from 4 to 6; say "You magic [noun] for [damage] hit points. YAS!"; now the HP of the noun is the HP of the noun minus damage; end if; now MP of the player is the MP of the player minus 1; if the HP of abstract art is less than 1 begin; say "You defeated the [noun]!"; end if. the description of the player is "Your stats: [line break] HP: [HP of player] [line break] MP: [MP of player]" Instead of attacking enemy: let accuracy be a random number from 1 to 2; if accuracy is 1, say "[noun] dodges your attack. Come on!"; if accuracy is 2, let damage be a random number from 1 to 4; say "You attack [noun] for [damage] hit points. YAS!"; now the HP of the noun is the HP of the noun minus damage; if the HP of noun is less than 1 begin; say "You defeated the enemy!"; end if. before magicing enemy: if the mp of the player is less than one begin; say "You need MP, idiot."; reject the player's command; end if. Every turn: if a random chance of 1 in 2 succeeds and the player can see an enemy begin; let mydamage be a random number from 1 to 5; say "[noun] hits you for [mydamage] hit points. Dangit!"; now the HP of the player is the HP of the player minus mydamage; end if. An enemy is a kind of person. An enemy can be magiced. Understand "enemy" as an enemy.