Thread: Dialogue system
View Single Post
  #14  
Old 01-28-2010, 10:11 PM
Immolate Immolate is offline
Indigo
Join Date: Dec 2009
Posts: 322
Immolate is on a distinguished road
Quote:
Originally Posted by coreys View Post
Personally, I'd prefer a scripted method. Maybe something similar to a common way behavior trees are made:
PHP Code:
this.conversation newConversation()
  .
dialogue("Bob""head0.png""Hello, World!")
  .
dialogue(player.nickplayer.headimg"Sup")
  .
question("Bob""head0.png""How you doin?", {"Good""Alright""Bad"})
    .
answer("Good")
      .
dialogue("Bob""head0.png""Awesome. ttyl")
      .
toParent()
    .
answer("Alright")
      .
dialogue("Bob""head0.png""Cool, cool")
      .
toParent()
    .
answer("Bad")
      .
dialogue("Bob""head0.png""Sorry to hear that")
      .
toParent()
    .
toParent()
  .
dialogue(player.nickplayer.headimg"Smell ya later")
  ; 
I love this idea but rather than having to keep typing the head filename and name, I think it'd be better to have some functions which defines an object for each participant of the conversation, which contains their specific attributes.
Reply With Quote