Core+5E - Altering NPC names in the combat tracker
Hi,
I'm looking into altering the NPC names in the combat tracker, as pr. this post: https://www.fantasygrounds.com/forum...combat-tracker
As far as I can tell, the added number to the NPCs name (e.g. Thug 87) is done in the addNPCHelper in the core combat_manager.lua script.
The 5e ruleset then uses the setCustomAddNPC function to add 5e specific stuff to the NPC node, doing this after calling addNPCHelper directly.
If I want to change the name of the NPCs after this, I'm unsure of how to go about it.
I can't really use the setCustomAddNPC, since that would replace the 5e function, correct? And I don't really want to override the 5e function, since that would tie the extension to the 5e ruleset and require an update each time the function changes.
Any suggestion on how to go about this?
Regards,
Tideturner