So I'm very new to the whole hacking thing, but I'm determined to do it and am learning a lot in the process. However I've run into an issue that I have no idea how to deal with. When the lord dies, the game doesn't end...
Here is the code:
#define DISABLE_TUTORIALS
#define BACKWARDS_COMPATIBILITY
#include EAstdlib.event
EventPointerTable(0x06,Pointers)
ORG 0xD80000
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 LynLord Lyn Level(1, Ally, 0) [10,9] [10,9] [Flux, Nosferatu, Vulnerary] NoAI
UNIT Matthew Thief Lyn Level(1, Ally, 0) [11,7] [11,7] [IronSword, LockPick, Vulnerary] NoAI
UNIT
Bad:
UNIT Bandit Soldier 0x00 Level(3, Enemy, 0) [0,0] [0,0] [IronSpear, Vulnerary] [0x00,0x03,0x09,0x00]
UNIT Bandit Archer 0x00 Level(2, Enemy, 0) [6,1] [6,1] [IronBow] [0x00,0x03,0x09,0x00]
UNIT Bandit Archer 0x00 Level(2, Enemy, 0) [2,5] [2,5] [IronBow] [0x00,0x03,0x09,0x00]
UNIT Bandit Brigand 0x00 Level(1, Enemy, 0) [9,0] [9,0] [IronAxe] [0x00,0x02,0x02,0x00]
UNIT Bandit Brigand 0x00 Level(1, Enemy, 0) [1,2] [1,2] [IronAxe] [0x00,0x02,0x02,0x00]
UNIT Bandit Brigand 0x00 Level(1, Enemy, 0) [0,7] [0,7] [IronAxe] [0x00,0x02,0x02,0x00]
UNIT Bandit Soldier 0x00 Level(1, Enemy, 0) [12,5] [12,5] [IronSpear] [0x00,0x03,0x09,0x00]
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:
OOBB
LOU1 Good
ENUN
LOU1 Bad
ENUN
ENDA
Ending_event:
MNCH 0x01
ENDA
// Events
// Manual Movement
// Scripted Fights
// Units
// Shop Data
MESSAGE Events end at offset currentOffset
Thank you in advance for any help!