Thread: Custom baddies
View Single Post
  #3  
Old 07-27-2008, 09:08 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by The_Kez View Post
This isn't a very ellaborative answer, I know there is such a command but I wouldn't have posted this forum topic if I didn't need help that required an answer beyond what the Graal wiki can provide.

When you use this command is it necessary to check the direction of the baddy? And since the baddy is not a showcharacter how can you check which direction the baddy is facing in the first place?

Or would actually making it a showcharacter and then using setcharani on it work well enough?
PHP Code:
function onCreated()
{
  
this.ani "myidle";
  
onMovementFinished();
}
function 
onMovementFinished()
{
  if ( 
shouldMove() )
  {
    
// move again
    
this.ani "mywalk";
  }
  else
  {
    
this.ani "myidle";
    
scheduleevent1"MovementFinished"", "" );
  }

Something like that has always worked for me. showcharacter() isn't neccesary.
__________________
Reply With Quote