Script: Cycle

Webmaster
03-16-2004, 07:48 PM
I remember once, I had a bunch of sites that showed me how to script and the different commands and etc. Well once, I made a script where if I pressed the key pad's 5 button, it would cycle thru this list of Chat Says that I had, so If I pressed it once, it would do [1] then, [2] and etc. Its not random, but it went in a line, you know? Is there any sites or anyone who knows how to do this? I remember Team $A$ had a NICE tutorial site on scripting but now its gone =\
Tribes 1 by the way

sublimezg
03-16-2004, 07:59 PM
If I had a question as to where to find anything on the web, I'd most likely ask a webmaster...

·liquid·
03-16-2004, 08:06 PM
something like this

editActionMap("playMap.sae");
bindCommand(keyboard0, make, "numpad5", TO, "spam();");
$spam[1] = "spam 1~wwshoot1";
$spam[2] = "spam 2~wwshoot1";
$spam[3] = "spam 3~wwshoot1";
$spam[4] = "spam 4~wwshoot1";
$spam[5] = "spam 5~wwshoot1";

function spam() {
$spamNum++;
if($spamNum > 5)
$spamNum = 1;
say(0, $spam[$spamNum]);
}