Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If the creature is using the regular on spawn script (nw_c2_default9) or the x2 script that calls it, x3_name_gen will be executed.
{
string name = RandomName(NAME_FIRST_GENERIC_MALE);
SetName(OBJECT_SELF,name);
}
this is the most simple script...
NAME_FIRST_GENERIC_MALE
is a constant,they are located in the constants tab in the script editor.
there are also constants for elf,dwarf,male,female,last-name etc....
always save your scripts under a different name,so they wont be the default script.
just do not name them the default,or you will overwrite those for the entire module you working on.
i do not know how to do a first and last name though.
optional,you could just add:
ExecuteScript("CompiledScriptName",OBJECT_SELF);
so you can run any script anytime you want.
i have just finished a random name+appearance script myself...
int number = Random(int max-number);
is very handy.
all my unimportant NPC's have a random appearance..not just a random name.
they also say 10 different random things when you talk to them.