Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^^ user.attackModifiers = {
- na: function(toHit) {
- toHit.dieCount = 0;
- },
- adv: function(toHit) {
- toHit.dieCount = 2;
- toHit.diceMod = '-H';
- },
- dis: function(toHit) {
- toHit.dieCount = 2;
- toHit.diceMod = '-L';
- },
- bless: function(toHit) {
- toHit.modifier += "+1d4 [Bless]";
- },
- sharp: function(toHit) {
- toHit.modifier += "-5";
- }
- };
- ^^ user.damageModifiers = {
- sword: function(damage) {
- damage.push(
- {
- dieCount: 1,
- dieSize: 8,
- modifier: user.character.dexMod,
- comment: '',
- phrase: 'slashes with his shadow sword',
- 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.'
- }
- )
- },
- light: function(damage) {
- damage.push(
- {
- dieCount: 1,
- dieSize: 6,
- modifier: user.character.dexMod,
- comment: '',
- phrase: 'slashes with his shadow sword',
- 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.'
- }
- )
- },
- off: function(damage) {
- damage.push(
- {
- dieCount: 1,
- dieSize: 6,
- comment: 'Off-Hand',
- phrase: 'stabs with his short sword',
- effect: ''
- }
- )
- },
- hex: function(damage) {
- damage.push(
- {
- dieCount: 1,
- dieSize: 6,
- comment: 'Hex'
- }
- )
- },
- sneak: function(damage) {
- damage.push(
- {
- dieCount: 3,
- dieSize: 6,
- comment: 'Sneak Attack',
- phrase: 'makes a sneak attack'
- }
- )
- },
- dark: function(damage) {
- damage.push(
- {
- modifier: 2,
- comment: '',
- phrase: '',
- effect: ''
- }
- )
- },
- disarm: function(damage) {
- damage.push(
- {
- phrase: 'makes a disarm attack',
- effect: ''
- }
- )
- },
- poison: function(damage) {
- damage.push(
- {
- effect: '**Poison Effect:** Target takes `12d6` poison damage on a failed `DC 19` Constitution Save, or half as much on a success.'
- }
- )
- }
- }
- ^^ user.formatAttack = function(attack, damage, phrase, effect, target) {
- echo("\n");
- if (phrase)
- {
- if (!target) echo("*" + user.character.name + " " + phrase +".*");
- else echo("*" + user.character.name + " " + phrase +" at " + target +".*");
- echo("\n");
- }
- if (attack)
- {
- echo("**To Hit:** " + attack.string);
- echo("\n");
- }
- if (damage)
- {
- echo("**Damage: **" + damage.string);
- }
- if (effect!="")
- {
- echo("\n");
- if (!target) echo(effect);
- else echo(effect.split("Target").join(target));
- }
- }
Add Comment
Please, Sign In to add comment