ID:272639
 
I just recently looked up a demo on how to create a name using BYOND interface, i found Skin Alerts, that didnt do me any good with the name creation, could anyone tell me how or show me a code to make it when you type the name in the input box and you click the button OK it makes your name that.
You need 430 to properly do this.

First, make an input with a unique ID (I'll use "NameInput" as an example) and set the no-command param to true (not 1, but true)(you need 430 for this). Then, make a button and give it some command (I'll use a verb called "Nchange", but you can also use client/Command() for this). Then, use winget() to get the value of the text in the input().

mob/verb/Nchange()
name = winget(src,"NameInput","text")


winget():

1st arg: Mob/client whose skin you wish to grab a param from.
2nd arg: The name of the control you wish to grab information from (NameInput in our case)
3rd arg: The param you wish to obtain the value of
The method you asked for doesn't require the use of the interface system at all. BYOND's input() function does exactly what you asked for.
name = input("What do you want your name to be","Choose a name",name)
In response to Nadrew
BYOND's input() proc doesn't look as good, though =/
In response to Jeff8500
He never asked for something that looked good.

You should also refrain from posting help that requires an unreleased beta of BYOND, it's absolutely irrelevant until that version is actually released.