text change while npc moving

In my game, some time npc move to go in the bed.
While thy move to the bed thy say something and whn sleping something else.

Just to be clearn, it's the move route that was used.

I want to know what to put in conditional brench for check if npc is curently moving when I talk to him.

Thanks.
I don't know about using a conditional branch for this, someone else may be more helpful for that, but I believe another way you could do it is using a switch and a new tab on the moving npc.

1.Make a switch "NpcMoving"
2.Turn it on when the npc moves to go to bed
3.Make a new tab on the npc with the trigger condition being the switch "NpcMoving"
4.Add text for what you want the npc to say while going to bed into this new tab.

When your npc is in bed, turn the switch off so they don't keep saying that text.

This may be a kind of clunky way to do it, but it should work, I think.
I don't know about using a conditional branch for this, someone else may be more helpful for that, but I believe another way you could do it is using a switch and a new tab on the moving npc.

1.Make a switch "NpcMoving"
2.Turn it on when the npc moves to go to bed
3.Make a new tab on the npc with the trigger condition being the switch "NpcMoving"
4.Add text for what you want the npc to say while going to bed into this new tab.

When your npc is in bed, turn the switch off so they don't keep saying that text.

This may be a kind of clunky way to do it, but it should work, I think.
its exacly the way i cant use lol. Hard to explain....
Cam I ask for a reup?, Still looking for a way to make it done. Thanks.
you need to explain better what you want to do, because the way described above is the usual way.
Also, adding screenshots of the events would help - but please, use [alt]-[prtscrn] for your screenshots - the screenshots you've done with [prtscrn] alone are usually almost unreadable small.
For be more clear.... Some time NPC follow a traceroute. While moving they need to say: get out of my way, and while they are finish it say something else. I know you will tell me many way for doing that... So I need to tell you that the way I make my game they have many way I cant use. Its must be all in same tab of the event. So I only need to find the code that told if NPC is executing a traceroute curently. Thanks =:0)
Can't you just do the normal move route but don't put 'wait for move's completion' at the end? Then add wait 1 second, then have your text? I'm not really sure why the other way doesn't work, it's how I would have tried it at first, but I think this should work fine.
Can't you just do the normal move route but don't put 'wait for move's completion' at the end? Then add wait 1 second, then have your text? I'm not really sure why the other way doesn't work, it's how I would have tried it at first, but I think this should work fine.
this way will not work too. its require calculation, etc... also its not dynamic. its not for a cute scene, npc actually ofthen moving on the map.
this way will not work too. its require calculation, etc... also its not dynamic. its not for a cute scene, npc actually ofthen moving on the map.
Could you describe what you actually want to happen? What I said should result in the words appearing as the npc moves, not after, so I think I misunderstood what you want.
Hi! This event script is for a parallel process. Increase 100 for a longer delay and adjust in other places too.
PHP:
if(this.timeOut === undefined){
  this.timeOut=0;this.msg=0;
  this.moveMessage=["Stop moving.","I said stop moving!","I hate when people are moving!","Stop it!"]
} this.timeOut++;
if(this.timeOut === 100){ this.timeOut=0;
  if($gamePlayer.isMoving()){ var ev=$gameMap._events[this._eventId];// set this to the id of the guy
     ev.turnTowardPlayer();ev.jump(0,0);ev.jump(0,0);ev.jump(0,0);
     $gameMessage.add(this.moveMessage[this.msg]);
     this.msg++; if(this.msg===this.moveMessage.length) this.msg = 0;
  }
}
stopmoving-opt.gif
I will try to explain it again. player ofter do moveroute without wait for completion option checked. I want that if we talk during the move route we got some text and after some other.

I already know a lot of bad way for doing that. the move route was the one at event load...
So what I want is the script that I can put inside a conditional brench that return true or false depending if the even executing a mouve route.
this logic in even:
If player_is_moving then
message A
else
message B

I know its exist a direct way for check that, I see it while ago.
thanks.

Original thread: https://forums.rpgmakerweb.com/threads/text-change-while-npc-moving.74424/