Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Tolman

#1
I'm trying to make an NPC enter the room, walk to a chair and sit. After many trials & errors it works, sort of, but the character keeps walking on place for a few seconds before moving. I wonder why.
I put the walking script in globalscript.asc, after I found out that in the room script it would make the character endlessly walk on place.

Here's the globalscript:

 
    if (cEgo.Room == 4)
    {cChar3.ChangeRoom(4, 607, 465);
   cChar3.Walk(407, 358, eNoBlock, eAnywhere);


and here's the room code:
bool miss_arrived = false;


function room_RepExec()
{
     if (cChar3.Room == 4) 
   {
     
      if (!cChar3.Moving && !miss_arrived) 
      {
        cChar3.FaceLocation (cChar3.x, cChar3.y+1);
        cChar3.LockView(11);
        cChar3.Animate(1, 5, 0, eNoBlock);
        miss_arrived = true;
      
      }
   }

SMF spam blocked by CleanTalk