You are not logged in.
It's just a very specific thing but it's being a headache.
There is a guy in mahogany town that sells ragecandybars and doesn't let you go to route 44. There is an xy trigger event in front of the guy that makes the guy move just so that you can't pass (then hiro moves one step back):
; xy triggers
xy_trigger 0, $8, $13, $0, UnknownScript_0x190013, $0, $0
xy_trigger 0, $9, $13, $0, UnknownScript_0x190013, $0, $0
UnknownScript_0x190013: ; 0x190013
showemote $0, $2, 15
applymovement $2, MovementData_0x1900a9
follow $0, $2
applymovement $0, MovementData_0x1900a7
spriteface $0, $3
applymovement $2, MovementData_0x1900ad
This guy however, doesn't always appear, but disappears when you beat the gym leader of mahogany and its flag is set by the leader.
What I don't understand is how the trigger magically stops happening when the guy disappears, because as I understand it, it's an xy trigger independent of the guy. What I wanted to do is edit the guy's flag to make it show a bit more to prevent hiro from passing until the new flag is set, but while I can make the guy show, the xy trigger no longer happens.
There isn't any checkbit or anything to make the trigger happen or not happen so I'm lost. For some reason the trigger stops happening when the guy is intended to disappear, but I don't see what makes the trigger to stop happening.
Thanks in advance.
If the guy disappears indeed right after beating the gym leader, but not anytime before it, the script that is run through after the leader is beaten makes this person to disappear. But it probably also changes the trigger number used by this map while at it.
(See script code 12 from the G/S compendium.)