a friend of mine made a script but something odd is going wrong.
PHP Code:
function onActionGrab()
{
triggeraction(level.chairx, level.chairy, "Shock", "");
}
PHP Code:
function onCreated()
{
setshape(1, 32, 32);
/*
showcharacter();
this.headimg = "era_personal_understood-noobhulk.gif";
this.colors[0] = "green";
this.colors[1] = "darkpurple";
this.colors[2] = "darkpurple";
this.colors[3] = "green";
this.colors[4] = "darkpurple";
this.colors[5] = "black";
this.colors[6] = "white";
this.shieldimg = "no-shield.png";
this.bodyimg = "wad-muscle-body.png";
dir = 2;
setcharani("era_prison-elect-idle", "");
*/
level.chairx = this.x;
level.chairy = this.y;
}
function onActionShock()
{
this.setcharani("era_prison-elect-shock", "");
message("Did someone just push the button?...");
sleep(3);
message("#$!, I've gotta get out of here...");
sleep(3.00);
message("SHI--");
sleep(.5);
message("");
}
it doesn't work unless I take out all the attribute stuff. (the stuff commented out) can I get an explanation? :[