From 14a892e627a375334a02381351f139d94ad7ecf3 Mon Sep 17 00:00:00 2001
From: ダカマ Hisui is using ';
+
+const myDialogOptions = {
+ width: 535,
+ height: 115
+};
+
+new Dialog({
+ title : `Improvised Weapon Select`,
+ content : `
+
+
+
+
+
+ `,
+ buttons : {
+ weapon : {
+ icon : "",
+ label : `Equip Weapon`,
+ callback : () => { applyWeaponChanges = true; applyFistChanges = false; }
+ },
+ fists : {
+ icon : "",
+ label : `Equip Hands`,
+ callback : () => { applyWeaponChanges = false; applyFistChanges = true; }
+ },
+ cancel : {
+ icon : "",
+ label : `Cancel`,
+ callback : () => { applyWeaponChanges = false; applyFistChanges = false; }
+ }
+ },
+ default : "weapon",
+ close : html => {
+ if (applyWeaponChanges || applyFistChanges) {
+ if(applyWeaponChanges) {
+ let die = ( html.find('[name="dice"]')[0].value || "d8" );
+ let hand = ( html.find('[name="attackmod"]')[0].value || "1h" );
+ let range = ( html.find('[name="range"]')[0].value || "melee" );
+ let thrown = ( html.find('[name="thrown"]')[0].checked );
+ let mod = ( hand == "2h" && range == "melee" ) ? (his.data.data.abilities.str.mod - his.data.data.abilities.dex.mod) : 0;
+
+ if ( range == "melee" ){
+ his.system.attributes.weapon.melee.dice = die;
+ his.update({'system.attributes.weapon.melee.dice' : die });
+ }
+ if ( range == "ranged" || thrown == true ){
+ his.system.attributes.weapon.ranged.dice = die;
+ his.update({'system.attributes.weapon.ranged.dice' : die });
+ }
+
+ his.system.attributes.attackMod.value = mod;
+
+ his.update({'system.attributes.weapon.melee.dualwield' : (hand == "1h" && range == "melee") ? 'true' : 'false' });
+
+ message += 'a ' + ( hand == "1h" ? 'one-handed ' : 'two-handed ') + ( range == "melee" ? 'melee ' : 'ranged ' ) + ( thrown == true ? '(thrown) ' : '' ) + 'weapon with a ' + die + ' damage die.'
+
+let message = style + 'Weapon Select
\n
Hisui\'s Blue-Eye Boost has '; + +const myDialogOptions = { + width: 435, + height: 115 +}; + +new Dialog({ + title : `Blue-Eye Boost`, + content : ``, + buttons : { + boost : { + icon : "", + label : `Boost`, + callback : () => { applyBoost = true; applyUnboost = false; } + }, + unboost : { + icon : "", + label : `Unboost`, + callback : () => { applyBoost = false; applyUnboost = true; } + }, + cancel : { + icon : "", + label : `Cancel`, + callback : () => { applyBoost = false; applyUnboost = false; } + } + }, + default : "boost", + close : html => { + + rangeddie = his.system.attributes.weapon.ranged.dice; + jabdie = his.system.attributes.weapon.jab.dice; + punchdie = his.system.attributes.weapon.punch.dice; + kickdie = his.system.attributes.weapon.kick.dice; + + rangedvalue = parseInt(rangeddie.slice(1)); + jabvalue = parseInt(jabdie.slice(1)); + punchvalue = parseInt(punchdie.slice(1)); + kickvalue = parseInt(kickdie.slice(1)); + + if (applyBoost || applyUnboost) { + if(applyBoost) { + + his.update({'system.resources.spendable.custom3.current' : rangedvalue}); + + rangedvalue += 2; + jabvalue += 2; + punchvalue += 2; + kickvalue += 2; + + rangeddie = 'd' + rangedvalue; + jabdie = 'd' + jabvalue; + punchdie = 'd' + punchvalue; + kickdie = 'd' + kickvalue; + + his.system.attributes.weapon.ranged.dice = rangeddie; + his.update({'system.attributes.weapon.ranged.dice' : rangeddie }); + + his.system.attributes.weapon.jab.dice = jabdie; + his.update({'system.attributes.weapon.jab.dice' : jabdie }); + + his.system.attributes.weapon.punch.dice = punchdie; + his.update({'system.attributes.weapon.punch.dice' : punchdie }); + + his.system.attributes.weapon.kick.dice = kickdie; + his.update({'system.attributes.weapon.kick.dice' : kickdie }); + + message += 'been activated.
'; + + } else { + + rangedvalue = his.system.resources.spendable.custom3.current == 0 ? rangedvalue : his.system.resources.spendable.custom3.current; + jabvalue = 6; + punchvalue = 8; + kickvalue = 10; + + his.update({'system.resources.spendable.custom3.current' : 0}); + + rangeddie = 'd' + rangedvalue; + jabdie = 'd' + jabvalue; + punchdie = 'd' + punchvalue; + kickdie = 'd' + kickvalue; + + his.system.attributes.weapon.ranged.dice = rangeddie; + his.update({'system.attributes.weapon.ranged.dice' : rangeddie }); + + his.system.attributes.weapon.jab.dice = jabdie; + his.update({'system.attributes.weapon.jab.dice' : jabdie }); + + his.system.attributes.weapon.punch.dice = punchdie; + his.update({'system.attributes.weapon.punch.dice' : punchdie }); + + his.system.attributes.weapon.kick.dice = kickdie; + his.update({'system.attributes.weapon.kick.dice' : kickdie }); + + message += 'expired.'; + } + + ChatMessage.create({ + user: game.user._id, + speaker: ChatMessage.getSpeaker({token: actor}), + content: message + }); + + } + } + }, myDialogOptions).render(true); + +---------------------------------------------------------------------------------------------------- + +Talent +Flurry (7 Deadly Secrets) +Monk +Melee +Once per round, when the escalation die is 3+. +One enemy + +[[d20+@dex.mod+@std+@atk.m.bonus]] vs. AC + +[[@wpn.j.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage. + +If you use Flurry in a battle, you can’t use any other Deadly Secrets talents that battle. + +Ki Power: (A Thousand Palms): You must be engaged with 2 or more enemies to use this power. After making a Flurry attack, you can spend 1 point of ki to make another Flurry attack against a target you have not already attacked with Flurry this turn. + +---------------------------------------------------------------------------------------------------- + +Opening +Badger (Rabid Badger) +Monk +1 +Melee +One enemy + +[[d20+@dex.mod+@std+@atk.m.bonus - 2]] vs. AC + +[[@wpn.j.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+(@lvl)d6+@atk.m.bonus]] damage. + +[[(@tier)d6]] damage. + +Reduce the attack penalty of all attacks in this form to -2. + +------------------------- + +Flow +Badger Badger (Rabid Badger) +Monk +2 +Melee +Two enemies + +[[d20+@dex.mod+@std+@atk.m.bonus - 2]] vs. AC + +[[@wpn.p.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage. + +[[(@tier)d6]] damage. + +Reduce the attack penalty of all attacks in this form to -2. + +------------------------- + +Finishing +Badger Badger Badger (Rabid Badger) +Monk +3 +Melee +3x One enemy +Make two follow-up attacks against the same target. + +[[d20+@dex.mod+@std+@atk.m.bonus - 2]] vs. AC + +[[@wpn.k.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage. + +[[(@tier)d6]] damage. + +If follow-up #1 hits: [[@wpn.j.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@atk.m.bonus]] damage. + +If follow-up #2 hits: [[@wpn.j.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@atk.m.bonus]] damage. + +Reduce the attack penalty of all attacks in this form to -2. + +---------------------------------------------------------------------------------------------------- + +Opening +Embrace the Shadow (Shadow Fist) +Monk +1 +Melee +One enemy + +[[d20+@dex.mod+@std+@atk.m.bonus]] vs. MD + +[[@wpn.j.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage. + +[[@lvl]] damage. You can spend a ki point to gain the cycle bonus. + +Cycle bonus: Gain a bonus to disengage checks equal to your Wisdom modifier ([[@wis.mod]]). + +------------------------- + +Flow +Shadow Curtain (Shadow Fist) +Monk +2 +Melee +One enemy + +[[d20+@dex.mod+@std+@atk.m.bonus]] vs. MD + +[[@wpn.p.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage, and if the next attack against you is a natural odd roll, change the target to this enemy. + +[[@lvl]] damage. + +------------------------- + +Finishing +Shadow Dance (Shadow Fist) +Monk +3 +Melee +One enemy + +[[d20+@dex.mod+@std+@atk.m.bonus]] vs. MD + +[[@wpn.k.dice*(1-@rsc.weapontracker)+(@rsc.weapontracker)*@wpn.m.dice+@str.dmg+@atk.m.bonus]] damage, and you teleport to a nearby location you can see. + +You can spend a ki point to reroll the attack, and add your Wisdom modifier ([[@wis.mod]]) as a bonus to the attack. + +---------------------------------------------------------------------------------------------------- + + + -- cgit v1.2.3