kryptopyr Posted April 15, 2012 Share Posted April 15, 2012 (edited) 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 1Scriptname TIF__0009BCA9 Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEakspeaker.ModFavorPoints(pFavorReward.GetValueInt() )DarkBrotherhood DBScript = GetOwningQuest() as DarkBrotherhoodDBScript.CiceroBack = 1CiceroAlias.GetActorRef().SetRelationshipRank(Game.GetPlayer(), 3)DBScript.CiceroState = 1;END CODEEndFunction;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 April 15, 2012 by kryptopyr Link to comment Share on other sites More sharing options...
Recommended Posts