Created
October 13, 2018 23:16
-
-
Save masterpoppy/11312157c2a6b8e3e7ad91d1e28a327d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************* | |
// check-alphanumeric.lsl | |
//************************* | |
integer ch = -1; | |
integer handle; | |
textbox(key user, string msg) | |
{ | |
llListenRemove(handle); | |
handle = llListen(ch, "", user, ""); | |
llTextBox(user, msg, ch); | |
} | |
default | |
{ | |
touch_end(integer index) | |
{ | |
textbox(llDetectedKey(0), "\n名前を入力してください。(英数字のみ)"); | |
} | |
listen(integer channel, string name, key id, string message) | |
{ | |
if(-1 == llSubStringIndex(llEscapeURL(message), "%")) | |
{ | |
llSay(0, "NAME: " + message); | |
} | |
else{ | |
textbox(id, "\n名前に使用できる文字は英数字のみです。\n入力データ: " + message); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment