I just noticed that the first post’s version of defining the DeathQuoteTable is different than the one Arch mentioned a few posts down. Using Arch’s version of the defining works while the one in the first post doesn’t and spits out a “Didn’t reach end, currently at comma” error message in EA.
So if I decide to go the route of just moving the “BattaDies” above the macro in the file and making sure nothing else comes after ‘DeathQuoteTable’, is this what things should look like?
[spoiler=Event]
#define DISABLE_TUTORIALS
#include EAstdlib.event
EventPointerTable(0x06,Pointers)
ORG 0xD148A0
Pointers:
POIN Turn_events
POIN Character_events
POIN Location_events
POIN Misc_events
POIN TrapData TrapData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN Opening_event Ending_event
Good:
UNIT Lyn_t Mercenary Lyn_t Level(1, Ally, 0) [0,7] [3,7] [IronSword, Vulnerary] NoAI
UNIT
Villagers:
UNIT 0xD6 0x47 0x00 Level(1, NPC, 0) [4,0] [5,4] [0x00] NoAI
UNIT 0xD5 0x48 0x00 Level(1, NPC, 0) [5,0] [4,5] [0x00] NoAI
UNIT 0xD3 0x48 0x00 Level(1, NPC, 0) [7,0] [6,5] [0x00] NoAI
UNIT
Bad:
UNIT 0x69 Brigand Batta Level(3, Enemy, 0) [3,0] [5,3] [IronAxe] PursueWithoutHeed
UNIT 0x67 Brigand 0x00 Level(1, Enemy, 0) [6,0] [3,5] [IronAxe, Vulnerary] PursueWithoutHeed
UNIT 0x68 Fighter 0x00 Level(1, Enemy, 0) [8,0] [7,5] [IronAxe] AttackInRange
UNIT
Boss:
UNIT Batta Brigand Batta Level(1, Enemy, 0) [5,3] [5,3] [IronAxe] PursueWithoutHeed
UNIT
Turn_events:
TurnEventPlayer(0x0,Opening_event,1)
End_MAIN
Character_events:
End_MAIN
Location_events:
End_MAIN
Misc_events:
CauseGameOverIfLordDies
DefeatAll(Ending_event)
End_MAIN
TrapData:
End_MAIN
Opening_event:
//MoveToChapter(0x02)
OOBB
STAL 0x64
MUS1 0x0041
LOU1 Good
ENUN
STAL 0x1E
CURF [3,7]
FADI 10
BACG 0x1C
TEX1 0x830
REMA
STAL 0x1E
MUS1 0x000C
LOU1 Villagers
LOU1 Bad
ENUN
CURF [5,4]
STAL 0x1E
TEX1 0x833
REMA
STAL 0x1E
FIGH 0x69 0xD6 Fight $00000000
KILL [5,4]
UNCR 0x69 0x02
ENUN
DISA [5,3]
LOU1 Boss
ENUN
STAL 0x1E
FIGH 0x67 0xD5 Fighting $00000000
KILL [4,5]
UNCR 0x67 0x02
ENUN
MOVE 0xD3 [5,7]
MOVE 0x68 [6,7]
ENUN
STAL 0x1E
TEX1 0x834
REMA
STAL 0x1E
FIGH 0x68 0xD3 Fightingyea $00000000
KILL [5,7]
UNCR 0x68 0x02
ENUN
STAL 0x1E
CURF [3,7]
TEX1 0x835
REMA
STAL 0x1E
MOVE [3,7] [9,8]
MOVE Batta [11,8]
MOVE 0x67 [8,6]
MOVE 0x68 [7,10]
UNCR Batta 0x02
UNCR 0x67 0x02
UNCR 0x68 0x02
UNCR Lyn_t 0x02
ENUN
CURF [9,8]
STAL 0x1E
FADI 10
BACG 0x1C
TEX1 0x836
REMA
MOVE 0x68 [6,0]
ENUN
DISA [6,0]
ENDA
Fight:
AttackerHit(30,2)
EndOfBattle
Fighting:
AttackerHit(30,2)
EndOfBattle
Fightingyea:
AttackerHit(30,2)
EndOfBattle
BattaDies:
TEX1 0x832
ENUT 0x02
ENDA
Ending_event:
STAL 0x64
FADI 10
BACG 0x1C
MUS1 0x0038
STAL 0x1E
TEX1 0x837
MUEN 0x05
MORETEXT 0x838
SOUN 0x02D9
MORETEXT 0x839
STAL 0x1E
REMA
MUEN 0x08
STAL 0x1E
MNCH 0x01
UnitClear
ENDA
// Events
// Manual Movement
// Scripted Fights
// Units
// Shop Data
MESSAGE Events end at offset currentOffset
#define DQTableOffset 0xC9F2EC
#define DeathQuoteTable(index,CharacterID,TextPointer,EventPointer,TriggerID) “ORG DQTableOffset+(16*index); BYTE CharacterID; BYTE 0x43; ALIGN 4; SHORT TextPointer; ALIGN 4; POIN EventPointer; BYTE TriggerID; ALIGN 4”
DeathQuoteTable(0x00,Batta,0x832,BattaDies,0x02)
ORG 0xD11EA0
[/spoiler]
The second ‘ORG’ that you mention, what is that suppose to point to? Since if I were to stick to the deathquotes being in the same event file as my main chapter events, I’m not too sure. I have the second ORG pointing to free space within my ROM.
Currently I put 0xC9F2EC for DQTableOffset, and it writes to the first death quote slot in the nightmare module which is normally used for another character, but when I changed it to 0xC9F5CC, which is the default offset for Batta’s death quotes, it doesn’t work. I can’t get the death quotes to work with anything other than putting 0xC9F2EC when defining the DQTableOffset.