Thread: Dialogue system
View Single Post
  #1  
Old 01-28-2010, 12:38 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Dialogue system

Been messing with this for a few hours, I think it looks nice. The script's pretty sloppy, though. It was one of those keep-chucking-****-in-as-you-go-along deals. Hell, it works and it looks nice, though! :P

Sample dialogue file, as you can see "-player" doesn't have to be defined as a character and displays the player:
PHP Code:
CHARACTERS
"Bob" "head9.png"
"Cheese!" "head1000.png"
CHARACTERSEND

DIALOGUE
-playerAhhello Bob.
BobOh heyHow's it goin'?
-
playerJust dandy.
BobI'll be on my way then.
Bob: Boy, don'
t you wish word wrapping worked correctlyI meanI wish it only wrapped at the correct intervals to let words finishI'd write a function myself, but I'm too lazyOh well..
-
playerWhat?
Cheese!: BAAAAAAAAWH!!
-
playerWhat..?
BobRun away!!! =(
DIALOGUEEND 
And the script, it's in weapon form, but could easily be adopted as a class/DBNPC type deal. It's attached as a text file.

And a video because I get bored easily:


If you're interested as to why I make a video for everything I share (See other thread), it's because I like to share the kind of music I like to people subliminally.
Attached Files
File Type: txt dialogue.txt (9.5 KB, 303 views)
Reply With Quote