Graal Forums  

Go Back   Graal Forums > PlayerWorlds > PlayerWorlds Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-11-2007, 10:44 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
RPG Dialog System

Oi, I created this thread so I can get some comments on an RPG Dialog system that I'm creating and planning to release to the public or whoever wants it, on the condition that they share all changes with everyone of course.

Anyhow this system is based completely off of the Dialog Systems featured in Morrowind and Oblivion of The Elder Scrolls series, if you don't know what that is I suggest you check it out

I myself have seen the extent of the dialog featured in Morrowind and I would like to see something similar featured in Graal as I'm an RPG fanatic and such.
Basically the dialog will give you a choice of topics to ask about. The response you get for each topic can depend on one or more conditions. Topics can also have multiple responses with scripts attached to them that only trigger when that response is given. Topics and TopicLists are stored in text files on the server.

Now, the dialog system is no doubt complex although not too extensively so, I've done my best to make it as customizable as possible and for that reason functions that are parsable or are used by the dialog system to interact with systems outside of the dialog system itself must be defined in the DialogControl.

For example, if you want a topic to give you a new item or so when it evaluates to true, then you would have something like this in the topic file:
resp2.script1=AddItem,50,gold
In file; responses, conditions, and scripts are numbered by index so that line is defining the second script of the third possible response for whatever topic.
If that response is the one thats given then a function will be called:
DialogControl.pfn<functionname>(params); and in this case:
DialogControl.pfnAddItem(50, gold);

Servers have their own systems to handle items so thats why you have to define that function for yourself.
Topic files are parsed initially and constructed into TStaticVar objects on the serverside.

Anyhow I'm making good progress on the system, and its turned out to be far easier than I expected due to the greatness of object-oriented programming.

And as I have nothing more to say, I will point you to the screenshots attached to this post. The first screenshot shows the result of selecting the topic Arkland for the first time and as a result of the script you're given 50 gold coins by the NPC and a message appears on the screen informing you of that fact. After that, sfnSetReadTopic() will be called, so as defined by the topic, the next time you request it, the responses will be evaluated and you will end up with a different message from there on.

The second screenshot is just showing the choice response option, basically when a choice is active you can only chose one of the choices (topic links) listed under the response text and you continue on from there. I have yet to write enough topics to really show that feature off though.

The third screenshot is of what I'm basing this system off of.

Suggestions and constructive criticisms are welcome.

Note: I just realized due to the spell checking in this thing that I had spelled response wrong in my scripts ;-;
Note2: Spelled received wrong too >_>
Attached Thumbnails
Click image for larger version

Name:	arkland_dialog1.jpg
Views:	378
Size:	157.8 KB
ID:	39509   Click image for larger version

Name:	arkland_dialog2.jpg
Views:	330
Size:	37.4 KB
ID:	39510   Click image for larger version

Name:	obdialogsys.jpg
Views:	346
Size:	152.6 KB
ID:	39511  
__________________

Last edited by Inverness; 02-11-2007 at 11:03 PM..
Reply With Quote
  #2  
Old 02-11-2007, 10:54 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Dude, just as nice as you showed me on AIM. Pretty good.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #3  
Old 02-11-2007, 11:33 PM
_Z3phyr_ _Z3phyr_ is offline
Banned
Join Date: Sep 2003
Location: Louisiane
Posts: 390
_Z3phyr_ is an unknown quantity at this point
looks cool and all, but the Naruto thing kind of makes me want to make fun of you (no offense, but its really just...).


btw what is Mido doing nowadays?
Reply With Quote
  #4  
Old 02-11-2007, 11:48 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I don't see what your problem with Naruto is, care to explain?
And next time I post screenshots I'll be sure to censor my taskbar as well

Eh Mido is cool, we've been conversing about our various game development ideas, and other various things.
__________________
Reply With Quote
  #5  
Old 02-12-2007, 12:05 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
hehe @ mido

inver i dont get why you just dont join up with a bunch of old-school valikorlians and start your own server...
__________________
Reply With Quote
  #6  
Old 02-12-2007, 12:16 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Aeon is going the rpg way. So if any old-school valikorlians want to join me they know where to look
__________________
Reply With Quote
  #7  
Old 02-12-2007, 12:19 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
oh yeah that system made me de-install morrowind after 5 minutes, too lazy to read
Reply With Quote
  #8  
Old 02-12-2007, 12:30 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Thanks for the moral support >_>
__________________
Reply With Quote
  #9  
Old 02-12-2007, 12:43 AM
Devil Devil is offline
Banned
Join Date: Feb 2003
Location: Australia
Posts: 2,835
Devil has a little shameless behaviour in the past
Send a message via AIM to Devil Send a message via MSN to Devil
I like it, it's different, keep up the good work.
Reply With Quote
  #10  
Old 02-12-2007, 02:01 AM
Sulukra Sulukra is offline
Registered Punmaster
Sulukra's Avatar
Join Date: Jul 2005
Location: That place north of the U.S.
Posts: 860
Sulukra is on a distinguished road
Quote:
Originally Posted by Gerami View Post
hehe @ mido

inver i dont get why you just dont join up with a bunch of old-school valikorlians and start your own server...
Seeing as Clash recently quit Val, Mido actually was on yesterday to ask about an NAT position - not sure how that ended up, though.
__________________
Quote:
Originally Posted by Valikorlia IRC Chat
Sulukra:You guys up for twenty questions?
Cor:Yeah.
-Twenty questions later-
Cor:Alright, so we all fail. What was it?
Sulukra:My handheld 20 questions game.
Cor:Curse you, you Canadian fiend.
Reply With Quote
  #11  
Old 02-12-2007, 02:04 AM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
I was going to do this myself.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #12  
Old 02-12-2007, 02:05 AM
Devil Devil is offline
Banned
Join Date: Feb 2003
Location: Australia
Posts: 2,835
Devil has a little shameless behaviour in the past
Send a message via AIM to Devil Send a message via MSN to Devil
So what? Now there is one there for you to play around with..
Reply With Quote
  #13  
Old 02-12-2007, 02:16 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Rufus View Post
I was going to do this myself.
So was I.. was even working on one

Nice though!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 02-12-2007, 03:01 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Thank you for the compliments :O
__________________
Reply With Quote
  #15  
Old 02-12-2007, 03:13 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
Thank you for the compliments :O
I demand that you show me how it works in-game tomorrow!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #16  
Old 02-12-2007, 03:24 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
=P
Catch me when I'm online and I'll be happy to.
I need to write more content for it though.
__________________
Reply With Quote
  #17  
Old 02-12-2007, 04:07 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Inverness, just amazing :]
__________________
Reply With Quote
Reply


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 09:36 PM.


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