Wiki RPG: Tutorial Game: Claire

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

claire.gif

  • (start) Hi.
    • How is it going Claire? So so.
    • if know_claires_job = `yes` So, I've heard you are a gardener. Is that true? Yes, it is. Are you interested in gardening and flowers?
      • Yes, I especially like roses. Well, here is a beautiful rose I just picked up this morning. set has_rose=`yes` end topic
      • Not so much I just though it would be polite to ask. Oh. end dialog
    • Goodbye Claire. Bye bye. end dialog

The player can only ask Claire about her job if the player knows it (by talking to Bob). The command to check that is if know_claire's_job = `yes`. Also note that a dialog can be stopped at different points, not just at the top level.