Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-28-2014, 12:07 AM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Finding Params

I'm having issues with the placed NPC finding the right params...

On the placement..
PHP Code:
function onActionServerSide(){
 if (
params[0] == "place"){
  
temp.npc this.level.putNPC2(player.xplayer.y+1params[1]);
  
temp.npc.join("combat_dmgdisplay");
  }
 } 

//#CLIENTSIDE
//blah blah blah
triggerserver("weapon"this.name"place"123); //123 is my test value (params[1]..this is what I want the NPC placed to display 

and in the NPC..
PHP Code:
function onCreated(){
 
setImg("block.png");
 
setTimer(1);
 
dontblock();
 
drawoverplayer();
 
this.chat params[1];
 }
 
function 
onTimeOut(){
 
destroy();
 } 

The NPC just keeps saying 0..
I most likey have things in the wrong spots.

Someone help me out please!

Last edited by i8bit; 05-28-2014 at 09:14 AM..
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:14 PM.


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