◆Set Movement Route:npc waiter(Repeat, Wait)
: :◇Script:this.moveStraight(this.findDirectionTo(20, 27));
: :◇Script:if (this.pos(20, 27)) { this._moveRoute.repeat = false; };
I've noticed when I replay an event, the event won't go to the same tile. Like, it went to 20,27 the first time. But the second time replaying the event it moves two tiles and stops. (Nowhere close to where 20,27 is)
It worked fine the first time. So why not the second?
Thanks to anyone who answers. 🙏
So you have it move before checking its position? This might have conflicts with some plugins which save the event locations, even if you don't have that feature turned on. have you tried putting the check before the move.
Something like this.
◆Set Movement Route:npc waiter(Repeat, Wait)
: :◇Script:if (this.pos(20, 27)) { this._moveRoute.repeat = false; };
: :◇Script:this.moveStraight(this.findDirectionTo(20, 27));
: :◇Script:if (this.pos(20, 27)) { this._moveRoute.repeat = false; };
Total shot in the dark though.
I'm still working on the event and its about to become really long. I think I found a work around, I'll just make the event play once a day. Once the player leaves the map and comes back it works fine. I prefer that actually. (The player is seated at a table and is served 1 meal per day)
I'll have to get another event example that's not crazy long. I'll come back to this.
the fact that the event is complex and long basically supports my assumption that it is something outside the move route itself.
It would be very surprising if you can replicate the error in a simpler event.
I will be testing that out later. I don't have any plugins currently installed so I'm not sure why it wouldn't work a second time? Thanks for the replies.
When I have time I will try to replicate this script and test it out.
I have used the move route in the same way you have it in the first post, and it's worked fine for me. It looks like the move route is in one event, but it's another event that you're moving, right? Do the other things in the "controlling" event both before and after the move route still happen, even when the event doesn't move? Is there anything that could be getting in the event's way? Another event, even if it has a different priority, and I think even if it's been erased, will stop an event from moving.