SetStandardFactionReputation(int, int, object)

Set a creature's faction standing within a given standard faction group.

void SetStandardFactionReputation(
    int nStandardFaction,
    int nNewReputation,
    object oCreature = OBJECT_SELF
);

Parameters

nStandardFaction

STANDARD_FACTION_*

nNewReputation

New faction standing. Must be a value between 0 and 100. (inclusive)

oCreature

Target creature to set faction standing. (Default: OBJECT_SELF)


Description

Sets the current faction standing of oCreature within the standard faction group nStandardFaction to the new faction standing indicated by nNewReputation. The parameter nNewReputation must be a number between 0 and 100.



Remarks

The "cut-off points" are as follows:

90-100: Friendly (defends when attacked by others).
11-89: Neutral (won't attack, but won't help either).
0-10: Hostile (will attack on sight).


Version

1.61

See Also

functions: ClearAllFactionMembers | ClearPersonalReputation | GetStandardFactionReputation
categories: Reputation/Faction Functions
constants: STANDARD_FACTION_* Constants


 author: Daniel Beckman, editor: Lilac Soul