Is this possible? Instead of creating a blueprint for a NPC can one randomly create one using scripts? Then assign them stats, inventory & scripts they use? This would be so much easier to me than tediously creating random NPC's to fill in an area... See what I am making is a marketplace and I want customers walking up and down the lanes checking out the various venders in a generic fashion to give it life... If I could do this all using a script I could have variations of clothing and appearence instead of the same NPC looping through waypoints over and over... What I need I suppose is a function set that sets stats and appearence and gives the NPC inventory... Assigns scripts for the AI etc...
Scripted NPC Generation...
Débuté par
keyofrassilon
, janv. 18 2011 05:36
#1
Posté 18 janvier 2011 - 05:36
#2
Posté 18 janvier 2011 - 06:14
I did a system for Tyndrel that created different heads on NPC so that there would be variety in the peasants. That combined with changing clothing should suffice. Let me see if I can find that script.
#3
Posté 18 janvier 2011 - 06:22
Sorry, can't seem to find that script. Are you using CEP?
Modifié par Baragg, 18 janvier 2011 - 06:23 .
#4
Posté 18 janvier 2011 - 06:28
Yeah 2.3 version inc all expansions... I could figure it out if I was pointed to the right functions to do that... Thanks!
#5
Posté 19 janvier 2011 - 05:28
"SetCreatureBodyPart" to change the npc head. And as far as doing the clothes you'd need to "CreateItemOnObject" and then "ActionEquipItem".
This could all be mashed into an OnSpawn script for the npc. Using randoms for the head and clothes res refs.
This could all be mashed into an OnSpawn script for the npc. Using randoms for the head and clothes res refs.
#6
Posté 19 janvier 2011 - 05:53
You might be interested in checking out this. It will populate an area with NPCs for you, if you wish for them to move through your area, although slight modification will be required if you want them to stop at corner shops and the like.
I used this script system and modified it for Almraiven to populate city streets.
FP!
I used this script system and modified it for Almraiven to populate city streets.
FP!
Modifié par Fester Pot, 19 janvier 2011 - 05:53 .
#7
Posté 19 janvier 2011 - 05:31
Hey thanks! That will save me alot of work!
#8
Posté 24 janvier 2011 - 09:37
Random npcs
Random stats
....................both are on the vault and tested.
Random stats
....................both are on the vault and tested.
#9
Posté 25 janvier 2011 - 01:38





Retour en haut






