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 16th, 2010, 05:32 PM
was making a fighter character as an NPC today and attempted to use a medium greatsword (equivalent to a large longsword) along with a heavy steel shield while using the monkey grip feat.

according to the mechnaics of the feat, it should allow any character using the feat to wield a 2-handed weapon of the same size category one handed, or a weapon 1-size category larger in both hands.

I also note that a weapon that is a larger size category then the hero is unselectable with or without the feat.


after digging to the feat, it appears there is no script to modify the weapons or the character abilities to enable the selections.

was this because of inability for the script to modify the needed stuff or some other reason? just kinda curious, as its a feat I use often and would like to get working if possible.
Bluephoenix is offline   #1 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 17th, 2010, 08:17 PM
Took some time to work on this today, so far I've made a little headway, trying to figure out what tag/pick governs the type of the weapon (2-hander/1-hander) so that I can use a foreach to adjust 2handed weapons that don't have the "always 2 hands" option active to 1 handers when the feat is applied.

I had hoped the improved critical feat would have been close enough to borrow parts of its eval script, but it forwards an element I can't find the source of instead of having anything I can repurpose.

the second issue of allowing the use of weapons 1 size cat larger is much more complicated, and I can't find any workable starting point for that yet.

TL;DR: looking for the 1-hand/2-hand tag on weapon picks to use a script to adjust it.
Bluephoenix is offline   #2 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 18th, 2010, 04:40 PM
well, I found the weapon type tag for handedness, though it is resisting all attempts to modify it while the item is picked on the hero.
Code:
 foreach pick in hero where "wClass.2"

  each.field[wClass].value = 1
  nexteach

by all rights that should work, especially in final phase, but no matter what I do to it; it never seems to work.

I'm stumped.
Bluephoenix is offline   #3 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 18th, 2010, 05:16 PM
Since it is a tag, you should modify the tag, rather than the field... try:

perform delete[wClass.2]
perform assign[wClass.1]
Lawful_g is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 18th, 2010, 05:21 PM
BTW, Lawful_g, there's been a new addition to HL's scripting language that allows your code to be simplified:

Code:
 
perform tagreplace[wClass.2,wClass.1]
Mathias is offline   #5 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 18th, 2010, 05:22 PM
giving that a try it now throws an error:

syntax error in eval script on line 2: tag wClass.2 not defined

previously it accepted the wClass.2 tag on line 1 for searching, now it doesn't recognize it?

also tried mathias' version of the statement, same error.
Bluephoenix is offline   #6 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 18th, 2010, 05:27 PM
Did you include the each? As in:

perform each.delete[Whatever]
Lawful_g is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 18th, 2010, 05:31 PM
The text in the search term isn't tested for correctness, it's just searched on.

Assignments and Deletions are checked to make sure they match the list of allowed tags.

Code:
 
foreach pick in hero from BaseWep where "wClass.TwoHanded"
  perform eachpick.tagreplace[wClass.TwoHanded,wClass.OneHanded]
  nexteach
if you're running your script before Pre-Levels/5000, or:

Code:
 
foreach pick in hero from BaseWep
  if (eachpick.field[wClass].value = 2) then
    eachpick.field[wClass].value = 1
    endif
  nexteach
If you're running your script after Pre-Levels/5000.

At Pre-Levels/5000, the tags that are defined in the editor are converted into a numerical field, and only the field is manipulated after that.
Mathias is offline   #8 Reply With Quote
Bluephoenix
Member
 
Join Date: Nov 2010
Posts: 70

Old November 18th, 2010, 05:36 PM
current code that is throwing the error:

Code:
Final phase, priority 90000
 foreach pick in hero where "wClass.2"
       perform each.tagreplace[wClass.2,wClass.1]
  nexteach
looking back through the selection tag/feild debug lists, I found that the number is the value field, however I get syntax errors when I use the feild # (2,1,0) or the listed tag (Two-Handed, One-handed, Light)

for the class information I simply looked at the longsword, greatsword and shortsword. when done the script should allow the greatsword to be wielded in either hand as a 1-handed weapon.
Bluephoenix is offline   #9 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old November 18th, 2010, 05:39 PM
Try Mathias' script:

foreach pick in hero from BaseWep where "wClass.TwoHanded"
perform eachpick.tagreplace[wClass.TwoHanded,wClass.OneHanded]
nexteach

and move the priority earlier, like he said, to before Pre-Levels 5000
Lawful_g is offline   #10 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 07:56 PM.


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