View Single Post
  #1  
Old 08-13-2008, 07:06 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
trigger problems

a friend of mine made a script but something odd is going wrong.
PHP Code:
function onActionGrab()
{
  
triggeraction(level.chairxlevel.chairy"Shock""");

PHP Code:
function onCreated()
{
  
setshape(13232);

  
/*
  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? :[
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote