Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $$ character=user.characters[user.currentCharacter];
- character.attacks = {
- longsword: function(damage,toHit) {
- damage.push(
- {
- dieCount: 1,
- dieSize: 8,
- modifier: character.sheet.strMod,
- comment: 'Slashing',
- phrase: 'slashes with his longssword'
- }
- )
- toHit.dieCount=1;
- toHit.modifier = character.sheet.strMod + character.sheet.proficiencyBonus;
- },
- longbow: function(damage,toHit) {
- damage.push(
- {
- dieCount: 1,
- dieSize: 8,
- modifier:character.sheet.dexMod ,
- comment: 'Piercing',
- phrase: 'fires an arrow'
- }
- )
- toHit.dieCount=1;
- toHit.modifier = character.sheet.dexMod + character.sheet.proficiencyBonus;
- },
- }
- -----------------------------------------------------------------------
- $$ character=user.characters[user.currentCharacter];
- character.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]";
- },
- gwm: function(toHit) {
- toHit.modifier += "-5 [Great Weapon Master]";
- },
- }
- ----------------------------------------------------------------------
- $$ character=user.characters[user.currentCharacter];
- character.damageModifiers = {
- gwm: function(damage) {
- damage.push(
- {
- modifier:10,
- comment: 'Great Weapon Master',
- }
- )
- },
- crit: function(damage) {
- damage.push(
- {
- effect: "*That's an automatic CRIT!*"
- }
- )
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment