Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
wdmartin
Senior Member
 
Join Date: May 2013
Posts: 209

Old February 24th, 2021, 10:45 PM
I need to adjust the code for the magic weapon Serithtial so that it can assume the form of my PC's favored weapon.

I copied the thing, renamed it, and added a couple new bootstraps inside the magic weapon gizmo:



The improvised weapon power works fine, though it triggers an error specifying that magic weapons can't be improvised. This one can, because GM fiat.

The only problem is that "shovel" is not appearing in the selector:



The thing wShovel exists and has been working fine for the whole campaign. I set a condition on it (First, 450, "fieldval:usrIndex = 8"). That's identical to all the other forms, except I incremented the usrIndex value by one.

What else I need to do in order to make this form show up in the selector?
Attached Images
File Type: png sc1.png (89.2 KB, 42 views)
File Type: png sc2.png (92.5 KB, 42 views)
wdmartin is offline   #1 Reply With Quote
wdmartin
Senior Member
 
Join Date: May 2013
Posts: 209

Old February 28th, 2021, 10:18 PM
I figured it out.

The bootstrap was just fine, but the options that display in the UI are set up inside the usrArray. I have no idea how you're supposed to edit that in the HL editor -- I figured it out by opening up the .user file in a text editor and reading the XML. Once I added this line:

Code:
<arrayval field="usrArray" index="8" value="Shovel"/>
... the option appeared in the drop down and worked. I was able to change the form to a shovel. I also set up the Improvised weapon quality to require the same selection on the drop-down, so it only counts as improvised when it's a shovel.

Finally, the magic sauce to get rid of the error saying that improvised weapons can't be magical/masterwork, I added an eval script on the item that runs at First/10000 and says this:

Code:
perform hero.assign[Custom.MagImprov]
That's cribbed from the Monk of the Empty Hand archetype courtesy of an old post by Matthias, and it makes me very happy that that error won't be blaring in my face any longer.

So it all works now. Yay!

Last edited by wdmartin; March 1st, 2021 at 10:14 PM. Reason: correcting typos
wdmartin is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

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 10:07 AM.


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