Difference between revisions of "Fallout 4 Simple Fetch Quest Tutorial Chapter 13: Ending Dialog"

imported>Ravelabenergy
(Created page with "Category:Tutorials Category:New Users {{Tutorial Index |series=Fallout4 Scripting Quest Tutorial |chapter=13: Ending Dialog |Prev=Fallout_4_Simple_Fetch_Quest_Tutorial...")
 
imported>Ravelabenergy
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
[[Category:New Users]]
[[Category:New Users]]
{{Tutorial Index
{{Tutorial Index
|series=Fallout4 Scripting Quest Tutorial
|series=Fallout 4 Scripting Quest Tutorial
|chapter=13: Ending Dialog
|chapter=13: Ending Dialog
|Prev=Fallout_4_Simple_Fetch_Quest_Tutorial_Chapter_12:_Scripting_Artifact_Retrieval
|Prev=Fallout_4_Simple_Fetch_Quest_Tutorial_Chapter_12:_Scripting_Artifact_Retrieval
|Next=Fallout_4_Simple_Fetch_Quest_Tutorial_Chapter_13:_Ending_Dialog
|Next=:Category:Tutorials
}}
}}


'''Note: This tutorial uses an Action-Reaction System.'''
'''Note: This tutorial is written in Action-Reaction style''' — Headers are the '''action''' you have to do, and the pictures that follow depict the '''reaction''' (or result) of the Creation Kit.
 
=Start up your Mod in the GECK=
 
*Open up your Quest
 
*Click on the Scenes tab
 
Note: This is only if the GECK isn’t running, and yes I skipped a lot of steps because we’re far into these tutorials!
 
Having accepted the quest and having the artifact update the Object Stage to retrieved (30) we now need to add a scene of dialog for when the player returns to the NPC.
[[image:Picture13-1.png]]
 
=Right-Click over the EditorID panel=
 
What we’re going to do is create a scene for returning the artifact to the NPC. The dialog will include text for refusing to give the artifact as well as text for being evasive.
 
[[image:Picture13-2.png]]
 
=Select New=
 
The quest ID is shown as a prefix. Don’t use that as a scene ID, See next step
 
[[image:Picture13-3.png]]
 
=Append NN to the text=
 
Where NN is the number of the scene, in our case 03.
 
[[image:Picture13-4.png]]
 
=Click OK=
 
Note the scene name appears in the EditorID list, AshSkowQuest03
 
[[image:Picture13-5.png]]
 
=Click on the scene name=
 
Note that the ID text box fills in with your scene name, AshSkowQuest03
 
[[image:Picture13-6.png]]
 
=Click on the Player Dialogue checkbox=
[[image:Picture13-7.png]]
 
=Right-click anywhere in the white area=
[[image:Picture13-8.png]]
 
=Select New Actor=
[[image:Picture13-9.png]]
 
=Click on your NPC alias (AshSkowAlias) then click the OK button=
[[image:Picture13-10.png]]
 
=Double-click the empty gray box underneath Start Greeting=
 
Here you will find a number of inputs, but the only one that matters is the Response Text. This is the greeting the player will see when prompted to talk to the NPC
 
[[image:Picture13-11.png]]
 
=Type a greeting into the Response Text box=
 
Example: “You’re back! Have you found anything?”
 
Remember! this is the final scene because the player has retrieved the artifact already.
 
[[image:Picture13-12.png]]
 
=Click the OK button=
 
Note: the Response Text is filled with your greeting.
 
