ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
HELP ON XELABOT pleasee (Bots)
HELP ON XELABOT pleasee // Botsstarcube.vrMay 21, 2001, 12:08am
Um on the script i have
$moderador = "StarCubE.VR" How can i do to put more than one moderador xelagMay 22, 2001, 12:28pm
include a Text field with all the names in the area with subs and events:
Text Moderators StarCube.VR AMD Evesolyn XelaG EndText at the begining of your code: var /s_Moderators SListSetText /s_Moderators Moderators (this reads your text field into a string list) supposing $n has the name of a person, to check for the presence of the name in the list: IfSlistGetString /s_Moderators $n %c <DoSomethingHere> Else <DoSomethingElse> (%c has the index in the string list, 0 if it fails to find it) XelaG [View Quote] whoMay 23, 2001, 12:39pm
Hi,
Some extra help pleas (see below) :) [View Quote] In this case I assume %c > 0 if the string $n is matched? eg if string $n = XelaG then %c = 4? If not, then what would it (%c) be? (Considering using this elsewhere) -- Cheers, Who xelagMay 24, 2001, 4:51pm
For experts I say: look in the docs :)
Well, since it is an IF statement, the value of %c does not matter if it fails (and is set to 0), but can be of value if it succeeds: indices in my string lists start with 1. You can test it easily. XelaG [View Quote] |