Users browsing this thread: 1 Guest(s)
Custom event freezing

#5
Posts: 26
Threads: 6
Thanks Received: 0
Thanks Given: 0
Joined: Feb 2020
Reputation: 3
Status
None
Quote:Glad that was all it was, all good man, I've certainly done my share of simple blunders causing entire events to crash and spend lots of time trying to figure it out, only to realize it was a byte short on an action queue. Event coding is fun stuff!

It sure is, yeah! After some more testing, it seems I've created an additional problem: after the event, I cannot leave the map anymore, or talk to NPCs, or access the menu. Before the event that was still possible.

I've changed the last portion of my code from this:

Code:
42 32 = hide character 2 sprite
42 33 = hide character 3 sprite
42 34 = hide character 4 sprite
45 = refresh objects
47 = make character in slot 0 the leader
3A = enable movement while event is executing
78 31 = enable passing through sprite 1
78 32 = enable passing through sprite 2
78 33 = enable passing through sprite 3
78 34 = enable passing through sprite 4
D0 02 = set event bit 002
FE = return

to this:

Code:
B2 2B 2E 01 = subroutine for hiding characters 2, 3, and 4
B2 95 CB 00 = subroutine for disabling passing through objects for all 4 party members

as it seems to do the same, but is several bytes shorter. At first I thought it might be because my original code used enable passing through objects instead of disabling it, but that didn't solve the problem. It's as if the map's exits, NPCs and menu stopped working after the event execution.

Have you ever encountered something like this?
  Find
Quote  



Messages In This Thread
Custom event freezing - by Gestahl - 06-21-2020, 09:13 AM
RE: Custom event freezing - by Gi Nattak - 06-21-2020, 01:01 PM
RE: Custom event freezing - by Gestahl - 06-21-2020, 01:35 PM
RE: Custom event freezing - by Gi Nattak - 06-21-2020, 02:02 PM
RE: Custom event freezing - by Gestahl - 06-21-2020, 02:38 PM
RE: Custom event freezing - by Gi Nattak - 06-21-2020, 02:50 PM
RE: Custom event freezing - by Gestahl - 06-22-2020, 09:35 AM
RE: Custom event freezing - by Morendo - 07-01-2020, 01:46 AM
RE: Custom event freezing - by Gestahl - 07-01-2020, 10:54 AM
RE: Custom event freezing - by madsiur - 07-01-2020, 02:37 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite