Scripting

So, I wrote this:

[
  {
    "Action" : "PromptBox",
    "PromptTitle" : "Quit without saving?",
    "Choice1" : "Yes",
    "Choice2" : "No",
    "PromptStartChoice" : 1,
    "Result1" : [
      {
        "Action" : "QuitGame"
      }
    ],
    "Result2" : [
      {
        "Action" : "Say",
        "Lines" : ["Glad you're still playing!"]
      }
    ]
  }
]

Which turns into this: スクリーンショット 2015-03-29 0.41.32

I'm just using JSON and interpreting it for the script. But so far I have added dialog boxes and prompts. I like how the JSON looks and once I create a few TextExpander snippets to make sure I have no typos or forgotten characters[footnote]Forgetting to put the brackets around the Lines of text was causing some weird behavior.[/footnote] I should be able to pound through.

Next I suppose I'll be scripting moving NPCs and the player themselves.