A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/lib/valid_name
Simul efun: valid_name - check if a string is a valid name for a player/wizard
Synopsis:
status valid_name(string name)
Description:
It tests if a string is a valid name for a player here: In lower
case it has to be composed of the characters 'a' to 'z' and must
have a length of at least 2 and max. 13 characters.
Return values:
returns 1 if the name would be a valid name for a player
returns 0 if it is not a valid name
Example:
if (valid_name(name))
write("This is a good name for an adventurer.\n");
else write("No player ever would have this name.\n");
Note:
Currently no check if name is banished.
Note:
There are no checks if there is a player/wizard with this name.
See also:
This page was generated in LPC
Imprint / Impressum