GenerateName() don't work in V5.0

Posted by Unia_nt on Sat 13 Feb 2016 05:50 PM — 3 posts, 15,525 views.

#0
GenerateName() always return nil in Ver5.0
Australia Forum Administrator #1
You need to read the names file first. You can choose different files depending on the sorts of names you want.

For example:


check (ReadNamesFile ("names/albion1.nam"))

for i = 1, 20 do
  Note(GenerateName())
end


Output:


Cadaynia
Edelilith
Cadelan
Legeadith
Agraella
Ulaledia
Drayng
Cralen
Chirella
Ybuwiel
Acaewien
Figolla
Acoan
Doethien
Aselidien
Kendadith
Gwywiel
Airelle
Auwien
Ethirelith


Template:function=ReadNamesFile
ReadNamesFile

The documentation for the ReadNamesFile script function is available online. It is also in the MUSHclient help file.

#2
Thanks Nick!

Sorry for my careless, I forgot the name file.