Background for Skyrim SE
Member of the Actor script
intfunctionGetHighestRelationshipRank()Native

Description

Wiki Description

Gets the highest relationship rank this actor has.

Documentation Comment

Gets this actor's highest relationship rank - returns 0 if they have no relationships


Caveats

CK Wiki - Notes

This function does not take into account changes made during run time. Values from design time show correctly.

 actor akRef = Someone
                                                                ; Debug.MessageBox results
 string A = akRef.GetHighestRelationshipRank() + "\n"           ; 0
 string B = PlayerRef.GetHighestRelationshipRank() + "\n"       ; 3
 string C = akRef.GetRelationshipRank(PlayerRef) + "\n"         ; 0
 string D = PlayerRef.GetRelationshipRank(akRef)  + "\n"        ; 0
 
 akRef.SetRelationshipRank(PlayerRef, 4)
 PlayerRef.SetRelationshipRank(akRef, 4)
 
 string E = akRef.GetHighestRelationshipRank() + "\n"           ; 0 <- should be 4
 string F = PlayerRef.GetHighestRelationshipRank() + "\n"       ; 3 <- should be 4
 string G = akRef.GetRelationshipRank(PlayerRef) + "\n"         ; 4
 string H = PlayerRef.GetRelationshipRank(akRef)   + "\n"       ; 4
 
 Debug.MessageBox(A+B+C+D+"*\n"+E+F+G+H)

Examples

; Get Alice's highest relationship rank
int bestRelationship = Alice.GetHighestRelationshipRank()

Auto-Generated Example

int returnedValue = myActor__toCallFunctionOn.GetHighestRelationshipRank()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.