Home
Explore games
Help
Log in
Playfic is now in read-only mode.
You can still play existing games, but new signups and game editing is disabled.
Read the announcement.
Log in
Username
Password (
Forgot it?
)
Login
Boss Fight test
by
Hubert Qin
Played 988 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
hp1 is a number which varies. hp1 is 100; hp2 is a number which varies. hp2 is 100; attack1 is a number which varies; attack1 is 21; attack2 is a number which varies; attack2 is 14; attack3 is a number which varies; attack3 is 16; move is a number which varies; move is 0; dodge1 is a number which varies; dodge1 is 30; dodge2 is a number which varies; dodge2 is 60; dodge is a number which varies; dodge is 0; healcount is a number which varies; healcount is 2; The carrying capacity of the player is 10; When play begins: say "Hello you are in fight room" [FIGHT ROOM] Fight room is a room. The description is "This is where you fight, enter attack to fight and heal to heal"; Instead of saying yes: say "Pokemon attack![paragraph break]"; now dodge is a random number from 0 to 99; now hp2 is hp2 minus attack1; if dodge is less than dodge2: now hp2 is hp2 plus attack1; if hp1 is greater than 0: say "Enemy has hp of [hp2] (dodged)[paragraph break]"; now move is a random number from 1 to 2; if dodge is less than dodge1: say "Your hp is [hp1] (dodged) [paragraph break]"; otherwise: if move is 1: say "Enemy uses move 1![paragraph break]"; now hp1 is hp1 minus attack2; if hp1 is less than 1: say "you lose!"; otherwise: say "Your hp is [hp1][paragraph break]"; otherwise: say "Enemy uses move 2![paragraph break]"; now hp1 is hp1 minus attack3; if hp1 is less than 1: say "you lose!"; otherwise: say "Your hp is [hp1][paragraph break]"; otherwise if hp2 is less than 1 and hp1 is greater than 0: say "you win![paragraph break]"; otherwise: if hp1 is greater than 0: if dodge is less than dodge1: say "Enemy has hp of [hp2][paragraph break]"; say "Your hp is [hp1](dodged)[paragraph break]"; otherwise: say "Enemy has hp of [hp2][paragraph break]"; now move is a random number from 1 to 2; if move is 1: say "Enemy uses move 1![paragraph break]"; now hp1 is hp1 minus attack2; if hp1 is less than 1: say "you lose!"; otherwise: say "Your hp is [hp1][paragraph break]"; otherwise: say "Enemy uses move 2![paragraph break]"; now hp1 is hp1 minus attack3; if hp1 is less than 1: say "you lose!"; otherwise: say "Your hp is [hp1][paragraph break]"; otherwise: say "you lose![paragraph break]"; Understand "attack" as saying yes Instead of saying no: if healcount is greater than 0: now hp1 is hp1 plus 20; now healcount is healcount minus 1; say "Your hp is now [hp1][paragraph break]"; say "You have [healcount] potions left"; otherwise: say "Can't heal"; Understand "heal" as saying no;