Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Adding a form to Serithtial (http://forums.wolflair.com/showthread.php?t=65451)

wdmartin February 24th, 2021 09:45 PM

Adding a form to Serithtial
 
2 Attachment(s)
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:

http://forums.wolflair.com/attachmen...1&d=1614235155

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:

http://forums.wolflair.com/attachmen...1&d=1614235160

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?

agermosh February 26th, 2021 09:55 PM

This item uses custom usrArray menu for weapon type choice.
it is not a tag-based choice - just harcoded array of possible values.
It looks like editor doesn't provide you way to modify it, so,
open your user file with any editor, find menu definition:

<arrayval field="usrArray" index="7" value="Short sword"/>

and add your Showel there:

<arrayval field="usrArray" index="8" value="Showel"/>

Don't forget to make Gizmo bootstrap conditional:

<bootstrap thing="wShovel">
<containerreq phase="First" priority="450">fieldval:usrIndex = 8</containerreq>
</bootstrap>

wdmartin February 28th, 2021 09: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!


All times are GMT -8. The time now is 03:36 PM.

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