Battle Mechanic Experiment 1
made with Twine 2, by HyperGamer25101 (set:$battle to "none") (set:$1Patk to 1)(set:$1Pdef to 1)(set:$2Patk to 1)(set:$2Pdef to 1)
[[Custom Game->1P Health Setup]]
[[Battle Test]]
[[About]](set:$battle to "test") You are now about to enter a Battle Test System.
(set:$1Phealth to 100)(set:$2Phealth to 100)(set:$1Patk to 1)(set:$1Pdef to 1)(set:$2Patk to 1)(set:$2Pdef to 1)(set:$potion to 10)(set:$hpotion to 5)(set:$fpotion to 3)
Against the opponent $battle, both HP are set to 100 and start with Lv 1 on Atk and Def. References are used to know which beats which.
[[Click here to begin->Fight Menu]]Derek' Battle Mechanic Experiment is a Text-Based Battle Mechanic Simulation.
Made with Twine 2, version 2.1.1
Format is Harlowe 2.1.0
Battle System made based on the Japanese-only SNES game.
It is all made by HyperGamer25101
IFID: 7A71BE8C-3978-4EA4-85B8-114ADB167E1F
[[Return to Title Screen->Title Screen]] Player HP: $1Phealth
Atk LV: $1Patk
Def LV: $1Pdef
$battle HP: $2Phealth
(set:$enemyatk to (random: 1,4)) (set:$scoutatk to (random: 1,6)) (if:$enemyatk is 1)[(set:$enemyskl to "Power")] (if:$enemyatk is 2)[(set:$enemyskl to "Speed")] (if:$enemyatk is 3)[(set:$enemyskl to "Ki")] (if:$enemyatk is 4)[(set:$enemyskl to "Counter")]
Choose your Attack Type.
[[Power Attack]] (if:$battle is "test")[Power beats Counter]
[[Speed Attack]] (if:$battle is "test")[Speed beats Ki]
[[Ki Attack]] (if:$battle is "test")[Ki beats Power]
[[Counter Attack]] (if:$battle is "test")[Counter beats Speed]
Scout Chance: (if:$scoutatk is >= 4)[The enemy is planning a $enemyskl Attack.](else:)[The enemy attack cannot be read at the moment.]
(unless:$item is "used")[ [[Use Item]] ](else:)[Item already used.]Power vs (if:$enemyatk is 1)[(set:$enemyskl to "Power")](if:$enemyatk is 2)[(set:$enemyskl to "Speed")](if:$enemyatk is 3)[(set:$enemyskl to "Ki")](if:$enemyatk is 4)[(set:$enemyskl to "Counter")]$enemyskl
(if: $enemyatk is 4)[(set:$1Pdice to (random:1,6)+(random:1,6))(set:$2Pdice to (random:1,6))You get the Advantage.] (if:$enemyatk is 3)[(set:$2Pdice to (random:1,6)+(random:1,6))(set:$1Pdice to (random:1,6))Your opponent gets an Advantage.] (unless:$enemyatk is 3 or 4)[(set:$1Pdice to (random:1,6))(set:$2Pdice to (random:1,6))No Advantage]
[[Power Dice Roll]]Speed vs (if:$enemyatk is 1)[(set:$enemyskl to "Power")](if:$enemyatk is 2)[(set:$enemyskl to "Speed")](if:$enemyatk is 3)[(set:$enemyskl to "Ki")](if:$enemyatk is 4)[(set:$enemyskl to "Counter")]$enemyskl
(if: $enemyatk is 3)[(set:$1Pdice to (random:1,6)+(random:1,6))(set:$2Pdice to (random:1,6))You get the Advantage.] (if:$enemyatk is 4)[(set:$2Pdice to (random:1,6)+(random:1,6))(set:$1Pdice to (random:1,6))Your opponent gets an Advantage.] (unless:$enemyatk is 3 or 4)[(set:$1Pdice to (random:1,6))(set:$2Pdice to (random:1,6))No Advantage]
[[Speed Dice Roll]]Ki vs (if:$enemyatk is 1)[(set:$enemyskl to "Power")](if:$enemyatk is 2)[(set:$enemyskl to "Speed")](if:$enemyatk is 3)[(set:$enemyskl to "Ki")](if:$enemyatk is 4)[(set:$enemyskl to "Counter")]$enemyskl
(if: $enemyatk is 1)[(set:$1Pdice to (random:1,6)+(random:1,6))(set:$2Pdice to (random:1,6))You get the Advantage.] (if:$enemyatk is 2)[(set:$2Pdice to (random:1,6)+(random:1,6))(set:$1Pdice to (random:1,6))Your opponent gets an Advantage.] (unless:$enemyatk is 1 or 2)[(set:$1Pdice to (random:1,6))(set:$2Pdice to (random:1,6))No Advantage]
[[Ki Dice Roll]]Counter vs (if:$enemyatk is 1)[(set:$enemyskl to "Power")](if:$enemyatk is 2)[(set:$enemyskl to "Speed")](if:$enemyatk is 3)[(set:$enemyskl to "Ki")](if:$enemyatk is 4)[(set:$enemyskl to "Counter")]$enemyskl
(if: $enemyatk is 2)[(set:$1Pdice to (random:1,6)+(random:1,6))(set:$2Pdice to (random:1,6))You get the Advantage.] (if:$enemyatk is 1)[(set:$2Pdice to (random:1,6)+(random:1,6))(set:$1Pdice to (random:1,6))Your opponent gets an Advantage.] (unless:$enemyatk is 1 or 2)[(set:$1Pdice to (random:1,6))(set:$2Pdice to (random:1,6))No Advantage]
[[Counter Dice Roll]]$1Pdice v $2Pdice
(if:$1Pdice is >= $2Pdice)[(set: $1Pdice to it + $1Patk) (set:$2Phealth to it -($1Pdice - $2Pdef)) You delivered $1Pdice points of damage.]
(if:$1Pdice is < $2Pdice)[(set: $2Pdice to it + $2Patk) (set:$1Phealth to it -($2Pdice - $1Pdef)) $battle delivered $2Pdice points of damage.]
[[Battle Health]]$1Pdice v $2Pdice
(if:$1Pdice is >= $2Pdice)[(set: $1Pdice to it + $1Patk) (set:$2Phealth to it -($1Pdice - $2Pdef)) You delivered $1Pdice points of damage.]
(if:$1Pdice is < $2Pdice)[(set: $2Pdice to it + $2Patk) (set:$1Phealth to it -($2Pdice - $1Pdef)) $battle delivered $2Pdice points of damage.]
[[Battle Health]]$1Pdice v $2Pdice
(if:$1Pdice is >= $2Pdice)[(set: $1Pdice to it + $1Patk) (set:$2Phealth to it -($1Pdice - $2Pdef)) You delivered $1Pdice points of damage.]
(if:$1Pdice is < $2Pdice)[(set: $2Pdice to it + $2Patk) (set:$1Phealth to it -($2Pdice - $1Pdef)) $battle delivered $2Pdice points of damage.]
[[Battle Health]]$1Pdice v $2Pdice
(if:$1Pdice is >= $2Pdice)[(set: $1Pdice to it + $1Patk) (set:$2Phealth to it -($1Pdice - $2Pdef)) You delivered $1Pdice points of damage.]
(if:$1Pdice is < $2Pdice)[(set: $2Pdice to it + $2Patk) (set:$1Phealth to it -($2Pdice - $1Pdef)) $battle delivered $2Pdice points of damage.]
[[Battle Health]](set:$item to "ready") Player Health: $1Phealth
$battle Health: $2Phealth
(unless:$1Phealth is <= 0)[(unless:$2Phealth is <= 0)[ [[Continue->Fight Menu]] ]] (if:$1Phealth is <= 0)[ [[Continue->Defeat]] ] (if:$2Phealth is <= 0)[ [[Continue->Victory]] ]Defeat! $battle is too powerful for you.
[[Go to Title Screen->Title Screen]]Victory! You have beaten $battle !
[[Go to Title Screen->Title Screen]](if:$potion is >= 1)[ [[Quaff Potion]] x $potion](else:)[? ? ?]
(if:$spotion is >= 1)[ [[Quaff Super Potion]] x $spotion](else:)[? ? ?]
(if:$hpotion is >= 1)[ [[Quaff Hyper Potion]] x $hpotion](else:)[? ? ?]
[[Fight Menu<-Go Back]] (set:$item to "used")(set:$potion to it -1)(set:$1Phealth to it +30) You quaffed a potion.
You now have $1Phealth HP.
[[Fight Menu<-Back to menu]](set:$item to "used")(set:$spotion to it -1)(set:$1Phealth to it +60) You quaffed a super potion.
You now have $1Phealth HP.
[[Fight Menu<-Back to menu]](set:$item to "used")(set:$hpotion to it -1)(set:$1Phealth to it + 270) You quaffed a hyper potion.
You now have $1Phealth HP.
[[Fight Menu<-Back to menu]]How many HP will you Start with?
[[50 HP]]
[[100 HP]]
[[200 HP]]
[[400 HP]]
[[800 HP]](set:$1Phealth to 50) Player HP set to 50.
[[Continue->ATK Level Setup]](set:$1Phealth to 100) Player HP set to 100.
[[Continue->ATK Level Setup]](set:$1Phealth to 200) Player HP set to 200.
[[Continue->ATK Level Setup]](set:$1Phealth to 400) Player HP set to 400.
[[Continue->ATK Level Setup]](set:$1Phealth to 800) Player HP set to 800.
[[Continue->ATK Level Setup]]What Attack Level will you have?
[[Level 1->Level 1>ATK Level 1]]
[[Level 5->Level 5>ATK Level 5]]
[[Level 10->Level 10>ATK Level 10]]
[[Level 25->Level 25>ATK Level 25]]
[[Level 50->Level 50>ATK Level 50]](set:$1Patk to 1) Attack Level set to 1.
[[Continue->DEF Level Setup]](set:$1Patk to 5) Attack Level set to 5.
[[Continue->DEF Level Setup]](set:$1Patk to 10) Attack Level set to 10.
[[Continue->DEF Level Setup]](set:$1Patk to 25) Attack Level set to 25.
[[Continue->DEF Level Setup]](set:$1Patk to 50) Attack Level set to 50.
[[Continue->DEF Level Setup]]What Defense Level will you have?
[[Level 1->Level 1>DEF Level 1]]
[[Level 5->Level 5>DEF Level 5]]
[[Level 10->Level 10>DEF Level 10]]
[[Level 25->Level 25>DEF Level 25]]
[[Level 50->Level 50>DEF Level 50]](set:$1Pdef to 1) Defense Level set to 1.
[[Continue->Inventory Setup]](set:$1Pdef to 5) Defense Level set to 5.
[[Continue->Inventory Setup]](set:$1Pdef to 10) Defense Level set to 10.
[[Continue->Inventory Setup]](set:$1Pdef to 25) Defense Level set to 25.
[[Continue->Inventory Setup]](set:$1Pdef to 50) Defense Level set to 50.
[[Continue->Inventory Setup]]How big will be your inventory?
[[Light->Light Amount]]
[[Medium->Medium Amount]]
[[Heavy->Heavy Amount]](set:$potion to 5)(set:$spotion to 3)(set:$hpotion to 1) You now have $potion Potions, $spotion Super Potions, and $hpotion Potions.
[[Choose Opponent]](set:$potion to 10)(set:$spotion to 5)(set:$hpotion to 3) You now have $potion Potions, $spotion Super Potions, and $hpotion Potions.
[[Choose Opponent]](set:$potion to 20)(set:$spotion to 10)(set:$hpotion to 5) You now have $potion Potions, $spotion Super Potions, and $hpotion Potions.
[[Choose Opponent]]Settings: $1Phealth HP, $1Patk ATK Power, $1Pdef DEF Power
**Choose Opponent's Rank**
[[Urchin]] 10 HP, -2 ATK, -2 DEF
[[Peasant]] 20 HP, 0 ATK, 0 DEF
[[Initiate]] 30 HP, 1 ATK, 0 DEF
[[Apprentice]] 40 HP, 1 ATK, 1 DEF
[[Guard]] 45 HP, 1 ATK, 2 DEF
[[Cadet]] 50 HP, 2 ATK, 2 DEF
[[Hussar]] 60 HP, 2 ATK, 2 DEF
[[Guardian]] 75 HP, 3 ATK, 3 DEF
[[Sentinel]] 80 HP, 3 ATK, 4 DEF
[[Lancer]] 90 HP, 4 ATK, 4 DEF
[[Officer]] 95 HP, 5 ATK, 4 DEF
[[Templar]] 100 HP, 6 ATK, 5 DEF
[[Advocate]] 115 HP, 6 ATK, 6 DEF
[[Champion]] 120 HP, 7 ATK, 7 DEF
[[Jouster]] 125 HP, 8 ATK, 7 DEF
[[Heavens' Fist]] 150 HP, 9 ATK, 7 DEF
[[Holy Knight]] 175 HP, 9 ATK, 8 DEF
[[Royal Baron]] 200 HP, 10 ATK, 9 DEF
[[Justiciar]] 220 HP, 13 ATK, 11 DEF
[[Paragon]] 240 HP, 14 ATK, 12 DEF
[[Bane of Shadows]] 280 HP, 16 ATK, 15 DEF
[[Holy Champion]] 320 HP, 17 ATK, 19 DEF
[[Peace Keeper]] 360 HP, 23 ATK, 24 DEF
[[Chief Marshal]] 400 HP, 25 ATK, 25 DEF
[[Holy Vengeance]] 450 HP, 30 ATK, 29 DEF
[[Aegis of Justice]] 500 HP, 33 ATK, 31 DEF
[[Shining General]] 550 HP, 36 ATK, 35 DEF
[[Divine Warrior]] 650 HP, 40 ATK, 40 DEF
[[Faithful Avatar]] 700 HP, 45 ATK, 45 DEF
[[Avatar Fist-King]] 800 HP, 50 ATK, 50 DEF
[[Ultmate God]] 2000 HP, 60 ATK, 60 DEF(set:$battle to "Urchin")(set:$2Phealth to 10)(set:$2Patk to -2)(set:$2Pdef to -2) [[Prepare to Fight!->Fight Menu]](set:$battle to "Peasant")(set:$2Phealth to 20)(set:$2Patk to 0)(set:$2Pdef to 0) [[Prepare to Fight!->Fight Menu]](set:$battle to "Initiate")(set:$2Phealth to 30)(set:$2Patk to 1)(set:$2Pdef to 0) [[Prepare to Fight!->Fight Menu]](set:$battle to "Apprentice")(set:$2Phealth to 40)(set:$2Patk to 1)(set:$2Pdef to 1) [[Prepare to Fight!->Fight Menu]](set:$battle to "Guard")(set:$2Phealth to 45)(set:$2Patk to 1)(set:$2Pdef to 2) [[Prepare to Fight!->Fight Menu]](set:$battle to "Cadet")(set:$2Phealth to 50)(set:$2Patk to 2)(set:$2Pdef to 2) [[Prepare to Fight!->Fight Menu]](set:$battle to "Hussar")(set:$2Phealth to 60)(set:$2Patk to 2)(set:$2Pdef to 2) [[Prepare to Fight!->Fight Menu]](set:$battle to "Guardian")(set:$2Phealth to 75)(set:$2Patk to 3)(set:$2Pdef to 3) [[Prepare to Fight!->Fight Menu]](set:$battle to "Sentinel")(set:$2Phealth to 80)(set:$2Patk to 3)(set:$2Pdef to 4) [[Prepare to Fight!->Fight Menu]](set:$battle to "Lancer")(set:$2Phealth to 90)(set:$2Patk to 4)(set:$2Pdef to 4) [[Prepare to Fight!->Fight Menu]](set:$battle to "Officer")(set:$2Phealth to 95)(set:$2Patk to 5)(set:$2Pdef to 4) [[Prepare to Fight!->Fight Menu]](set:$battle to "Templar")(set:$2Phealth to 100)(set:$2Patk to 6)(set:$2Pdef to 5) [[Prepare to Fight!->Fight Menu]](set:$battle to "Advocate")(set:$2Phealth to 115)(set:$2Patk to 6)(set:$2Pdef to 6) [[Prepare to Fight!->Fight Menu]](set:$battle to "Champion")(set:$2Phealth to 120)(set:$2Patk to 7)(set:$2Pdef to 7) [[Prepare to Fight!->Fight Menu]](set:$battle to "Name")(set:$2Phealth to 125)(set:$2Patk to 8)(set:$2Pdef to 7) [[Prepare to Fight!->Fight Menu]](set:$battle to "Heavens' Fist")(set:$2Phealth to 150)(set:$2Patk to 9)(set:$2Pdef to 7) [[Prepare to Fight!->Fight Menu]](set:$battle to "Holy Knight")(set:$2Phealth to 175)(set:$2Patk to 9)(set:$2Pdef to 8) [[Prepare to Fight!->Fight Menu]](set:$battle to "Royal Baron")(set:$2Phealth to 200)(set:$2Patk to 10)(set:$2Pdef to 9) [[Prepare to Fight!->Fight Menu]](set:$battle to "Justiciar")(set:$2Phealth to 220)(set:$2Patk to 13)(set:$2Pdef to 11) [[Prepare to Fight!->Fight Menu]](set:$battle to "Paragon")(set:$2Phealth to 240)(set:$2Patk to 14)(set:$2Pdef to 12) [[Prepare to Fight!->Fight Menu]](set:$battle to "Bane of Shadows")(set:$2Phealth to 280)(set:$2Patk to 16)(set:$2Pdef to 15) [[Prepare to Fight!->Fight Menu]](set:$battle to "Holy Champion")(set:$2Phealth to 320)(set:$2Patk to 17)(set:$2Pdef to 19) [[Prepare to Fight!->Fight Menu]](set:$battle to "Peace Keeper")(set:$2Phealth to 360)(set:$2Patk to 23)(set:$2Pdef to 24) [[Prepare to Fight!->Fight Menu]](set:$battle to "Chief Marshal")(set:$2Phealth to 400)(set:$2Patk to 25)(set:$2Pdef to 25) [[Prepare to Fight!->Fight Menu]](set:$battle to "Holy Vengeance")(set:$2Phealth to 450)(set:$2Patk to 30)(set:$2Pdef to 29) [[Prepare to Fight!->Fight Menu]](set:$battle to "Aegis of Justice")(set:$2Phealth to 500)(set:$2Patk to 33)(set:$2Pdef to 29) [[Prepare to Fight!->Fight Menu]](set:$battle to "Shining General")(set:$2Phealth to 550)(set:$2Patk to 33)(set:$2Pdef to 31) [[Prepare to Fight!->Fight Menu]](set:$battle to "Divine Warrior")(set:$2Phealth to 650)(set:$2Patk to 40)(set:$2Pdef to 40) [[Prepare to Fight!->Fight Menu]](set:$battle to "Faithful Avatar")(set:$2Phealth to 700)(set:$2Patk to 45)(set:$2Pdef to 45) [[Prepare to Fight!->Fight Menu]](set:$battle to "Avatar Fist-King")(set:$2Phealth to 800)(set:$2Patk to 50)(set:$2Pdef to 50) [[Prepare to Fight!->Fight Menu]](set:$battle to "ULTIMATE GOD")(set:$2Phealth to 2000)(set:$2Patk to 60)(set:$2Pdef to 60) [[Prepare to Fight!->Fight Menu]]