Advertisement
BelshazzarII

kiha kiha

Jan 2nd, 2018
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. private function kihaFirePunch():void {
  2. game.spriteSelect(SpriteDb.s_kiha);
  3. outputText("The draconic girl throws her trusty weapon into the sodden ground, using the distraction to build up balls of flame around her fists. She runs towards you, launching herself in your direction with a flurry of punches.\n");
  4.  
  5. //Dodged
  6. if (player.spe - spe > 0 && int(Math.random()*(((player.spe-spe)/4) +80)) > 80) {
  7. outputText("You manage to jump to the side, intense heat rushing past you as you narrowly avoid her advance. You twist around, finding that she's reunited with her axe and angrier than before.");
  8. }
  9. //Determine if evaded
  10. else if (player.findPerk(PerkLib.Evade) >= 0 && rand(100) < 10) {
  11. outputText("Using your skills at evasion, you manage to jump to the side, intense heat rushing past you as you narrowly avoid her advance. You twist around, finding that she's reunited with her axe and angrier than before.");
  12. }
  13. //("Misdirection"
  14. else if (player.findPerk(PerkLib.Misdirection) >= 0 && rand(100) < 10 && player.armorName == "red, high-society bodysuit") {
  15. outputText("Using your skills at misdirection, you manage to make Kiha think you're going to dodge one way before stepping in the other direction. You turn back, finding she has her axe in hand and looks rather steamed.");
  16. }
  17. //Determine if cat'ed
  18. else if (player.findPerk(PerkLib.Flexibility) >= 0 && rand(100) < 6) {
  19. outputText("Using your cat-like reflexes, you manage to jump to the side, intense heat rushing past you as you narrowly avoid her advance. You twist around, finding that she's reunited with her axe and angrier than before.");
  20. }
  21. //HIT!
  22. else {
  23. var damage:int = int((str) - (player.armorDef));
  24. outputText("Before you can react, you're struck by the power of her blows, feeling an intense pain in your chest as each fist makes contact. With a final thrust, you're pushed backwards onto the ground; the dragoness smiles as she pulls her axe out of the ground, her hands still steaming from the fingertips. ");
  25. damage = player.takeDamage(damage, true);
  26. outputText("\n");
  27. }
  28. combatRoundOver();
  29. }
  30.  
  31.  
  32.  
  33. private function kihaFirePunch():void {
  34. game.spriteSelect(SpriteDb.s_kiha);
  35. var customOutput:Array = [
  36. "[SPEED]You manage to jump to the side, intense heat rushing past you as you narrowly avoid her advance. You twist around, finding that she's reunited with her axe and angrier than before.",
  37. "[EVADE]Izma tries to clinch you, but she didn't count on your skills in evasion. You manage to sidestep her at the last second.\n",
  38. "[MISDIRECTION]Using your skills at misdirection, you manage to make Kiha think you're going to dodge one way before stepping in the other direction. You turn back, finding she has her axe in hand and looks rather steamed.",
  39. "[FLEXIBILITY]Using your cat-like reflexes, you manage to jump to the side, intense heat rushing past you as you narrowly avoid her advance. You twist around, finding that she's reunited with her axe and angrier than before.",
  40. "[UNHANDLED]With your superior skill, you manage to jump to the side quickly enough to avoid her attack."];
  41. outputText("The draconic girl throws her trusty weapon into the sodden ground, using the distraction to build up balls of flame around her fists. She runs towards you, launching herself in your direction with a flurry of punches.\n");
  42. if(!playerAvoidDamage(true,false,true, false, NaN, customOutput)){
  43. var damage:int = int((str) * player.damagePercent()*0.013);
  44. outputText("Before you can react, you're struck by the power of her blows, feeling an intense pain in your chest as each fist makes contact. With a final thrust, you're pushed backwards onto the ground; the dragoness smiles as she pulls her axe out of the ground, her hands still steaming from the fingertips. ");
  45. damage = player.takeDamage(damage, true);
  46. outputText("\n");
  47. }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement