Member
Join Date: Nov 2010
Posts: 70
|
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. |
#11 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Can you just uncheck the 2nd hand box?
|
#12 |
Member
Join Date: Nov 2010
Posts: 70
|
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. |
#13 |
Member
Join Date: Nov 2010
Posts: 70
|
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. |
#14 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.
|
#15 |
Member
Join Date: Nov 2010
Posts: 70
|
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. |
#16 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
Would you mind posting it? So that it may be added to the community CWar file?
|
#17 |
Member
Join Date: Nov 2010
Posts: 70
|
will do with the next batch I send to chemosh.
|
#18 |
|
|