Hello again, everyone. Here's another thing that stumped me to no end.
Picture No. 1 and 2 is the event list for the NPC in question. With No. 1 being fixed and No. 2 being routed to jump in place. Picture No. 3 and 4 is the tent door.
So the premise is this: On default, the NPC would turn left and right and jump sometimes. When spoken to, he will stop jumping and talk to the MC. This works fine.
The problem is this: When I interact with the door, I want the NPC to turn towards the player, then speaks. This works fine... EXCEPT that he keeps jumping, He faced my character just fine, but he, keeps. jumping.
I tried everything I could think of to fix this. The pictures you see is like the fifth iteration of the event list and pages. I am totally stumped.
So... Please help me!
there are 2 solution I can think off.
variable = 0 should work, but the NPC IS in PARALLEL, so it need
to interact to stop it.
so variable -1 wont work either.
So here is what you could do in changing the event.
let it jump when its <= to 0
do nothing here,
else
variable +1 (or selfswitch)
end
page 2 = if variable > 1 to activate.
this can be done by the door as well.
solution 2:
force the selfswitch A on event 6 to be ON below variable = 0.
this can be done by a scriptcall,
var key = [mapID, 6, "A"]
$gameSelfswitch.value(key, true);
and it should work, otherwise, I dont know either.
I don't see where you're doing anything to stop him from jumping. Autonomous movement will run during other events - that's what it's designed to do, so that when you're talking to one NPC the rest of the town doesn't freeze.
So if you want his movement to stop when you're interacting with a different event, you need to turn OFF his self switch A, which is what's meeting the condition for his jumping page.
But, then, I don't really get the logic of your events overall. You're using both a self switch on the event and one of the game's variables. But you're only using that variable to be 1 or 0, so why aren't you using a switch? Are you using that DontGoInCulture variable for something else later on?
The easiest way to do this would be:
1 - Choose one of your switches to be the DontCulture thing.
2 - Take that parallel off of the first page of event 6 and delete the contents
3 - Get rid of the Control Variable commands in event 25
4 - Add a Control Switch command at the beginning of event 25 to turn the Culture switch OFF, and at the very end of event 25 to turn your culture switch ON
5 - Make the condition for page 2 of event 6 be the Culture switch ON
Edit: looks like someone beat me to it 😀
The merchant continues it's custom movement, because you are "talking to him through the tent door event". If you want the guy to stop jumping, you have to talk with the guy. So, I think you should activate a different page for the merchant guy without the custom route, when you activate the tent door event.
Well, if you want to use variables, just have the tent door event control random variable = 1 and then make a 3rd page (fixed movement) for the NPC, with a trigger random variable is greater or equal to 1. That should work, I think.
I'm not sure what you need to learn or why you'd need to remember something, you would copy what I typed and paste it into the event command.
But whatever method you want to use is fine, you've been given at least two ways to make it work. Good luck.