PDA

View Full Version : Adding Traits to NPCs



devinlc
February 20th, 2021, 08:47
When I hit the edit symbol and then the plus symbol to add a trait (or action) to an NPC, it always adds it to the end of that section. Is there any way to alphabetize these entries or at least to insert a new trait between two existing ones?

Zacchaeus
February 20th, 2021, 08:48
Not that I am aware of; unless you add them all yourself in alphabetical order.

devinlc
February 20th, 2021, 08:50
Not that I am aware of; unless you add them all yourself in alphabetical order.

Bummer. I hope they can add that sometime in the future. Would make creating or modifying NPCs much less tedious.

Griogre
February 20th, 2021, 20:33
If it's important to you, the reason they are in added order is the XML elements are numbered. If you want to go into the campaign's db.xml you can just change the numbers to the order you want, ie in the example below to put "Keen Hearing and Sight" first change the id element:


<traits>
<id-00002>
<desc type="string">The thorn can use Stealth while traveling at a normal pace.</desc>
<name type="string">Stealthy Traveler</name>
</id-00002>
<id-00003>
<desc type="string">The thorn has advantage on Wisdom (Perception) checks that rely on hearing or sight.</desc>
<name type="string">Keen Hearing and Sight</name>
</id-00003>
</traits>



to



<traits>
<id-00002>
<desc type="string">The thorn can use Stealth while traveling at a normal pace.</desc>
<name type="string">Stealthy Traveler</name>
</id-00002>
<id-00001>
<desc type="string">The thorn has advantage on Wisdom (Perception) checks that rely on hearing or sight.</desc>
<name type="string">Keen Hearing and Sight</name>
</id-00001>
</traits>



If there was already a <id-0001> which would be normal, you would want to change it to something else you want unique numbers but they don't have to sequential. Notice I did not change the actual text around, FG will do that when the campaign db.xml file is saved.

SilentRuin
February 20th, 2021, 21:01
If it's important to you, the reason they are in added order is the XML elements are numbered. If you want to go into the campaign's db.xml you can just change the numbers to the order you want, ie in the example below to put "Keen Hearing and Sight" first change the id element:


<traits>
<id-00002>
<desc type="string">The thorn can use Stealth while traveling at a normal pace.</desc>
<name type="string">Stealthy Traveler</name>
</id-00002>
<id-00003>
<desc type="string">The thorn has advantage on Wisdom (Perception) checks that rely on hearing or sight.</desc>
<name type="string">Keen Hearing and Sight</name>
</id-00003>
</traits>



to



<traits>
<id-00002>
<desc type="string">The thorn can use Stealth while traveling at a normal pace.</desc>
<name type="string">Stealthy Traveler</name>
</id-00002>
<id-00001>
<desc type="string">The thorn has advantage on Wisdom (Perception) checks that rely on hearing or sight.</desc>
<name type="string">Keen Hearing and Sight</name>
</id-00001>
</traits>



If there was already a <id-0001> which would be normal, you would want to change it to something else you want unique numbers but they don't have to sequential. Notice I did not change the actual text around, FG will do that when the campaign db.xml file is saved.

Also FYI - that is very dangerous editing the DB.xml if you don't know what your doing and are not VERY careful. Make a backup of it before you try - ALWAYS make a back up of your campaign directory regardless in fact.