Strict_Gryphon90 Posted September 21, 2015 Share Posted September 21, 2015 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.eventEventPointerTable(0x??,ThisChapter)EventPointerTable(0x??,TileChanges)//////////////////////////////////////////////////// Events ////////////////////////////////////////////////////ORG 0x????????ThisChapter:POIN TurnEventsPOIN CharacterEventsPOIN LocationEventsPOIN MiscEventsPOIN BallistaData BallistaDataPOIN Bad Bad Bad BadPOIN Good Good Good GoodPOIN OpeningEvent EndingEvent//-----Turn Events-----//TurnEvents:OpeningTurnEvent(OpeningEvent)TURNOpeningEvent:ENDAEndingEvent:ENDA//-----Character Events-----//CharacterEvents:CHAR//-----Location Events-----//LocationEvents:LOCA//-----Misc Events-----//MiscEvents:CauseGameOverIfLordDiesAFEV//-----Other Events-----////-----Units-----//Good:UNIT EmptyBad:UNIT Empty//-----Ballistae-----//BallistaData:BLST EmptyALIGN 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.