GornoDD Posted September 5, 2015 Posted September 5, 2015 Hi I tryed to add a prostituion scene. I want to add gold to the player when the dialogue topic is chosen. This is my script, but no Gold gets added to the player. I guess I missed something ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 3 Scriptname TIF__0400997B Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_1 Function Fragment_1(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE pFDS.Persuade(akSpeaker) SexLab.PlayerRef.addItem(Gold001, 22) actor[] sexActors = new actor[2] sexActors[0] = SexLab.PlayerRef sexActors[1] = akSpeaker sslBaseAnimation[] anims anims = SexLab.GetAnimationsByTag(2, "Blowjob", "Agressive") SexLab.StartSex(sexActors, anims) ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment SexLabFramework property SexLab auto MiscObject property gold001 auto FavorDialogueScript Property pFDS Auto
Guest Posted September 5, 2015 Posted September 5, 2015 Be sure the properties have a value. Your line "SexLab.PlayerRef.addItem(Gold001, 22)", should add 22 gold to the player. And you get the player from a property inside the SexLab script. If the property "Gold001" has a value (it is Gold001), then try to replace the SexLab.PlayerRef with just "PlayerRef", and add a Property like: Actor Property PlayerRef Auto Do you have any error in the papyrus log? Usually if you have an error here, then you will find a very good trace in the papyrus log.
GornoDD Posted September 5, 2015 Author Posted September 5, 2015 Be sure the properties have a value. Your line "SexLab.PlayerRef.addItem(Gold001, 22)", should add 22 gold to the player. And you get the player from a property inside the SexLab script. If the property "Gold001" has a value (it is Gold001), then try to replace the SexLab.PlayerRef with just "PlayerRef", and add a Property like: Actor Property PlayerRef Auto Do you have any error in the papyrus log? Usually if you have an error here, then you will find a very good trace in the papyrus log. Yeah worked! Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.