Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   PlayerWorlds Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=15)
-   -   RPG Dialog System (https://forums.graalonline.com/forums/showthread.php?t=72130)

Inverness 02-11-2007 10:44 PM

RPG Dialog System
 
3 Attachment(s)
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 >_>

killerogue 02-11-2007 10:54 PM

Dude, just as nice as you showed me on AIM. Pretty good.

_Z3phyr_ 02-11-2007 11:33 PM

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?

Inverness 02-11-2007 11:48 PM

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 :mad:

Eh Mido is cool, we've been conversing about our various game development ideas, and other various things.

Crono 02-12-2007 12:05 AM

hehe @ mido

inver i dont get why you just dont join up with a bunch of old-school valikorlians and start your own server...

Inverness 02-12-2007 12:16 AM

Aeon is going the rpg way. So if any old-school valikorlians want to join me they know where to look ^^

projectigi 02-12-2007 12:19 AM

oh yeah :D that system made me de-install morrowind after 5 minutes, too lazy to read

Inverness 02-12-2007 12:30 AM

Thanks for the moral support >_>

Devil 02-12-2007 12:43 AM

I like it, it's different, keep up the good work.

Sulukra 02-12-2007 02:01 AM

Quote:

Originally Posted by Gerami (Post 1276319)
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.

Rufus 02-12-2007 02:04 AM

:frown: I was going to do this myself.

Devil 02-12-2007 02:05 AM

So what? Now there is one there for you to play around with..

xXziroXx 02-12-2007 02:16 AM

Quote:

Originally Posted by Rufus (Post 1276367)
:frown: I was going to do this myself.

So was I.. was even working on one :cry:

Nice though!

Inverness 02-12-2007 03:01 AM

Thank you for the compliments :O

xXziroXx 02-12-2007 03:13 AM

Quote:

Originally Posted by Inverness (Post 1276418)
Thank you for the compliments :O

I demand that you show me how it works in-game tomorrow! :)

Inverness 02-12-2007 03:24 AM

=P
Catch me when I'm online and I'll be happy to.
I need to write more content for it though.

Chompy 02-12-2007 04:07 PM

Inverness, just amazing :]


All times are GMT +2. The time now is 04:51 AM.

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