Aller au contenu

Photo

Scripted NPC Generation...


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
keyofrassilon

keyofrassilon
  • Members
  • 49 messages
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...

#2
Baragg

Baragg
  • Members
  • 271 messages
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
Baragg

Baragg
  • Members
  • 271 messages
Sorry, can't seem to find that script. Are you using CEP?

Modifié par Baragg, 18 janvier 2011 - 06:23 .


#4
keyofrassilon

keyofrassilon
  • Members
  • 49 messages
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
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
"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.

#6
Fester Pot

Fester Pot
  • Members
  • 1 394 messages
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!

Modifié par Fester Pot, 19 janvier 2011 - 05:53 .


#7
keyofrassilon

keyofrassilon
  • Members
  • 49 messages
Hey thanks! That will save me alot of work!

#8
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
Random npcs
Random stats
....................both are on the vault and tested.

#9
ffbj

ffbj
  • Members
  • 593 messages
There is this one too:
http://nwvault.ign.c....detail&id=3668