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
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 18th, 2010, 05:41 PM
the second script from mathias does work, however when I go to equip the greatsword in 1 hand on the character, it automatically checks the second hand box regardless.

is there another field or tag that needs to be modified to prevent this behavior? the only tags dealing with how a weapon can be wielded that I could find in the selection tag/field lists was the wClass tag

edit: after trying both versions of the script only the second one at final-phase 90000 actually creates the desires change, still has the dual selection problem.
Bluephoenix is offline   #11 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 18th, 2010, 05:45 PM
Can you just uncheck the 2nd hand box?
Lawful_g is offline   #12 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 18th, 2010, 05:54 PM
Quote:
Originally Posted by Lawful_g View Post
Can you just uncheck the 2nd hand box?
apologies, I should have been more clear on that. I tried, it doesn't even register I'm trying to, only unchecks both if I try on the 1st hand

after digging through the field list for violations after trying to equip both it and a shield, there is a wIs2nd field for the greatsword that is the likely culprit, however after adding an each field modifier I get the following error:

Syntax error in 'eval' script for Thing 'fMonkGrip' (Eval Script '#1') on line 4
-> Only derived fields can generally be modified via scripts (field 'wIs2nd')

the field is a simple 0 or 1 switch

current code (for reference)
Code:
final phase, priority 90000
foreach pick in hero from BaseWep
  if (eachpick.field[wClass].value = 2) then
    eachpick.field[wClass].value = 1
    eachpick.field[wIs2nd].value = 0
    endif
  nexteach

Last edited by Bluephoenix; November 18th, 2010 at 06:06 PM.
Bluephoenix is offline   #13 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 20th, 2010, 08:01 AM
tried working with the script some more yesterday and today, can't seem to find any method to modify the wIs2nd field.

going to consign this to the impossible bin unless anyone else has any ideas.
Bluephoenix is offline   #14 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 20th, 2010, 11:22 AM
Use the first script I gave you earlier, and make sure you're running it before Pre-Levels/5000 (say Pre-Levels/4000). Final/90000 is too late to do anything but alter the text.
Mathias is offline   #15 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 20th, 2010, 12:18 PM
Disregard last, I was messing something up on my end. got it working. (I feel like a complete idiot now )

Last edited by Bluephoenix; November 20th, 2010 at 12:26 PM.
Bluephoenix is offline   #16 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old November 29th, 2010, 04:29 AM
Would you mind posting it? So that it may be added to the community CWar file?
risner is offline   #17 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 29th, 2010, 09:50 AM
will do with the next batch I send to chemosh.
Bluephoenix is offline   #18 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 06:00 AM.


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