×
Меню
Индекс

MSFD Determining the PC's Faction status

 
[no fix] GetPCRank, FactionID_enum          (returns short)
 
     if ( GetPCRank "Telvanni" == 9 )
 
Returns PC’s rank in faction. This will default to the Actor’s faction if FactionID is not defined. Returns 0-9 and -1 if not a member.
 
Sample Script: An Actor/object with the following script is only enabled if the PC is not a member of House Redoran:
Begin bandenIndarysScript
if ( CellChanged == 0 )
     Return
endif
 
if ( GetPCRank "Redoran" == -1 )
     Enable
else
     Disable
endif
End
 
 
[no fix?] GetPCFacRep, [FactionID]     (returns short?)
 
This doesn't work in script (causes errors and/or crashes when used).
 
SameFaction          (returns Boolean/short)    
 
Returns 1 if PC is in the faction of the calling object (NPC).
 
PCExpelled ["factionID"]     (returns Boolean/short)    
    
Returns 1 if PC has been expelled once from calling object's (NPC) Faction, or a faction can be defined to get a specific one. For an example script look below, PCClearExpelled function.