User Tools

Site Tools


building:scripts:api:getsetfactionid

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
building:scripts:api:getsetfactionid [2019/03/26 16:56]
murdrkitten
building:scripts:api:getsetfactionid [2019/03/26 17:02]
murdrkitten
Line 2: Line 2:
  
 Sinfar'​s systems support the manipulation of factions, including custom ones. Each faction is given a unique ID that can then be given different reputations with other factions. Sinfar'​s systems support the manipulation of factions, including custom ones. Each faction is given a unique ID that can then be given different reputations with other factions.
 +
 +See: https://​nwn.sinfar.net/​cstmfac_manageform.php
  
 ---- ----
- +===== Functions ​=====
-Functions+
  
 <​code>​int GetFactionId(object oObject);</​code>​ <​code>​int GetFactionId(object oObject);</​code>​
 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
 +
 +
  
 <​code>​void SetFactionId(object oObject, int nFaction);</​code>​ <​code>​void SetFactionId(object oObject, int nFaction);</​code>​
 This will set oObject'​s Faction ID to nFaction. This will set oObject'​s Faction ID to nFaction.
  
 + --- //​[[zoeyalex94@gmail.com|murdrkitten]] 2019/03/26 16:56//
building/scripts/api/getsetfactionid.txt · Last modified: 2019/03/26 17:03 by murdrkitten