This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
building:scripts:api:custom_factions_default_factions [2019/03/26 21:02] murdrkitten |
building:scripts:api:custom_factions_default_factions [2022/12/05 12:55] spankitty [GetFactionId / SetFactionId] |
||
---|---|---|---|
Line 4: | Line 4: | ||
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 with the following functions : | ||
+ | |||
+ | <code>void AddCustomFactionToCreature(object oCreature, int nCustomFactionId);</code> | ||
+ | <code>void RemoveCustomFactionFromCreature(object oCreature, int nCustomFactionId);</code> | ||
---- | ---- | ||
Line 11: | Line 16: | ||
This will return the Faction ID of oObject. | This will return the Faction ID of oObject. | ||
- | **Default Factions:** | + | **Default Factions:**\\ |
- | 1 = Hostile | + | 1 = Hostile\\ |
- | 2 = Commoner | + | 2 = Commoner\\ |
- | 3 = Merchant | + | 3 = Merchant\\ |
4 = Defender | 4 = Defender | ||