Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 26th, 2012, 09:58 AM
I'm looking into this now.
Aaron is offline   #11 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 26th, 2012, 10:26 AM
I've confirmed that this is indeed a bug in the system rather than something specific to your files, it also is affected crossbows for example. Until an update, I recommend you add this script to your pistol weapons and any other weapons you make that has no Str modifier to damage.

Post-Attr 10000
~ Something weird is going on where weapons equipped only in the off hand ignore the maximum/minimum strength limits.... we are going to compensate for this bug in the system here.
doneif (field[gIsEquip].value <> 0)

var offset as number
offset = round(hero.child[aSTR].field[aModBonus].value/2, 0, -1)

if (field[wIs2nd].value <> 0) then
field[wDamBonus].value -= offset
endif
Aaron is offline   #12 Reply With Quote
Rev Haus 235
Member
 
Join Date: May 2012
Location: Lisle, IL
Posts: 91
Send a message via AIM to Rev Haus 235 Send a message via Yahoo to Rev Haus 235

Old July 1st, 2012, 02:54 PM
Well, either I'm doing something wrong, or that script doesn't actually solve the problem on the character. I added the script to the one gun in particular, and it is still doing that. I even went so far as to remove it from the character, and add a new one, but it keeps doing it.
Thanks for your help though.
Rev Haus 235 is offline   #13 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 3rd, 2012, 03:05 PM
I'm sorry, it seemed to be working when I tested it. I can take another look if necessary, but perhaps first you should try adjusting the priority on the script, that'd be my first guess where something went wrong.
Aaron is offline   #14 Reply With Quote
Rev Haus 235
Member
 
Join Date: May 2012
Location: Lisle, IL
Posts: 91
Send a message via AIM to Rev Haus 235 Send a message via Yahoo to Rev Haus 235

Old July 3rd, 2012, 03:10 PM
I tried adjusting the "Post-Attribute" part of the priority several times, in both directions (up and down the list of options), but nothing worked. Maybe the number needs to be changed.
Rev Haus 235 is offline   #15 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 3rd, 2012, 03:55 PM
Alright, I'll take another look at the file you sent me, confirm a change that works for me, then send that file back to you so you can test it out and verify it works for you.
Aaron is offline   #16 Reply With Quote
Rev Haus 235
Member
 
Join Date: May 2012
Location: Lisle, IL
Posts: 91
Send a message via AIM to Rev Haus 235 Send a message via Yahoo to Rev Haus 235

Old February 2nd, 2013, 10:45 AM
Did we ever find an answer for this thread?
I know you thought that we fixed the problem, but in reading the thread the ball seems to have landed in your court and I haven't heard back.

The problem still remains. You're help is greatly appreciated.
Rev Haus 235 is offline   #17 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 2nd, 2013, 12:07 PM
Sorry this slipped between the cracks, but I'm afraid I don't have access to the file in question anymore (computer changed). Can you resend it to my company e-mail, which is my forum name at wolflair dot com?
Aaron is offline   #18 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 6th, 2013, 11:36 AM
Alright, I've sent a user file back to you with a fix for this specific weapon. You should be able to copy the script over to other gun weapons you plan to use off handed.

For those who are curious, the issue was that the eval script wasn't manipulating it's parent when part of a custom/magic weapon. Here's the final code:

Post Attribute 10000
Code:
~ Something weird is going on where weapons equipped only in the off hand ignore the maximum/minimum strength limits.... we are going to compensate for this bug in the system here.
doneif (field[gIsEquip].value <> 0)

var offset as number
offset = round(hero.child[aSTR].field[aModBonus].value/2, 0, -1)

if (container.ishero = 0) then
  doneif (parent.field[gIsEquip].value <> 0)

  if (parent.field[wIs2nd].value <> 0) then
    parent.field[wDamBonus].value -= offset
    endif
  endif

if (field[wIs2nd].value <> 0) then
  field[wDamBonus].value -= offset
  endif
Aaron is offline   #19 Reply With Quote
Rev Haus 235
Member
 
Join Date: May 2012
Location: Lisle, IL
Posts: 91
Send a message via AIM to Rev Haus 235 Send a message via Yahoo to Rev Haus 235

Old February 6th, 2013, 04:27 PM
Thank you for your help. I will check this out and make sure that it works and then get back to you.

EDIT: Your script seems to work perfectly. Thank you so much for your help.

Last edited by Rev Haus 235; February 6th, 2013 at 07:20 PM. Reason: Update response.
Rev Haus 235 is offline   #20 Reply With Quote
Reply


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 09:38 AM.


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