Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I'm looking into this now.
|
#11 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 |
#12 |
Member
|
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. |
#13 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#14 |
Member
|
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.
|
#15 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#16 |
Member
|
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. |
#17 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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?
|
#18 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 |
#19 |
Member
|
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. |
#20 |
|
|