We all love the new stuff that came with 1.67. Colors, radial changes, and most importantly, SetName().
Well, now fully utilize the SetName() function with your NPCs.
Have a bunch of monsters with names like ...
Ancient White Dragon
Demon Skull Orc Lieutenant
Stonemark Citizen
Troll Shaman
Should the PCs be given this OOC information or should the monster's names be changed OnSpawn to something a bit more generic? Like ...
White Dragon
Demon Skull Orc or just Orc
Citizen
Troll
With this system added to your OnSpawn script (nw_c2_default9) your monsters can remain descriptive for the DMs but become generic for the PCs.
Simply add the include line and function call and you too can have more control over what the PCs see.
On each creature simply add the STRING variable "SET_NAME" and set it to what you want the creature to be called OnSpawn.
However, what if you want a Random Name?
Then simply set the STRING variable "SET_NAME" to "RANDOM" and the program will devise a random name based on the creature's RACE (standard PC races and Animals or Generic for others) and GENDER.
Or perhaps they are more important people who have full names. What then?
Follow the same step above but turn on the INTEGER variable "NAME_TYPE" on the creature by setting it to "1". This will cause to the system to choose a random last name based on Race (again standard PC races).
Simple and effective.
See the screenshots for examples.
File contains the include file, ALL of the stock dragons converted as well as a pair of sample dwarves labeled, Male Dwarven Villager and Male Dwarven Villager Full Name.
I just uploaded a new file that only has the script for import. No additional monsters or NPCs. Enjoy.
For a lot more screenshots from our world please visit: Markshire.
File contains the include file, ALL of the stock dragons converted as well as a pair of sample dwarves labeled, Male Dwarven Villager and Male Dwarven Villager Full Name. External Website Beyond Our Control
This file is JUST the include script ms_name_inc. For those who do not want to download the ERF with the Dragons renamed and the sample Dwarves. External Website Beyond Our Control
Random Names are added both in First Name by RACIAL_TYPE and GENDER and Full Names with the Last Names by RACIAL_TYPE.
As described in the text you can rename an "Ancient White Dragon" to just "White Dragon" or since the dragon is obviously white you could just make it "Dragon".
Posted by Santrix at 2007-02-11 10:46:20 Voted 10.00 on 02/11/07
Top class, works with NESS no problemo, whatever spawn script your using, just throw in those extra two lines and your cooking with gas, so to speak.. Cheers Thrym.
Posted by blkcat1028 at 2007-01-21 02:03:27 Voted 10.00 on 01/21/07
I think I love you! _________________________ Can't sleep, clowns will eat me!
Posted by Markshire at 2006-12-23 18:14:31 Voted 10.00 on 03/16/11
Posted by Jaysyn at 2006-12-23 08:57:18 Voted 9.50 on 12/23/06
Works exactly as advertised. Options to include special descriptive names like "Captain" or "Sargent" before a guards name, or "the Merchant" after a vendor's, would have been extra cool. _________________________ -=Jaysyn=-
Posted by Markshire at 2006-12-12 19:24:05 Voted 10.00 on 03/16/11
Posted by RoAnnon at 2006-12-12 17:54:12 Voted 10.00 on 12/12/06
This system is outstanding! So simple, yet it makes things so much more colorful. Great work. _________________________ I'm half human, on my mother's side
Posted by Markshire at 2006-07-20 06:47:02 Voted 10.00 on 03/16/11
Endoora said: "Of course a 10! Excellent work, way easy to use! Your Markshire scripts sure rocks guys!"
Posted by Endoora at 2006-07-19 11:46:54 Voted 10.00 on 07/19/06
Of course a 10! Excellent work, way easy to use!
Your Markshire scripts sure rocks guys! _________________________ - Endoora -
The Glory and Freedom Chronicles
A Neverwinter Nights Persistent World Project
*****
Development resumed as of 2009-JUN.
Hail all inspirational contributors!
*****
Posted by Markshire at 2006-05-24 09:34:21 Voted 10.00 on 03/16/11
Zidane700, you are welcome.
Rami, those are both nice ideas for randomizing the NPCs. Thank you.
You could add random portrait & random head to the OnSpawn script too, would make it a lot more cool heheh. But nice work! Didn't run through the code yet, at school atm. _________________________ NWN2 stuff:
- Persistent Player Owned Shop System
Posted by zidane700 ( 68.212.xxx.xxx ) at 2006-05-22 15:19:23
Omg thanks man, very useful. Makes gameplay that much more realistic. Instead of a monster named "Dragon in Human Form" it can just be "Mysterious Person" or something. So instead of me yelling "Oh my god, its a Dragon in Human Form coming at us!!!!" i can just say "Hey, whos that?". Then, i run the hell away when i see the truth in it!! *Nods his head and rambles on senselessly* Oh and thanks again.
You must be Logged In to post comments in this section.