Game Development Community

dev|Pro Game Development Curriculum

RPGDialog - NPC interaction system

by Nelson A. K. Gonsalves · 11/29/2002 (12:27 pm) · 186 comments

RPGDialog is a Torque Game Engine modification that adds standard RPG Dialogs support, including multiple choice questions and question linking(underlined words on a question that perform actions when clicked on). Also included is an editor for creating and editing dialogs easily.

Instructions on installing are included on the zip file.

New download location since geocities is dead

Have fun using it! :)
And let me know of any problems you might find.

Contact me at dk_uo@yahoo.com or leave a comment here.

Features

- Multiple choice questions, present a question and a list of answers and do something depending on which answer the player picks, the choices are numbered and can be picked either by the mouse or by pressing the 1,2,...,9,0 keys on the keyboard, choices after 10 must be selected via mouse.

- Question Links, Ex: "Hello, I'm Mary, how are you?" clicking on the word Mary would trigger an action as if it was a choice in the Multiple choice window.

- Portraits, pictures that represent the NPC, change it depending on the choices of the player or even use them to show the mood of the NPC.

- Sounds, add voice overs or any sound effects that are triggered when the question is displayed.

- Fully functional in multiplayer games, only allowing one player to talk to each NPC at a time, sending a message telling the others that the NPC is busy if they try to talk to it.

- Moving the player too far away from the NPC closes the Dialog automatically.

- Each option triggers a function, allowing complete customization of the actions caused by the dialog, either by using the included functions, altering them or creating your own.

June 8th 2005.
I finnaly got around to giving this a much deserved update!

Firstly I updated the instructions and made a few changes to make it fully compatible with TGE 1.3.

Also I've added buttons to move the answers up and down in the editor, so its now easier to organize the available options.

And finnaly, multiple actions can now be triggered by one response, thanks goes to BrokeAss Games for the idea. To execute multiple actions just add them one after the other without anything separating them, there is one example of this in the test scripts. Ohh, and now clicking on the actions list will add them to the actions edit and not replace them.

I have one warning though, version 1.0 .dla files are incompatible with version 1.3, there is an easy workaround I've used on my files, just open them directly in a text editor and do a quick replace all from "<" to "<END><", add <END> to the end of each line and remove the <END> from the beginning of the line, that should make them 100% compatible.

Let me know if you find any problems.

-Nelson

About the author

Recent Blogs

Page«First 4 5 6 7 8 9 10 Next»
#181
03/18/2009 (7:06 pm)
I just implemented this with TGE 1.5.2, works like a charm after a bit of tweaking.

I had to change rw/ to starter.fps/ in the files, thankfully I'm using Notepad++ which can search all files in the folders you choose and replace automatically, so that wasn't really a problem.

The second thing was that the text wouldn't show up, not sure why, I went into the GUI and changed the fontsize to 14 instead of 16 and it works now. lol.

So far it looks good, going to try and do some things with it and see where it takes me.

I did notice that the built-in editor doesn't really work well, maybe something to do with me using 1.5.2?

Going to look into manually editing the question/answer files, might write up a program in Delphi or something to do it outside of torque (I'm not much of a programmer, if someone feels like throwing something like that together I'd be more then happy.. It's been a few years since I messed with Delphi and I don't speak C++..)

Anyways, very nice resource!
#182
11/25/2009 (2:02 pm)
The original file download link is dead. =(

Anyone known of an alternate location to download this from?
#183
11/25/2009 (3:15 pm)
I think it was this one....
#184
11/26/2009 (1:41 am)
Cool, thanks Christian! (I'm surprised this wasn't uploaded originally to GG...)
#185
11/26/2009 (1:43 am)
@marcus

The built in editor did not work too well for me in 1.5.2 either. I just ended up coding my own questions.


#186
04/06/2013 (4:06 pm)
I just downloaded this and am starting to go through and see about putting it in my Torque 3D project. Anyone have any success with that or is that going to be an uphill battle for me?
Page«First 4 5 6 7 8 9 10 Next»