If you want to write scripts so they only happen to a specific user, this is how you do that.
Say a friend is coming over and as a joke you want to dress them in a prop they hate. ;-) Now you dont want to dress everyone that enters that room, so you could use this and JUST dress the people that enter named Mo.
ON ENTER {
{ [ prop ids ] SETPROPS } USERNAME "Mo" == IF }
This is how you would dress someone that uses ONLY lowercase letters in their names.
ON ENTER {
{ [ 952248517 ] SETPROPS }
USERNAME "[A-Z]" GREPSTR NOT IF }
Foxy expanded on that script with this one....
ON ENTER {
{ [ -ids for uppercase nick- ] SETPROPS }
{ [ -ids for lowercase nick- ] SETPROPS }
USERNAME "^[A-Z]" GREPSTR IFELSE }
Note this give them the uppercase one only if the first letter is a capital a to z, and all others get the lowercase one. Special characters at the beginning will be counted as lowercase.
Here is a way to only allow this user to enter this room. All others are kicked to the gate..
ON ENTER {
{ "Welcome "USERNAME + LOCALMSG }
{ 86 GOTOROOM }
USERNAME "Tom" == IFELSE }
What if you want to allow only two people in this room?
ON ENTER {
{ "Welcome "USERNAME + LOCALMSG }
{ 86 GOTOROOM }
USERNAME "Tom" == USERNAME "Dick" == OR IFELSE }
You can keep adding names that way as long as you use the OR like this....
USERNAME "Tom" == USERNAME "Dick" == OR USERNAME "Harry" OR IFELSE }
How 'bout a script to welcome your wizards?
ON SIGNON {
{ nm = { "Hi there, wizzie!" LOCALMSG } USERNAME nm == IF
} [ "wizname1" "wizname2" "wizname3" "etc...." ] FOREACH
}
This script allows certain persons into a room...
ON ENTER { 0 name =
{ names = { 1 name = } names username == IF }
[ "TweedleDee" "TweedleDumb" "TweedleDumber" ] FOREACH
{ 86 gotoroom } 0 name == IF
}
Put the names of the people where you see the Tweedles that you want to be able to access a room exactly as they will be wearing that name. Anyone entering that isnt on your list, gets kicked to the gate. (assuming your gate id is 86 of course)
Ok a fun one to finish with...
ON SELECT {
[ [ "Jockey " " Ridem-Who" ]
[ "Jingle " " Jolly-Who" ]
[ "Tubby " " Tinkerbell-Who" ]
[ "Happy " " Holly-Who" ]
[ "Wookie " " Wally-Who" ]
[ "Frumpy " " Fingerlily-Who" ]
] DUP LENGTH RANDOM GET msg =
"@100,100 " msg 0 GET & USERNAME & "," & msg 1 GET & LOCALMSG
}
;Let everyone have a click and create a new name for themselves. ;-)