Changes

Jump to navigation Jump to search
993 bytes added ,  03:16, 3 July 2018
m
Line 270: Line 270:     
====Question example====
 
====Question example====
To understand how $q, $r, and $p work, an example may be helpful. Consider this excerpt from Haley's dialogue file.
+
To understand how $q, $r, and $p work, an example may be helpful. Note how you can format the script to be easier to read:
 +
 
 +
<source lang="yaml">
 +
summer_Fri:
 +
    "I think I'll go to the beach tomorrow!
 +
    #$q 305/306 beachquestion_followup#Would you like to go with me?
 +
        #$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.
 +
    ",
 +
    beachquestion_yes: "Good! It's a date.$h",
 +
    beachquestion_sorry: "Oh. Darn. Okay.$6",
 +
    beachquestion_no: "Oh. Um. Sorry.$s",
 +
    beachquestion_followup:
 +
        "$p 305
 +
            #Tomorrow should be a lot of fun!$h
 +
            |Hmm, I wonder if I can get someone to go with me...$s
 +
        ",
 +
 
 +
summer_Sat:
 +
    "The beach is lovely this time of year...
 +
    #$p 305
 +
        #Thanks for coming with me today.$h
 +
        |Oh, hi @, how's it going?
 +
    ",
 +
</source>
 +
 
 +
----
 +
 
 +
Here is another example from Haley's existing dialogue file. Note how the script formatting is harder to read, but the game is able to process both.
    
<source lang="yaml">
 
<source lang="yaml">
28

edits

Navigation menu