isovector / adventure

an open-source MOAI based point-n-click graphical adventure engine
Other
26 stars 3 forks source link

Develop a friendly format for dialogue #6

Closed isovector closed 12 years ago

isovector commented 12 years ago

Writing out dialogue is currently a bit of a shamble. It's line after line of character.say("something") embedded in code. It would be super cool to be able to write out a separate file, with a unique identifier for a conversation, and only reference THAT in code.

AGS has something like this, and it goes a little like:

SANDY: rabble rabble CHARACTER: I am a big jam donut SANDY: yes you are

isovector commented 12 years ago

How about some syntax like this?

$name SANDY actors.sandy
$name BOUNCER actors.bouncer

$conversation example
SANDY: Hello
BOUNCER: What's up?
$flush

$choice Oh nothing
BOUNCER: I hate you
$set is_mad
$flush

$choice You're stupid and fat
$require is_mad
$options once, silent
SANDY: I admire your slim form and strong intelligence
BOUNCER: Thank you
$flush

$choice Bye!
$end
isovector commented 12 years ago

Close with the new stream operator stuff, until we have a more solid plan for how dialogue should work.