Guest Suited Prawns Posted September 25, 2014 Share Posted September 25, 2014 So ive been doing small scripts now and then, and ive tried to use sexlab a few times but I all ways seem to run into the same problem, I cant get the game to figure out who the player is talking to, since I have looked at a few mods that aim to do the same thing as I am going for but they all seem to not use dialouge at all. Now I dont know if I am out of my depth or just inept, so I was hoping to get some help from some of you talented modders. Link to comment
blabla11 Posted September 25, 2014 Share Posted September 25, 2014 You can use akSpeaker in the dialogue-fragment: Â (GetOwningQuest() as ScriptName).yourFunction(akSpeaker, other_parametres) Link to comment
Guest Suited Prawns Posted September 25, 2014 Share Posted September 25, 2014 Thanks! that actually makes so much sense. Link to comment
Srende Posted September 25, 2014 Share Posted September 25, 2014 If you open any tif scripts (topic info fragments), those that are used in dialogue, in an external editor, you'll see this in them: Â Â ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE GetOwningQuest().SetStage(10) ;END CODE EndFunction ;END FRAGMENT So the fragment functions take the speaker as a parameter, but conviniently hide it from you. Â Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.