User Tools

Site Tools


building:scripts:api:custom_factions_default_factions

This is an old revision of the document!


GetFactionId / SetFactionId

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.


Functions

int GetFactionId(object oObject);

This will return the Faction ID of oObject.

Default Factions: 1 = Hostile 2 = Commoner 3 = Merchant 4 = Defender

void SetFactionId(object oObject, int nFaction);

This will set oObject's Faction ID to nFaction.

building/scripts/api/custom_factions_default_factions.1553633801.txt.gz · Last modified: 2019/03/26 20:56 by murdrkitten

phpBB Appliance - Powered by TurnKey Linux