SetFactionRank

From the Oblivion ConstructionSet Wiki
Revision as of 09:54, 27 June 2006 by imported>Khadir (→‎See also: Added a reference)
Jump to navigation Jump to search

Syntax:

[ActorID.]SetFactionRank FactionID, newRank 

Examples:

SetFactionRank FightersGuild, 0 
CaranyaRef.SetFactionRank MagesGuild, -1

Sets the actor's rank in the specified faction. If the actor is not a member of the faction, adds them to the faction at the new rank.

SetFactionRank FactionID, -1 will remove an actor from the faction.

Notes

The faction rank is set on the actor's base object as well as on the actor (reference) itself. Any actor spawned from the same base object (by a leveled list, by PlaceAtMe and so on) will have this faction, at the same rank, already set. This is not a problem for named characters (of which there is usually just one in the world), but can be a problem for random, unnamed characters or creatures.

See also

Reference

The function SetFactionRank is used in following scripts ...

ArenaAnnouncerScript
ArenaBlueDoorICMonstersScript
ArenaBlueDoorOutsideICScript
ArenaBlueDoorOutsideScript
ArenaGrandChampionMatchScript
ArenaICGrandChampFights
BanditSentryFemaleScript
BanditSentryMaleScript
BolorSavelScript
CaminaldaScript
CaranyaScript
Dark05AssassinatedScript
Dark06WandererScript

Dark08WhodunitScript
Dark18MotherScript
DarkWrathofSithis3Script
E3DremoraLordKvatchScript
FGConversationScript
FGExpulsionScript
FortNikelBattleScript
HelviusCeciaScript
JeeliusScript
JskarScript
MG09Script
MG16MageScript
MG16Script

MG17Script
MQ13Script
MQ15GrottoEntranceScript
MQ16Script
MS10Script
MS29AgarmirScript
MS38Script
MS40PotionEffect
MS94DremoraLordScript
NecroAnchoriteDFScript
TG06ChestScript
VampireScript