ID:173278
 
Could anyone help me figure out the possible ways to do these when a player chooses a name:

Either after or during they are choosing the name, such as adding an argument that would not allow they to enter/have any numbers or characters/spaces such as !@#$%&$%&(_+= ect ect...

So that when they are entering the desired name, they can only enter a certain ammount of characters.

And lastly, is there a way to lowertext() all but the first letter of the text string they enter? have tried isnum, is text as text, but those don't seem to do what I want, or are reading the whole thing as a text string and ignoring the fact that there is any numbers in it.

do
name=input("What's your name?")
while (IllegalName(name))
name=lowertext(name)
var/FirstLetter=copytext(name,1,2)
FirstLetter=uppertext(FirstLetter)
name="[FirstLetter][copytext(name,2,0)]"

proc/IllegalName(text as text)
if(length(text)>10)
return 1
for(var/IllegalChar in list("!","@","#","$"))
if(findtext(text,IllegalChar))
return 1
return 0


I think that should give you a basic idea as to doing whatever you want to names. I suggest you look up the do-while loop in the help if you don't understand it allready.