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?
Armors and Buffs
by
Catchem All
Played 1,596 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
Damage is a number variable. Damage is 0. Accuracy is a number variable. Accuracy is 0. Pdefense is a number variable. Pdefense is 0. HP is a number variable. HP is 50. MaxHP is a number variable. MaxHP is 50. A weapon is a kind of thing. A melee is a kind of weapon. A ranged is a kind of weapon. Weapons have a number called idamage. The idamage of a weapon is usually 1. The fist is a melee. An armor is a kind of thing. An armor is always wearable. The plural of armor is armors. A helmet is a kind of armor. A chestplate is a kind of armor. A leggings is a kind of armor. A wildmon is a kind of person. Kriller is a wildmon. Toxbee is a wildmon. Snailflame is a wildmon. Rosewing is a wildmon. The equipped is a weapon that varies. The equipped is the fist. Equip is an action applying to one thing. Understand "equip [weapon]" as equip. Check equip: if the equipped is something begin; say "You de-equip the [equipped]."; now the equipped is the noun; end if instead. Carry out equip: say "You equip the [noun]."; now the noun is the equipped. The worr leggings is a thing that varies. The worr chestplate is a thing that varies. The worr helmet is a thing that varies. Every turn while the player is wearing a helmet(called worn): now the worr helmet is the worn. Every turn while the player is wearing a chestplate(called worn): now the worr chestplate is the worn. Every turn while the player is wearing a leggings(called worn): now the worr leggings is the worn. Armors and people have a number called defense. The defense of an armor is usually 0. The defense of a person is usually 0. Instead of wearing a helmet while the player is wearing a helmet: say "You are already wearing a helmet." Instead of wearing a chestplate while the player is wearing a chestplate: say "You are already wearing a chestplate." Instead of wearing a leggings while the player is wearing a leggings: say "You are already wearing leggings." Every turn while the player is not defenseless: let x1 be the defense of the worr helmet plus the defense of the worr chestplate; now pdefense is x1 plus the defense of the worr leggings. Defensecheck is an action applying to nothing. Understand "defense" as defensecheck. Carry out defensecheck: say "Helmet: [the worr helmet] with [defense of the worr helmet] defense[line break]Chestplate: [the worr chestplate] with [defense of the worr chestplate] defense[line break]Leggings: [the worr leggings] with [defense of the worr leggings] defense[line break]Total defense: [pdefense]" Every turn: if HP is greater than MaxHP, now HP is MaxHP. When play begins: change the left hand status line to "Health: [HP]/[MaxHP]". A debuff is a kind of value. The debuffs are normal, burnt, poisoned, frozen, blinded, defenseless. The player has a debuff. The player is normal. A buff is a kind of value. The buffs are unbuffed, armored. The player has a buff. The player is armored. Timer is a number variable. Timer is 3. Timer2 is a number variable. Timer2 is 3. Every turn while the player is not normal: now timer is timer minus 1; if timer is 0 begin; say "You are no longer [debuff of the player]."; now the player is normal; now timer is 3; end if. Every turn while the player is not unbuffed: now timer2 is timer2 minus 1; if timer2 is 0 begin; say "You are no longer [buff of the player]."; now the player is unbuffed; now timer2 is 3; end if. Every turn while the player is armored: now pdefense is pdefense plus 3. the dd is a room. Every turn while the player is poisoned or the player is burnt: now HP is HP minus 1. Every turn while the player is blinded: now accuracy is 50. Every turn while the player is defenseless: now pdefense is 0. Instead of doing something while the player is frozen: say "You can't! You're frozen!". Instead of waiting while the player is frozen: say "Time passes.".