Jump to content

World Map Events


Rickochet
 Share

Recommended Posts

I've been testing different world map events and I ran into a problem.

This is my event file.

#include EAstdlib.event
WorldMapPointerTable(0x00,WorldMapData)
POIN WorldMapData
ORG 0xD81D20
WorldMapData:
StartWorldMap(FullWorldMap, 0, 0, 0x76)
STAL 0x64
TEXTBOXTOTOP//beginning
STAL 16
TEXTWM 0x835
REMOVETEXTBOX
STAL 6
SCRO
//STAL 60
//FADETOWM [64,680] 0x76 0x00 0x00 /// Everytime I get to here in the sequence, my ROM crashes and I can't figure out why its doing that.
//STAL 60
TEXTBOXTOBOTTOM//beginning
STAL 16
TEXTWM 0x836
REMOVETEXTBOX
STAL 6
SCRO
SHOWPORTRAIT 0x0 0x0E 188 0x2 0//beginning
STAL 16
TEXTBOXTOBOTTOM
STAL 16
TEXTWM 0x837
REMOVETEXTBOX
REMOVEPORTRAIT 0x0 0x2 0
STAL 6
SCRO
SHOWPORTRAIT 0x1 0x0D 188 0x2 0//beginning
STAL 16
TEXTBOXTOBOTTOM
STAL 16
TEXTWM 0x838
REMOVETEXTBOX
REMOVEPORTRAIT 0x1 0x2 0
STAL 6
SCRO
SHOWPORTRAIT 0x2 0x0F 188 0x2 0//beginning
STAL 16
TEXTBOXTOBOTTOM
STAL 16
TEXTWM 0x839
REMOVETEXTBOX
REMOVEPORTRAIT 0x2 0x2 0
STAL 6
STAL 16
SCRO
EndWorldMap
ENDA
MESSAGE World map events end at currentOffset
If i don't use that fadetowm macro, everything works fine. Though I do need to have map fades and the like. Am I missing something? I'm pretty sure I'm doing something wrong but it eludes me.
Link to comment
Share on other sites

FADETOWM [64,680] 0x76 0x00 0x00 /// Everytime I get to here in the sequence, my ROM crashes and I can't figure out why its doing that.

I'm fairly certain 0x76 is not a valid map for it to load.

From the EA doc:


//World maps
#define FullWorldMap 0x0
#define LyciaBernSacaeMap 0x1
#define NabataDesertMap 0x2

And that's it.

Are you trying to load a CG or something?

Also, we have a pinned thread for EA questions.

Link to comment
Share on other sites

ah okay, thank you! I'm just trying to figure out how I can replace the map images with my own, thus the 0x76. Could you point me in the right direction? As in how I would go about locating the hex for these maps in the ROMs?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...