User Tools

Site Tools


building:scripts:api:custom_factions_default_factions
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
building:scripts:api:custom_factions_default_factions [2019/03/24 17:39]
Mavrixio created
building:scripts:api:custom_factions_default_factions [2023/06/15 08:23]
spankitty ↷ Page name changed from building:scripts:api:getsetfactionid to building:scripts:api:custom_factions_default_factions
Line 1: Line 1:
 ====== GetFactionId / SetFactionId ====== ====== GetFactionId / SetFactionId ======
  
-<​code>​ +Sinfar'​s systems support the manipulation of factionsincluding custom ones. Each faction is given a unique ID that can then be given different reputations with other factions.
-int GetFactionId(object oObject); +
-void SetFactionId(object oObjectint nFaction);​ +
-</​code>​+
  
 +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 : 
 +
 +<​code>​void AddCustomFactionToCreature(object oCreature, int nCustomFactionId);</​code>​
 +<​code>​void RemoveCustomFactionFromCreature(object oCreature, int nCustomFactionId);</​code>​
 +
 +----
 +===== Functions =====
 +
 +<​code>​int GetFactionId(object oObject);</​code>​
 +This will return the Faction ID of oObject.
 +
 +**Default Factions:​**\\
 +1 = Hostile\\
 +2 = Commoner\\
 +3 = Merchant\\
 +4 = Defender
 +
 +
 +
 +<​code>​void SetFactionId(object oObject, int nFaction);</​code>​
 +This will set oObject'​s Faction ID to nFaction.
 +
 + --- //​[[zoeyalex94@gmail.com|murdrkitten]] 2019/03/26 16:56//
authpdo: Statement did not return 'mail' attribute [auth.php:522]
building/scripts/api/custom_factions_default_factions.txt · Last modified: 2023/06/15 08:34 by spankitty

phpBB Appliance - Powered by TurnKey Linux