Jump to content
Sign in to follow this  
Strict_Gryphon90

Expanded FE7 Event Assembler Template

Recommended Posts

Hello everyone,

I made an FE7 template for myself to help me keep things organized and to not have to type the same things each time I write a new script. It also includes sections for tile changes and setting up enemy escape points. I figured I'd post it here in case anyone else can make use of it.

Here it is:

//Made by markyjoe1990 of Youtube
//Modified by Nintenlord and Strict_Gryphon
//Special thanks to Arch and Blazer (tile change macros), and Gryz, Primefusion and Mikey Seregon (escape tile macros)

#define DISABLE_TUTORIALS
#include EAstdlib.event

EventPointerTable(0x??,ThisChapter)
EventPointerTable(0x??,TileChanges)

//////////////////////////////////////////////////
// Events //
//////////////////////////////////////////////////

ORG 0x????????

ThisChapter:
POIN TurnEvents
POIN CharacterEvents
POIN LocationEvents
POIN MiscEvents
POIN BallistaData BallistaData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN OpeningEvent EndingEvent

//-----Turn Events-----//

TurnEvents:
OpeningTurnEvent(OpeningEvent)
TURN

OpeningEvent:
ENDA

EndingEvent:
ENDA

//-----Character Events-----//

CharacterEvents:
CHAR

//-----Location Events-----//

LocationEvents:
LOCA

//-----Misc Events-----//

MiscEvents:
CauseGameOverIfLordDies
AFEV

//-----Other Events-----//

//-----Units-----//

Good:
UNIT Empty

Bad:
UNIT Empty

//-----Ballistae-----//

BallistaData:
BLST Empty
ALIGN 4

//-----Event End Message-----//

MESSAGE Events end at offset currentOffset

//////////////////////////////////////////////////
// Tile Changes //
//////////////////////////////////////////////////


TileChanges:
TileMapEnd

//-----Tile Change End Message-----//

MESSAGE Tile changes end at offset currentOffset

//////////////////////////////////////////////////
// Escape Tiles //
//////////////////////////////////////////////////

#define LeaveLeft 0x00
#define LeaveRight 0x01
#define LeaveDown 0x02
#define LeaveUp 0x03
#define LeavePoof 0x05

#define EscapePoint(XX,YY,LeaveWay) "BYTE XX YY LeaveWay 0x00"
#define EndEscapeList "BYTE 0xFF 0x00 0x00 0x00"

#define EscapePointerListOffset 0xB97100
#define EscapePointer(id,offset) "ORG EscapePointerListOffset+(4*id); POIN offset; ORG offset"

EscapePointer(Ch??,0x??????)
EndEscapeList

//-----Escape Tile End Message-----//

MESSAGE Escape tiles end at offset currentOffset

Let me know if you have any questions or if I made any mistakes.

Hope you get a good use out of it,

Gryphon

Share this post


Link to post
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...