matthileo

NEW Character Attacks

Jul 10th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $$ character=user.characters[user.currentCharacter];
  2. character.attacks = {
  3.     longsword: function(damage,toHit) {
  4.         damage.push(
  5.             {
  6.                 dieCount: 1,
  7.                 dieSize: 8,
  8.                 modifier: character.sheet.strMod,
  9.                 comment: 'Slashing',
  10.                 phrase: 'slashes with his longssword'
  11.             }
  12.         )
  13.         toHit.dieCount=1;
  14.         toHit.modifier = character.sheet.strMod + character.sheet.proficiencyBonus;
  15.     },
  16.     longbow: function(damage,toHit) {
  17.         damage.push(
  18.             {
  19.                 dieCount: 1,
  20.                 dieSize: 8,
  21.                 modifier:character.sheet.dexMod ,
  22.                 comment: 'Piercing',
  23.                 phrase: 'fires an arrow'
  24.             }
  25.         )
  26.         toHit.dieCount=1;
  27.         toHit.modifier = character.sheet.dexMod + character.sheet.proficiencyBonus;
  28.     },
  29. }
  30.  
  31. -----------------------------------------------------------------------
  32.  
  33. $$ character=user.characters[user.currentCharacter];
  34. character.attackModifiers  = {
  35.     na: function(toHit) {
  36.         toHit.dieCount = 0;
  37.     },
  38.     adv: function(toHit) {
  39.         toHit.dieCount = 2;
  40.         toHit.diceMod = '-H';
  41.     },
  42.     dis: function(toHit) {
  43.         toHit.dieCount = 2;
  44.         toHit.diceMod = '-L';
  45.     },
  46.     bless: function(toHit) {
  47.         toHit.modifier += "+1d4 [Bless]";
  48.     },
  49.     gwm: function(toHit) {
  50.         toHit.modifier += "-5 [Great Weapon Master]";
  51.     },
  52. }
  53.  
  54. ----------------------------------------------------------------------
  55.  
  56. $$ character=user.characters[user.currentCharacter];
  57. character.damageModifiers  = {
  58.     gwm: function(damage) {
  59.         damage.push(
  60.             {
  61.                 modifier:10,
  62.                 comment: 'Great Weapon Master',
  63.                
  64.             }
  65.         )
  66.     },
  67.     crit: function(damage) {
  68.         damage.push(
  69.             {
  70.                 effect: "*That's an automatic CRIT!*"
  71.             }
  72.         )
  73.     },
  74. }
Advertisement
Add Comment
Please, Sign In to add comment