Jump to content

Prostitution Gold Script doesnt work


GornoDD

Recommended Posts

Posted

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  
Posted

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.

 

Posted

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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