Long time modder (other games), first time poster.
I would like to add an ancillary (retainer) but I cannot find all the related files. Using pack manager, I open data.pack and look into export_ancillaries.lua. This contains:
Code:
--[[ s2anc_ainu_servant_trigger ]]--
events.CharacterRankUpNeedsAncillary[#events.CharacterRankUpNeedsAncillary+1] =
function (context)
if conditions.CharacterType("geisha", context) and not conditions.CharacterInHomeRegion(context) and conditions.FactionwideAncillaryTypeExists("s2anc_ainu_servant", context) == false then
if conditions.DateInRange(1500, 1900, context) then
effect.ancillary("s2anc_ainu_servant", 50, context)
end
return true
end
return false
end
This defines one ancillary, s2anc_ainu_servant. But, where is the (a) text that appears for the ancillary when the level-up dialog appears, (b) image that appears, (c) code which shows the in-game effect of this ancillary? There are 18K files to sort through in data.pack alone; none of the filenames appear to relate to "ancillary" or "retainer" except for this one.
EDIT: found (a) in local_en.pack, ancillaries.loc. It seems each ancillary has a tag name/value pair "ancillaries_onscreen_name_s2anc_ainu_servant" and a tag pair "ancillaries_colour_text_s2anc_ainu_servant". Using PFM on the db\ancillaries table shows the icon ID reference which is a pointer to (b) with more to investigate. Another table ancillary_to_effects gives "line_of_sight_mod" for the effect, but then I can't track any further. Table "effects" just gives some icon information.
How do I trace down to the actual effect of an ancillary?