Wiki RPG: Tutorial Game: Bob

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

dialog

bob.gif

  • (start) Hello there.
    • How is it going Bob? Going alright.
      • Nice weather today. Indeed. end topic
      • Can I ask you something about Claire? Certainly.
        • What is her current job? She works as a gardener. set know_claires_job=`yes`
        • That's all I wanted to know about Claire. OK. end topic
    • Bye Bob. See ya. end dialog

First, note that the end topic command does not have to be the first of the choices (which probably makes it more interesting for the player). The new command in this dialog is set know_claires_job=`yes` which sets the variable know_claire's_job to the value `yes`. We will see how this variable is used in Claire's dialog.