Jump to content

Adding Persuasion options to Dialogue


akaTelamon

Recommended Posts

Good day.

 

Attempting to follow the online tutorial, I'm hoping to add in some Speechcraft opportunities to some dialogue I'm working on. However, I'm a bit confused by how to get things set up with the necessary script, as CK is shooting back errors.

 

To make it so that my persuasion success levels up Speech, I am placing the following line in the "Papyrus Fragment" of the Begin block: pFDS.Persuade(akSpeaker)

After that, I click compile, and I receive the following issue:

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0200BA6A"...
G:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0200BA6A.psc(9,0): variable pFDS is undefined
G:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0200BA6A.psc(9,5): none is not a known user-defined type
No output generated for TIF__0200BA6A, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0200BA6A

 

A script appears to the right which I can open, but all the options are grayed out.

 

Any knowledge would be greatly appreciated.

Link to comment
Share on other sites

Good day.

 

Attempting to follow the online tutorial, I'm hoping to add in some Speechcraft opportunities to some dialogue I'm working on. However, I'm a bit confused by how to get things set up with the necessary script, as CK is shooting back errors.

 

To make it so that my persuasion success levels up Speech, I am placing the following line in the "Papyrus Fragment" of the Begin block: pFDS.Persuade(akSpeaker)

After that, I click compile, and I receive the following issue:

 

Starting 1 compile threads for 1 files...

Compiling "TIF__0200BA6A"...

G:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0200BA6A.psc(9,0): variable pFDS is undefined

G:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\TIF__0200BA6A.psc(9,5): none is not a known user-defined type

No output generated for TIF__0200BA6A, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on TIF__0200BA6A

 

A script appears to the right which I can open, but all the options are grayed out.

 

Any knowledge would be greatly appreciated.

 

 

I didn't notice this too - but I think you need to right click on that script - add properfty pFDS:

 

Now add a property called something like 'pFDS' (that's short for Favor Dialogue Script). For the type, don't choose anything from the drop down menu, but instead type into the box 'FavorDialogueScript'. Leave the value blank, and hit Ok. If you did this right, you can now change the value to only one value called 'DialogueFavorGeneric' (that's the right one).

Link to comment
Share on other sites

Okay, so in other words, I should paste in the frag, but avoid the compile button in the beginning, and go straight to right clicking on the script that appears.

However, when I select "Edit Properties" I get an error message stating: "Cannot open store for class "TIF_000A717A", missing File?"

I click "Ok" and then another error message: "Errors encountered while attempting to reload the script."

 

After that, the properties window opens, but the only button not grayed out is the cancel button.

 

This is after wiping both Skyrim and Creation Kit from my G:Drive and putting them on my C:Drive. It's the same thing as before.

Please feel free to course correct or basically hold my hand.

Link to comment
Share on other sites

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname TIF__000B810C Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
DialogueFavorGeneric.Persuade(akSpeaker)
;END CODE
EndFunction
;END FRAGMENT

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

FavorDialogueScript Property DialogueFavorGeneric  Auto  

There you go, the property value is on the bottom

edit

It will only have one fill value so you can't get wrong

Edited by PeterMartyr
Link to comment
Share on other sites

No place semi-colon in the Left Frag Box

;

Close the dialogue to compile correctly.

 

reopen & open the script in the CK Script Editor

FavorDialogueScript Property DialogueFavorGeneric  Auto  

paste that at the very bottom & Save, it will compile, close the script & open the Properties

 

Fill the property with the single option available -> FavorDialogueScript <-

 

Close to compile again, LOL just do it.

 

Now open & replace the semi-colon with

DialogueFavorGeneric.Persuade(akSpeaker)

Close to Compile Once More, & you thought it was gonna be easy.

 

reopen & check it all good

 

close the quest. save.

 

create a seq file with xEdit.

Edited by PeterMartyr
Link to comment
Share on other sites

Okay. Starting with a fresh dialogue branch, I am replicating the following steps as I interpret your instructions:

 

1. I place a ; inside the beginning Papyrus fragment section. Only the semi-colon, nothing else.

2. Click inside the Script block, and now a script appears: TIF_XXXXXXX (Not really X's showing up, just using that since it changes every time I attempt this)

3. I then click OK to back out of the window, and then I double click on the dialogue to reopen the window.

4. I right click on TIF_XXXXXX and choose "Edit Source". Under the last line of code, I add the following string: FavorDialogueScript Property DialogueFavorGeneric Auto

5. Upon saving, Compiling fails. I receive the following error:

 

Starting 1 compile threads for 1 files...
Compiling "TIF__0200BA54"...
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\FavorDialogueScript.psc(156,29): script property pFDS already defined
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\FavorDialogueScript.psc(156,29): script variable ::pFDS_var already defined
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\FavorDialogueScript.psc(156,29): script property pFDS already has a get function defined
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\FavorDialogueScript.psc(156,29): script property pFDS already has a set function defined
No output generated for TIF__0200BA54, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0200BA54

 

 

Thank you so much for your patience with me.

Link to comment
Share on other sites

C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts
\FavorDialogueScript.psc(156,29): script property pFDS already has a set function defined
No output generated for TIF__0200BA54, compilation failed.

Ok I open the script the compiler complain about & on mine Notepad++ Editor there is no 156 line, it stops at 153, which means you have corrupted the Parent Script. The easiest way to fix this, to unpack the Script.rar into Source folder & overwrite everything. Since I don't want you to start deleting stuff in the game source codes to try to fix it.

 

IMPORTANT this will overwrite SKSE if installed, so you will need to reinstall the SKSE Source Codes has well. If you have it installed

 

Then Try again

 

 

 

Edited by PeterMartyr
Link to comment
Share on other sites

  • Recently Browsing   0 members

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