TheIronGolem
Well-known member
I need to implement a feat (Katana Expertise, from the Path of War Expanded playtest) that increases the damage of a weapon by one die size. Note that this is NOT the same thing as treating the weapon as being one size category larger, which is what the Helper.DamageUp tag does. Incrementing the wDamage field seems to produce similar results, so that's not a solution either.
For example, a d8 weapon with Helper.DamageUp would become 2d6 as per the rules, whereas I need to make it 1d10 instead.
I can do this by grabbing the current wMain.? tag from the weapon, and then doing a series of if-else statements like so:
But that's pretty inelegant in my opinion, and will probably fail once the user starts from a damage die I failed to account for (fairly likely, given various ways to change your size and whatnot).
So is there any other way to more gracefully increase the damage die size of a weapon? Failing that, is there a list of wMain tags somewhere I can use for the if-else method above?
For example, a d8 weapon with Helper.DamageUp would become 2d6 as per the rules, whereas I need to make it 1d10 instead.
I can do this by grabbing the current wMain.? tag from the weapon, and then doing a series of if-else statements like so:
Code:
foreach pick in hero from BaseWep where "IsWeapon.wKatana"
~ First, mark the weapon as finessable
perform eachpick.assign[Helper.Finesse]
~ Next, get the current damage die of the weapon
perform eachpick.pulltags[wMain.?]
perform eachpick.delete[wMain.?]
~ Whichever damage die we have, assign the next-larger die
if (tagis[wMain.1d4_4] = 1) then
perform eachpick.assign[wMain.1d6_5]
elseif (tagis[wMain.1d6_5] = 1) then
perform eachpick.assign[wMain.1d8_6]
elseif (tagis[wMain.1d8_6] = 1) then
perform eachpick.assign[wMain.1d10_304]
elseif (tagis[wMain.1d10_304] = 1) then
perform eachpick.assign[wMain.1d12_404]
endif
~etc...
nexteach
But that's pretty inelegant in my opinion, and will probably fail once the user starts from a damage die I failed to account for (fairly likely, given various ways to change your size and whatnot).
So is there any other way to more gracefully increase the damage die size of a weapon? Failing that, is there a list of wMain tags somewhere I can use for the if-else method above?