Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.