Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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, 300 views)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.