My first stab at tribes scripting (trying to get trackpackbot working):
if(String::findSubStr(%msg, "trackpackbot")!=-1)
{
%posit = String::findSubStr(%msg, "trackpackbot") - 1;
$person = String::getSubStr(%msg, %posit, endofstring());
$person = "#trackpack " + $person;
say(0,$person);
$dista = String::getSubStr(%msg, %posit+19, endofstring());
say(0,"#say pack is around " + $dista);
}
I know this has problems with it, but what code would not work in tribes?
Also, is there a command/function to find the end of a String? I used "endofstring()" just to show i had no idea what function would work in that manner.