I created a faction called neutral that's neutral to all other factions and for the player. I would like to reset the reputation to neutral when the player dead, is possible to do like this?
object oPlayer = GetLastPlayerDied();
if (GetStandardFactionReputation(STANDARD_FACTION_COMMONER, oPlayer) <= 10)
{
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 80, oPlayer);
}
if (GetStandardFactionReputation(STANDARD_FACTION_MERCHANT, oPlayer) <= 10)
{
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 80, oPlayer);
}
if (GetStandardFactionReputation(STANDARD_FACTION_DEFENDER, oPlayer) <= 10)
{
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 80, oPlayer);
}