$f will randomly generate a first name, based on the sex of the NPC and $l will randomly generate a last name. So an example:
Code: Select all
mset 10 name $l $n villager
mset 10 short $l $n
mset 10 long $l $n, a Villager, is walking around here.
When the NPC is loaded in the game, it will generate a the names and will look something like:
Name: Hiko Mota villager
Short: Hiko Mota
Long: Hiko Mota, a Villager, is walking around here.
Remember, everytime an NPC is created, either by minvoke or in-game reset, a random name will be generated for them. So, even if you have 30 instances of the above villager, each one will have a random name. This adds a lot of fun spice to your zone!
Also, only one $n and $f will be made per instance, so you can even do this:
Code: Select all
mset 10 long $f $f of the Repeat Ninja is here!
In-game:
Long: Sukiko Sukiko of the Repeat Ninja is here!
You can also apply this if you want someone to have the same last name, but a different first name.
Code: Select all
mset 10 long Happiko $f of the Happiko Family is here!
Some warnings, prototype NPCs will not have their names randomly generated. This is to aid in testing and prevent NPCs from accidentally getting their generated name saved as the base NPC name. Also, if you need to fix or tweak an NPC that has had a name generated for it, remember that their current name will save over their $f or $l. So, you either need to flag an NPC as prototype and invoke a brand new one, so that NPC won't generate its names, or change it's generated names to $f and $l respectively.
Use this anywhere you have a lot of the same type of NPC wandering around and it makes sense!