Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkadious
Junior Member
 
Join Date: Mar 2021
Location: New Zealand
Posts: 18

Old May 23rd, 2021, 11:22 PM
Hello,

I'm trying to change the damage dice of handwraps to have the damage dice of a large creature.

Currently, Stonefist gloves increases the damage dice on a medium creature's Unarmed Strike to that of a large creature, so I thought that the simplest approach would be to copy the code that does that but make it apply to the Handwraps too.

That doesn't work, and I think its because Handwraps is either

1. Pulling the damage dice size from Unarmed Strikes before the size changes, OR
2. Handwraps is looking for the player's size and then fixing the damage dice based on that size.


Code for Stonefist Gloves
Code:
      doneif (field[gIsEquip].value = 0)

      foreach pick in hero from BaseWep
          if (eachpick.tagexpr[IsWeapon.wUnarmed = 1] <> 0) then
              perform eachpick.assign[Helper.DamageUp]
          endif
      nexteach

      foreach pick in hero from BaseWep
          if (eachpick.tagexpr[IsWeapon.wHandwrap = 1] <> 0) then
              perform eachpick.assign[Helper.DamageUp]
          endif
      nexteach

      ~perform hero.child[wUnarmed].assign[Helper.DamageUp]

      var message as string
      message="+" & round(#tierbase[]/2,0,-1) & " to sunder with {i}stonefist gloves{/i}"

      #situational[hero.child[manSunder],message,field[thingname].text]
Code for Handwraps
Code:
      perform hero.child[wUnarmed].pulltags[wMain.?]
      perform hero.child[wUnarmed].pulltags[wCritMin.?]
      perform hero.child[wUnarmed].pulltags[wCritMult.?]
      perform hero.child[wUnarmed].pulltags[wType.?]

      if (container.ishero = 0) then
        perform container.parent.pushtags[wMain.?]
        perform container.parent.pushtags[wCritMin.?]
        perform container.parent.pushtags[wCritMult.?]
        perform container.parent.pushtags[wType.?]
        container.parent.field[wDamage].value += herofield[tSize].value

        if (tagis[Helper.DamageDown] <> 0) then
          perform container.parent.pushtags[Helper.DamageDown]
        elseif (tagis[Helper.DamageUp] <> 0) then
          perform container.parent.pushtags[Helper.DamageUp]
        endif
      else
        field[wDamage].value += herofield[tSize].value
      endif
Does anyone have any solutions as to how I would fix this issue? Any help is appreciated. Thanks.
Arkadious is offline   #1 Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:10 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.