Game Development Community

Conversation/Dialog and Store Resource

by Joshua Shoemaker · in Torque 3D Professional · 05/17/2011 (9:26 pm) · 12 replies

Does anyone know of a good resource for Torque 3D of a Dialog System and a Store/Inventory system that may not require SQLite3. I tried implementing SQLite3 into my project and it just crashed it. So I need to find another way. Any ideas?

#1
05/18/2011 (10:32 am)
Depends on what you're trying to accomplish with those systems?
#2
05/18/2011 (12:39 pm)
For the dialog, i would really just want to approach a npc and press a specific action key and the npc starts speaking (in text) and maybe some simple responses like yes and no, that would make the npc say something different depending on which is chosen.

And for the store sytems. A simple system where the player can find money in the game and go to a npc that has an inventory that you can buy from.
#3
05/20/2011 (9:38 am)
I am getting the AI starter pack anyway, and i just saw that it has a basic dialog system with it. So all i need now is to find a way to do a store/inventory.
#4
05/22/2011 (10:45 pm)
buy the book "advanced 3d game programming all in one" by kennith finney

it has a great resource on what you need. altough its a book, so you cant copy paste, you have to type out alllllllll the code.
anyway it works in a very simple way by setting up all your basic interactive npc functions. then once they are all set up you create a VERY simple HTML style script for each npc and it works. It takes a while to set up, but once you have it set up its very easy to set up each npc the way you want.

for example
/game/data/elf.qry
Hello <<PlayerName>> Im <AITLink1><name></a>. How may i help you? ~Sound:elf
<AnswerStart>
<a: AIT 1> What do you have for sale?</a>
<a: AIT 2> Nothing sorry</a>
<a: AIT 3> Your mom already helped me last night!</a>

/game/data/elf.rsp
<1> OpenStore()
<2> EndQuery()
<3> KillPlayer()

like i said set up the baseframe, the rest is very easy
#5
05/23/2011 (6:05 am)
The book comes with a CD. You may still need to alter the code, but you can copy it from the disc.
#6
05/23/2011 (7:39 am)
@ richard, nice, i got it off my friend so i kinda got shafted but its still a great book. Taught me a lot about torque
#7
05/23/2011 (11:03 am)
:-)

More to come...
#8
05/23/2011 (11:12 am)
@Ken - I've been waiting to hear you say that. Frank is also revising his books to bring them up to speed with the new engine. I can't wait!
#9
05/23/2011 (12:21 pm)
Ken I'll be first in line to get your books when you release them haha. They have taught me so much about torque!
#10
05/24/2011 (7:36 am)
Thank you for the responses. I was going to get that book, but was unsure because i thought it was for TGE and not T3D.
#11
05/24/2011 (3:24 pm)
There isnt too much of a difference with scripting in the two engines. Mostly for the stuff in that book it will just be put in a different folder than the book says. And if you run your game and you cant get the code to work just post your console log on the forums here and a lot of people will help you out.
#12
05/24/2011 (7:50 pm)
Oh okay. Thankyou so much. Ill get that book in a couple of weeks. Thankyou all for your consideration.