matthileo

Attack Macro: Weapon/Spell Attacks

May 28th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ^^ user.attacks = {
  2.     eb: function(damage,toHit) {
  3.         damage.push(
  4.             {
  5.                 dieCount: 1,
  6.                 dieSize: 10,
  7.                 comment: 'Force',
  8.                 phrase: 'fires a mote of shadow energy'
  9.             }
  10.         )
  11.         toHit.dieCount=1;
  12.         toHit.modifier = user.character.chaMod + user.character.proficiencyBonus;
  13.     },
  14.     sword: function(damage,toHit) {
  15.         damage.push(
  16.             {
  17.                 dieCount: 1,
  18.                 dieSize: 8,
  19.                 modifier: user.character.dexMod,
  20.                 comment: '',
  21.                 phrase: 'slashes with his shadow sword',
  22.                 effect: '**Effect:** Target must make a `DC 13` Constitution saving throw or have their Strength score reduced by 1 until they finish a short or long rest.'
  23.             }
  24.         )
  25.         toHit.dieCount=1;
  26.         toHit.modifier = user.character.dexMod + user.character.proficiencyBonus;
  27.     },
  28.     light: function(damage,toHit) {
  29.         damage.push(
  30.             {
  31.                 dieCount: 1,
  32.                 dieSize: 6,
  33.                 modifier: user.character.dexMod,
  34.                 comment: '',
  35.                 phrase: 'slashes with his shadow sword',
  36.                 effect: '**Effect:** Target must make a `DC 13` Constitution saving throw or have their Strength score reduced by 1 until they finish a short or long rest.'
  37.             }
  38.         )
  39.         toHit.dieCount=1;
  40.         toHit.modifier = user.character.dexMod + user.character.proficiencyBonus;
  41.     },
  42.     off: function(damage,toHit) {
  43.         damage.push(
  44.             {
  45.                 dieCount: 1,
  46.                 dieSize: 6,
  47.                 comment: '',
  48.                 phrase: 'makes an off-hand attack with his short sword',
  49.                 effect: ''
  50.             }
  51.         )
  52.         toHit.dieCount=1;
  53.         toHit.modifier = user.character.dexMod + user.character.proficiencyBonus;
  54.     },
  55.     greatsword: function(damage,toHit) {
  56.         damage.push(
  57.             {
  58.                 dieCount: 2,
  59.                 dieSize: 6,
  60.                 modifier: user.character.strMod,
  61.                 comment: '',
  62.                 phrase: 'has trouble swinging the massive black sword',
  63.                 effect: '**Effect:** Target must make a `DC 13` Constitution saving throw or have their Strength score reduced by 1 until they finish a short or long rest.'
  64.             }
  65.         )
  66.         toHit.dieCount=1;
  67.         toHit.modifier = user.character.strMod + user.character.proficiencyBonus;
  68.     },
  69.     disarm: function(damage,toHit) {
  70.         damage.push(
  71.             {
  72.                 phrase: 'makes a disarm attack',
  73.             }
  74.         )
  75.         toHit.dieCount=1;
  76.         toHit.modifier = user.character.dexMod + user.character.proficiencyBonus;
  77.     },
  78. }
Advertisement
Add Comment
Please, Sign In to add comment