Aller au contenu

Photo

Variable NPC appearances and weapons


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

#1
henesua

henesua
  • Members
  • 3 883 messages
 I was getting tired of creating a new NPC blueprint for each variation of appearance and weapon so I wrote a couple scripts that allow me to place a NPC or monster and make them random. (I also use a random name script).

I execute each of the following scripts on an NPC immediately post-spawn (if the appropriate local vars are set).

aa_npc_rnd_apear
aa_npc_rnd_equip

so yeah its no big deal, and you'll have to modify the scripts for your own module (these are very rough), but in the spirit of sharing... enjoy.

Incidentally - I don't need to make armor/clothes with different colors either. The appearance script will recolor equipped clothes.

Modifié par henesua, 10 juin 2012 - 11:53 .


#2
QlippothVI

QlippothVI
  • Members
  • 109 messages
Sweet, thanks! I was just wondering how to do this in my module for random NPCs.

#3
henesua

henesua
  • Members
  • 3 883 messages
You'll need to heavily modify those scripts. but the idea is there for you. Better scripters could produce much more efficient scripts as well. So I encourage a rewrite for practice. :)