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 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(205188115$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.5player.y""); 
      
temp.npc.join("healthdisplay"); 
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 08:12 AM.


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