View Single Post
  #1  
Old 06-01-2012, 06:29 PM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
NPC Drop w/ value

How do I set the text in the NPC of a clientr.var.

Here is the NPC script

PHP Code:
function onCreated()
{
  
showText(205, 188, 115, $pref::graal::defaultfontname, "c", "" @(player.clientr.hp));

//all the show text stuff that comes with it
 
setTimer(0.2);
 }
 
function 
onTimeOut()
{
destroy();
} 

and the place script

PHP Code:
      temp.npc = this.level.putNPC2(player.x+4.5, player.y, ""); 
      
temp.npc.join("healthdisplay"); 
Reply With Quote