Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-09-24 18:42:02

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 100/434
Website

Problem with trigger not happening

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
db 2
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
stopfollow
spriteface $0, $3
2call UnknownScript_0x19002f
applymovement $2, MovementData_0x1900ad
end
; 0x19002e


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.

https://github.com/yenatch/pokecrystal/ … nyTown.asm

Thanks in advance.

Offline

#2 2013-09-24 18:57:01

Miksy91
Member
Registered: 2010-10-16
Post 1,899/2,317

Re: Problem with trigger not happening

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.)

Offline

#3 2013-09-24 19:31:12

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 101/434
Website

Re: Problem with trigger not happening

Aha, I wasn't aware of that script. It turned out that it was oak's radio tower call what contained the activate trigger script. Yup, thanks for the quick answer, as usual!

Offline

#4 2013-09-24 21:07:27

Miksy91
Member
Registered: 2010-10-16
Post 1,900/2,317

Re: Problem with trigger not happening

Crystal_ wrote:

Yup, thanks for the quick answer, as usual!

No problem at all!

Offline

Board footer

Powered by FluxBB