PDA

View Full Version : Adding Traits/Actions to NPCs



rocketvaultgames
March 21st, 2024, 04:55
When clicking the "Add Item" button to add a trait/action, etc. to an unlocked NPC record, what determines where the new item will be inserted?

It doesn't seem controllable, but it definitely isn't always at the bottom of the section... Is there a way to force it to be on the top/bottom/after last item clicked?

It would be great to know how this works or have a way to quickly (and unobtrusively) be able to reorder these.

superteddy57
March 21st, 2024, 06:02
You don't mention the ruleset as each may have a slight variation on this. Most are not ordered and just add a blank entry to the end. I have seen others sort the entries based on the name of the trait in alphanumerical order. In the code you can specify the filter and order by either using the XML tags or using LUA script code to accomplish this. You can see some examples in 5e, 3.5e, and CoreRPG.

rocketvaultgames
March 21st, 2024, 06:10
You don't mention the ruleset as each may have a slight variation on this. Most are not ordered and just add a blank entry to the end. I have seen others sort the entries based on the name of the trait in alphanumerical order. In the code you can specify the filter and order by either using the XML tags or using LUA script code to accomplish this. You can see some examples in 5e, 3.5e, and CoreRPG.

So sorry.... D&D 5e...

I'm not doing anything with the code, just clicking the "Add Item" plus sign button. Usually (80%+?) the new blank item will be at the end, but sometimes it's in the middle somewhere. I would like to know how it behaves so when I add new items, I can put them where I want, rather than needing to reorder them manually (which is a bit tedious/time-consuming, especially with spellcasters).

I would expect it to just always be at the end, but it's not... which leads me to believe it might be possible to insert where I want instead of at the end... I just can't figure out how FGU chooses where the new blank item will go.

Sincere thanks for your time.

superteddy57
March 21st, 2024, 06:12
Well in 5e there is a order number tracked and I'm thinking the behavior of removing an action causes it to fill in the empty number slot before continuing back at the end of the list. This is what allows the reorder button to work and sort them after dropping the entry. I believe that is what you are seeing.

superteddy57
March 21st, 2024, 06:13
This order number is not shown and is hidden away in the code.

rocketvaultgames
March 21st, 2024, 14:23
OK. Thanks for the reply. Tiny "Move Up" and "Move Down" arrows like in Advanced Story records could be useful in NPC stat blocks.

superteddy57
March 21st, 2024, 14:30
Maybe, something to consider for the next expansion in that area

claedawg
March 21st, 2024, 16:19
On the Actions tab, when you create a new "section" that section will have it's own add button if I remember correctly. Not able to look at it right now so it may have changed with the update and I did not notice.

EDIT: I completely overlooked that are referring to NPCS. There is an extension that adds an Actions tab to NPCs (Kit'N"Kabootle???). I think the creator of that extension is still working on updates for his stuff so it may not work. I mostly use it for when PCs have NPC sidekicks, followers, etc. that they control so it's more like using a normal character sheet.

LordEntrails
March 21st, 2024, 16:22
FYI, the 5E NPC Maker extension allows you to change the order number of actions. But as said, normally the order number is hidden.

superteddy57
March 21st, 2024, 16:25
I'm still a huge fan of the new drag and drop windowlist entry and want to see it in more areas. Seems like a huge success for those like me with a bit of OCD about things appearing in a certain order.

rocketvaultgames
March 21st, 2024, 16:36
FYI, the 5E NPC Maker extension allows you to change the order number of actions. But as said, normally the order number is hidden.

Somehow, I did not realize this existed... I'll have to take it for a spin. Thanks!

rocketvaultgames
March 21st, 2024, 16:39
I'm still a huge fan of the new drag and drop windowlist entry and want to see it in more areas. Seems like a huge success for those like me with a bit of OCD about things appearing in a certain order.

Sorry, but I'm not sure what that is. Could you explain or point me to where I can learn about this?

superteddy57
March 21st, 2024, 16:47
The double arrow for the actions on the actions tab allows you to drag and drop them in the order your wish to have them in.

60269

rocketvaultgames
March 21st, 2024, 16:51
The double arrow for the actions on the actions tab allows you to drag and drop them in the order your wish to have them in.

60269

That is actually pretty awesome and I didn't know about it... I'm actually talking about NPCs though.

LordEntrails
March 21st, 2024, 16:53
That is actually pretty awesome and I didn't know about it... I'm actually talking about NPCs though.
It hasn't been implemented in NPCs yet. I suspect Teddy was indicating that he too was hoping it would be moved into NPCs in the future. But not sure, and I certainly don't know if it's "on the list"

superteddy57
March 21st, 2024, 16:56
It hasn't been implemented in NPCs yet. I suspect Teddy was indicating that he too was hoping it would be moved into NPCs in the future. But not sure, and I certainly don't know if it's "on the list"

This was the intention of my remark of seeing it in more windowlists that might benefit from reorganization.

LordEntrails
March 21st, 2024, 16:58
I said Teddy, but yea, it's Dominic! I get confused with usernames sometimes :)

superteddy57
March 21st, 2024, 17:07
Both work and I answer to both in this community ;)

claedawg
March 21st, 2024, 18:08
The double arrow for the actions on the actions tab allows you to drag and drop them in the order your wish to have them in.

60269

Did that get added with this recent update? I don't ever remember seeing that before. This is awesome!!!

superteddy57
March 21st, 2024, 18:30
Been in there since the update to the combat tracker/actions tab. So quite some time it's been there. You need to just click on the edit button in the bottom right to have them appear