Difference between revisions of "GetHighestRelationshipRank - Actor"
Jump to navigation
Jump to search
imported>Dooge |
imported>Dooge m (→Comments) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 39: | Line 39: | ||
*[[SetRelationshipRank - Actor]] | *[[SetRelationshipRank - Actor]] | ||
== | == Notes == | ||
This function does not take into account changes made during run time. Values from design time show correctly. | This function does not take into account changes made during run time. Values from design time show correctly. | ||
Line 45: | Line 45: | ||
; Debug.MessageBox results | ; Debug.MessageBox results | ||
string A = akRef.GetHighestRelationshipRank() + "\n" ; 0 | string A = akRef.GetHighestRelationshipRank() + "\n" ; 0 | ||
string B = | string B = PlayerRef.GetHighestRelationshipRank() + "\n" ; 3 | ||
string C = | string C = akRef.GetRelationshipRank(PlayerRef) + "\n" ; 0 | ||
string D = PlayerRef.GetRelationshipRank(akRef) + "\n" ; 0 | string D = PlayerRef.GetRelationshipRank(akRef) + "\n" ; 0 | ||
Line 52: | Line 52: | ||
PlayerRef.SetRelationshipRank(akRef, 4) | PlayerRef.SetRelationshipRank(akRef, 4) | ||
string E = akRef.GetHighestRelationshipRank() + "\n" ; 0 | string E = akRef.GetHighestRelationshipRank() + "\n" ; 0 <- should be 4 | ||
string F = | string F = PlayerRef.GetHighestRelationshipRank() + "\n" ; 3 <- should be 4 | ||
string G = | string G = akRef.GetRelationshipRank(PlayerRef) + "\n" ; 4 | ||
string H = PlayerRef.GetRelationshipRank(akRef) + "\n" ; 4 | string H = PlayerRef.GetRelationshipRank(akRef) + "\n" ; 4 | ||
Debug.MessageBox(A+B+C+D+"*\n"+E+F+G+H) | Debug.MessageBox(A+B+C+D+"*\n"+E+F+G+H) |
Latest revision as of 12:22, 15 July 2015
Member of: Actor Script (Papyrus)
Gets the highest relationship rank this actor has.
Syntax[edit | edit source]
int Function GetHighestRelationshipRank() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The highest relationship rank this actor has.
The following values are returned:
- 4: Lover
- 3: Ally
- 2: Confidant
- 1: Friend
- 0: Acquaintance
- -1: Rival
- -2: Foe
- -3: Enemy
- -4: Archnemesis
Examples[edit | edit source]
; Get Alice's highest relationship rank
int bestRelationship = Alice.GetHighestRelationshipRank()
See Also[edit | edit source]
- Actor Script
- GetLowestRelationshipRank - Actor
- GetRelationshipRank - Actor
- SetRelationshipRank - Actor
Notes[edit | edit source]
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)