Author Topic: Variable NPC appearances and weapons  (Read 323 times)

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Variable NPC appearances and weapons
« on: June 11, 2012, 12:52:45 am »


                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 .
                     
                  


            

Legacy_QlippothVI

  • Full Member
  • ***
  • Posts: 197
  • Karma: +0/-0
Variable NPC appearances and weapons
« Reply #1 on: June 16, 2012, 09:34:16 am »


               Sweet, thanks! I was just wondering how to do this in my module for random NPCs.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Variable NPC appearances and weapons
« Reply #2 on: June 16, 2012, 02:42:53 pm »


               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. '<img'>