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
<p>function staff_cast()</p> <p><br></p> <p>stfc = {"staffcast dissolution at " ..target, "staffcast lightning at " ..target, "staffcast scintilla at " ..target, "staffcast horripilation at " ..target}</p> <p>caststaff = math.random(#stfc)</p> <p><br></p> <p>send(stfc[caststaff])</p> <p><br></p> <p>end</p>I'd be interested in the limb counter, really just to see how it's put together. You can PM me if you prefer