Here you go!
//Cast Random staff blast------------------------------------------------
var cast = "";
var random = Math.floor(Math.random() * 4);
switch (random) {
case 0:
cast = "DISSOLUTION";
break;
case 1:
cast = "LIGHTNING";
break;
case 2:
cast = "SCINTILLA";
break;
case 3:
cast = "HORRIPILATION";
}
send_command("staffcast " + cast + " at " + get_variable("tar"), true);
Comments
I'd be interested in the limb counter, really just to see how it's put together. You can PM me if you prefer