Getting an NPC into the game.
by Mark Francombe · in Torque Game Engine · 07/10/2005 (1:15 am) · 3 replies
I have used a number of resources to get an NPC into the game, with various options. BUt the problem with the resources id, I have NO idea WHAT I am doing... so although they work I can't FIND the code that I need to fiddle with.
THE QUESTION: Is there a STEP BY STEP guide to adding NPC's into the game.
SUB QUESTIONS: (OR ...what I need inmy game, progress on these reported below)
Which files do the adding?
How do I specify WHERE in the world they will spawn?
How can I have each NPC use a different model?
How can I add conversational and ownership routines to the NPC?
How can I have them floow the player untill a specific place is reached, then enter new dialog?
How can I have them, search and find the player, and then enter new dialog?
MY PROGRESS:
I have looked for the code for "Kork" the manically running in a circle Orc, cant find it!
Where is he added! By carefull edditing I have moved his path markers around have him walking up and down my street... but that is it.
I managed to change his name once, now I cant find where I did that!!!
I implemented the PPGDialog resource, so I can add a NPC at the center of the world and make a conversation using the editor... with some tweaking and investigaton, I think this is great! and I think what I need, if a few additionaly actions are possible (I dont need KILL, or SUICIDE or CHANGE MY NAME... I need, give you an item, take the item you have found and gie you something else, follow you to a location.. bla bla..)
BUT YOu get this NPC by typing in the console, theres no explnation on how to have him turn up IN GAME, specify his art, or location. Its probably COMMON KNOWLEDGE for peeps here.... I been searching for weeks now!!!
PLEASE HELP ME.
Mark
(I have a related question, buut Ive posted that seperate as its a bit off topic for my Thread Topic.
THE QUESTION: Is there a STEP BY STEP guide to adding NPC's into the game.
SUB QUESTIONS: (OR ...what I need inmy game, progress on these reported below)
Which files do the adding?
How do I specify WHERE in the world they will spawn?
How can I have each NPC use a different model?
How can I add conversational and ownership routines to the NPC?
How can I have them floow the player untill a specific place is reached, then enter new dialog?
How can I have them, search and find the player, and then enter new dialog?
MY PROGRESS:
I have looked for the code for "Kork" the manically running in a circle Orc, cant find it!
Where is he added! By carefull edditing I have moved his path markers around have him walking up and down my street... but that is it.
I managed to change his name once, now I cant find where I did that!!!
I implemented the PPGDialog resource, so I can add a NPC at the center of the world and make a conversation using the editor... with some tweaking and investigaton, I think this is great! and I think what I need, if a few additionaly actions are possible (I dont need KILL, or SUICIDE or CHANGE MY NAME... I need, give you an item, take the item you have found and gie you something else, follow you to a location.. bla bla..)
BUT YOu get this NPC by typing in the console, theres no explnation on how to have him turn up IN GAME, specify his art, or location. Its probably COMMON KNOWLEDGE for peeps here.... I been searching for weeks now!!!
PLEASE HELP ME.
Mark
(I have a related question, buut Ive posted that seperate as its a bit off topic for my Thread Topic.
#2
07/10/2005 (3:47 am)
Thanks... Do you have a link to these tutorials?
#3
Looking at "chapters 6 and 7 of the MMORPG tutorials" I really cannot see how to create "new player datablocks" AND in your tuts, I would be adding SO much more than I need.
07/10/2005 (6:23 am)
Dreamer, I can see that you have a big thing going on here, and they look fantastic! I am however far to nervous to start on your series of tuts... it seems quite an undertaking! Looking at "chapters 6 and 7 of the MMORPG tutorials" I really cannot see how to create "new player datablocks" AND in your tuts, I would be adding SO much more than I need.
Torque Owner Dreamer
Default Studio Name
Most of your subquestions, are fairly complex bits of code, try breaking them down into smaller questions and looking for the answers, since I know for a fact I have seen the answers to most of them (would need to link a couple tutorials together for most).