View Single Post
  #12  
Old 02-23-2006, 01:19 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by jake13jake
Thanks. It didn't before, but maybe I should test to see if it does now.
PHP Code:
NPC *****.png 21 38
function onCreated() {
  
setshape(1,64,64);
  while(
true) {
    
move(20,0,10,0);
    
sleep 10;
    
move(-20,0,10,0);
    
sleep 10;
  }
}
function 
onPlayerTouchsMe() {
  
player.chat "giggle";
}
NPCEND 
Uhm, Loriel... I didn't move, and playertouchsme wasn't called. But what you said is exactly what I would want... an abstraction of the problem of creating a more aesthetic damage system.
Reply With Quote