Changes

1,480 bytes added ,  03:17, 3 July 2018
m
Line 296: Line 296:  
     ",
 
     ",
 
</source>
 
</source>
 +
 +
The dialogue above triggers on any Friday in the summer. The NPC begins with a response that is always shown: "I think I'll go to the beach tomorrow!"
 +
 +
Next they ask you a question.
 +
<source lang="yaml">#$q 305/306 beachquestion_followup#Would you like to go with me?</source>
 +
 +
'''$q''' starts the question. '''305/306''' checks to see if this question has been asked before, and if it has it sends you to the dialogue key '''beachquestion_followup'''. (Note that you can name your dialogue keys whatever you like which makes it easier to read.)
 +
 +
Next are the responses the player can give. You can add any number of '''$r''' lines; here we have three:
 +
 +
<source lang="yaml">
 +
    #$r 305 15 beachquestion_yes#Sure, I would love to!
 +
    #$r 306 0 beachquestion_sorry#Oh, sorry, I've already made plays with someone else...
 +
    #$r 306 -10 beachquestion_no#No thank you.
 +
</source>
 +
If you say yes (first option), the game will store '''ID 305''' as the answer given to this question. Next, your friendship with that person increases by '''15'''. '''beachquestion_yes''' tells the script which dialogue key continuation to use as a response to your answer.
 +
 +
If you say no (second and third option) the game will store '''ID 306''' as the answer given, then depending on which answer you gave will either not change your friendship with the person, '''0''', or reduce it, '''-10'''. Then it will use either '''beachquestion_sorry''' or '''beachquestion_no''' to continue the dialogue.
 +
    
----
 
----
28

edits