Log in

View Full Version : [Extension] NPC Region



Mike Serfass
January 15th, 2025, 23:33
I created a small extension that adds region to NPCs.
Region can be filtered on, and there's a region group view.
The By Type and Details list views have a region column added.
This extension is not locked or vaulted. You're free to open it, adjust it, add more fields, whatever you like.
I added comments to the code to help you figure out how it works.
If you do alter it, create a copy with a different name so your hard work is not overwritten when this extension is updated.

Here are screenshots.
63234
63235
63236

This is now available in The Forge.
NPC Region (https://forge.fantasygrounds.com/shop/items/2036/view)

Arsilon
January 17th, 2025, 21:38
Nice! Does this work on vehicles too by chance? An extra field might come in handy for things like Class or whatnot.

Or perhaps that becomes my next tinkering project to teach myself more about how to work with the backend once I'm done with this current conversion.

Mike Serfass
January 18th, 2025, 15:57
No additions to vehicle, but I think this extension gives enough example that you could do the same with vehicles. Or items, powers, etc.
In my SF setting, I have psionic disciplines. I add discipline and base power fields using the same pattern as you find in this extension.

Doswelk
January 19th, 2025, 20:29
Vehicles can as many extra custom fields you want*, though they will not be searchable.

* - it should be noted I have never needed more that 3 extra custom fields so they may be a real limit

calliban
April 10th, 2026, 19:01
Do I need to fill in the regions myself or can I import it from somewhere? I say this as I am not sure the field exists in most SW bestiaries.

Mike Serfass
April 10th, 2026, 19:17
You'll have to fill it in yourself.