This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
building:scripts:api:custom_factions_default_factions [2023/06/15 08:29] spankitty |
building:scripts:api:custom_factions_default_factions [2023/06/15 08:34] spankitty [Custom Factions] |
||
---|---|---|---|
Line 8: | Line 8: | ||
See: https://nwn.sinfar.net/cstmfac_manageform.php | See: https://nwn.sinfar.net/cstmfac_manageform.php | ||
- | You can attribute or remove the custom faction ID's to your erf NPC or faction PC with the following functions : | + | You can set the faction variable directly on the NPC with : |
+ | |||
+ | <code>AI_FACTION_ID_XXXXX (integer) XXXXX</code> | ||
+ | |||
+ | You can attribute or remove the custom faction ID's by script to your erf NPC or faction PC with the following functions : | ||
<code>void AddCustomFactionToCreature(object oCreature, int nCustomFactionId);</code> | <code>void AddCustomFactionToCreature(object oCreature, int nCustomFactionId);</code> |