Jump to content

Favor Points / Favor Reward


kryptopyr

Recommended Posts

I've been trying to figure out what the following line of script does. I've not been able to find a description on the CK wiki or any other online tutorials.

 

akspeaker.ModFavorPoints(pFavorReward.GetValueInt() )

 

In properties, pFavorReward is set as a GlobalVariable: FavorRewardLarge, but I'm unclear what this variable actually does in the game and how changing it would affect the actor or the game. This script is from the end of the Dark Brotherhood quest and it appears to be involved in setting Cicero up to be a follower after the quest is finished. The entire fragment is this...

 

--------------------------------------------------------------------------------------------------------------------------------

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment

;NEXT FRAGMENT INDEX 1

Scriptname TIF__0009BCA9 Extends TopicInfo Hidden

 

;BEGIN FRAGMENT Fragment_0

Function Fragment_0(ObjectReference akSpeakerRef)

Actor akSpeaker = akSpeakerRef as Actor

;BEGIN CODE

akspeaker.ModFavorPoints(pFavorReward.GetValueInt() )

DarkBrotherhood DBScript = GetOwningQuest() as DarkBrotherhood

DBScript.CiceroBack = 1

CiceroAlias.GetActorRef().SetRelationshipRank(Game.GetPlayer(), 3)

DBScript.CiceroState = 1

;END CODE

EndFunction

;END FRAGMENT

 

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

 

ObjectReference Property CiceroRef Auto

 

ReferenceAlias Property CiceroAlias Auto

 

GlobalVariable Property pFavorReward Auto

Edited by kryptopyr
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...