Now let’s restrict this dialog to the NPC and have it activate only after the player has retrieved the artifacts (I.E when Quest Stage #30 ➔ < 40)
 
[[image:Picture13-13.png]]
 
=Click New=
[[image:Picture13-14a.png]]
 
=Click INVALID=
[[image:Picture13-15.png]]
 
=Select the NPC in the dropdown for Parameter 1=
 
[[image:Picture13-16a.png]]
 
=Click the OK button=
 
Now only the NPC (AshSkow) can say the dialog.  If you don’t add this, the player or any NPC can saythe dialog if near.
 
[[image:Picture13-17a.png]]
 
=Click the OK button again=
 
So we’ve restricted the dialog to our NPC (AshSkow). The last restriction (condition) for the dialog is to have it only activate if theuser has retrieved the artifact (Quest Stage #30, i.e., <40).
 
[[image:Picture13-18a.png]]
 
=Click New=
[[image:Picture13-19.png]]
 
=Select GetStage in the Condition Function drop-down, Set Comparison to <, and the Value to 40=
[[image:Picture13-20a.png]]
 
=Click the OK button=
 
[[image:Picture13-21.png]]
 
=Click the OK button=
 
Note: You should see all the greetings for all the scenes
 
[[image:Picture13-22.png]]
 
=Click the OK button=
 
Finally we’re back to the main scene window.
[[image:Picture13-23.png]]
 
=Right-click on the white scene area=
 
[[image:Picture13-24.png]]
 
=Select Add Phase at End=
 
Typically each phase contains associated dialog. After the greeting we will add a 4-part interactive dialog, which will first require adding a Phase 1
 
[[image:Picture13-25.png]]
 
=Right Click Over the Phase name=
[[image:Picture13-26.png]]
 
=Select Edit=
[[image:Picture13-27.png]]
 
=Give the Phase a name=
 
Example: Scene03Phase01
 
Why are we doing this? Because it will allow us to loop to the phase and repeat the 4-part dialog until the player either accepts or denies the quest.
 
[[image:Picture13-28.png]]
 
=Click the OK button=
 
Now we’re ready to add interactive dialog
 
[[image:Picture13-29.png]]
 
=Right-click over the white area under the phase=
[[image:Picture13-30.png]]
 
=Select New Action > Player Dialogue=
 
The Topic Info dialog pops up allowing you to set initial options.
 
Conditions are the most likely option you will set, but since we did set conditions in the greeting, and this follows from the greeting, it shouldn’t be necessary.
[[image:Picture13-31.png]]
 
=Click the OK button=
 
The 4-part dialog box pops up.
[[image:Picture13-32.png]]
 
=Enter Prompts & Responses=
 
(Details not shown-see Quest Dialog Beginning tutorial)
 
Do the following for the PLAYER
 
Sentiment: Prompt—Response
 
Positive: Give Artifact — Yes, here it is.
 
Negative: Do Not Give — No, I haven’t found it yet.
 
Neutral: Be Evasive — Maybe.
 
Question:Ask for Caps — Can I have caps first?
 
Do the following for the NPC
 
Sentiment: (NO PROMPTS for NPCs)—Response
 
Positive: () — Yuck! It’s dirty. You keep it.
 
Negative: () — Please try to find it.
 
Neutral: () — Either you’ve found it or not. Which one?
 
Question: () — Sorry, I don’t have any money
 
IMPORTANT: Check End Running Scene for the positive and negative NPC responses.
 
[[image:Picture13-33.png]]
 
=Click OK=
 
You’re almost done. You have to loop to main dialog until either the player agrees to give the artifact or the player refuses.
 
Notice the [END] in the Positive and Negative NPC responses. If you don’t see it, double click on those responses and check the End Running Scene checkbox.
 
[[image:Picture13-34.png]]
 
=Right-click in the white scene area=
 
[[image:Picture13-35.png]]
 
=Select Add Phase at End=
[[image:Picture13-36.png]]
 
=Right-click in the white phase area=
[[image:Picture13-37.png]]
 
=Select New Action > Start Scene=
 
[[image:Picture13-38.png]]
 
=Click OK=
[[image:Picture13-39.png]]
 
=Double-click (Empty) =
 
[[image:Picture13-40.png]]
 
=Right-click under Editor ID=
 
[[image:Picture13-41.png]]
 
=Select New=
[[image:Picture13-42.png]]
 
=Select the Scene and Start Phase in the drop down boxes=
 
In our example AshSkowQuest03 and Scene01Phase03, respectively
 
Note: Sometimes it doesn’t let you select the Start Phase for Scene (like in this example). None is the only available option. So just go to the next step.
[[image:Picture13-43.png]]
 
=Click OK=
[[image:Picture13-44.png]]
 
=Click OK=
 
Now any four-way response should loop the scene.
 
We’re almost done, but before we finished let's look at a possible bug fix
[[image:Picture13-45.png]]
 
=BUG FIX: If under Action 2’s label, you see “- no phase” do this:=
 
Click the Quest Objectives Tab, then Click the Scenes tab
This somehow fixes the bug in the GECK and fills in the phase with:
 
Scene03Phase01
 
You can verify this by double clicking on the text under Action 2:
[[image:Picture13-46.png]]
 
=Double-click on the NPC positive response=
 
To end the quest we have to set the Quest Stage ID to completed (40)
 
[[image:Picture13-47.png]]
 
=Check the Set Parent Quest Stage radio button and set the drop down to the End Quest Stage # (40)=
 
[[image:Picture13-48.png]]
 
=Click OK=
 
Note the [QE40] in the NPC positive response, which indicates that the Quest Stage is set to 40, which is the ending quest index.  We now have to code the ending response.
 
[[image:Picture13-49.png]]
 
=Click on the Quest Stages tab=
[[image:Picture13-50.png]]
 
=Select the Ending Quest Index (40)=
 
[[image:Picture13-51.png]]
 
=Right-Click under Log Entry=
 
[[image:Picture13-52.png]]
 
=Select New=
[[image:Picture13-53.png]]
 
=Enter a Log Entry, Designer Notes, Code, and CHECK the Complete Quest box=
 
The code is:
 
SetObjectiveCompleted(30)
 
Where 30 is Quest Objective # for returning the artifact to the NPC (see Quest Objectives tab)
 
[[image:Picture13-54.png]]
 
=Click OK=
 
Now you’re ready to test your completed quest.
 
[[image:Picture13-55.png]]
 
=File > Save=
[[image:Picture13-56.png]]
 
=Run Fallout 4 and advance the quest up to the point where you’ve retrieved the artifact have returned to talk to the player=
 
Yes, I know I skipped a lot of steps, but you know how to do all those things already!
 
[[image:Picture13-57.png]]
 
=Wait for prompts=
 
[[image:Picture13-58.png]]
 
=Give the artifact (or you can play with responses, but end by giving it)=
[[image:Picture13-59.png]]
 
=Wait for NPC response=
[[image:Picture13-60.png]]
 
=Wait for Quest Complete message=
 
You are done! Congratulations ☺
 
You’ve finished your first mod! However there’s always more to do, always more things that can enhance the mod’s quality and the player's experience. In the next tutorial we’ll discuss how to add a voiceover for your custom dialogue.
 
[[image:Picture13-61.png]]
 
Don’t forget to quit out of the game! (ALT-F4 for the PC Master Race)