Skip to content

Commit

Permalink
Merge pull request #42 from FireEmblemUniverse/develop
Browse files Browse the repository at this point in the history
Day 6 Scheduled Merge
  • Loading branch information
Crazycolorz5 committed Jul 10, 2018
2 parents 015989c + c6fff8b commit 7abf740
Show file tree
Hide file tree
Showing 52 changed files with 2,315 additions and 111 deletions.
4 changes: 4 additions & 0 deletions Battle Palettes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Palette Definitions.txt
*.event
*.exe
_palettes
3 changes: 3 additions & 0 deletions Battle Palettes/Battle Palettes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# char{0xE} "FE3AnnaPalette" set{0xE, 0x0, Mage_F}
5553FF7FFF6B1F4B2E193E009810D01C9810D01CD01C392A9810D01CD01CA514
11 changes: 11 additions & 0 deletions Custom Definitions.event
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef DebuffTable
#define DebuffTable 0x203F100
#endif
#ifndef ClassTable
#define ClassTable 0x807110
#endif


#define LunarBrace MoonBracelet
#define SolarBrace SunBracelet
Expand All @@ -18,6 +22,8 @@

//Class definitions
#define BlitzLord 0x2
#define VoidMonster 0x3
#define VoidMaster 0x4

// Unit definitions
#define Vedge 0x1
Expand All @@ -26,8 +32,13 @@
#define Chiva 0x4
#define Verge 0x5
#define Anna 0x6
#define Boo 0x8
#define Fanni 0xD
#define Murat 0xF
#define Ersatz 0x1F

#define Jazzak 0x42
#define Dennis 0x50

//Item definitions
#define BlitzAxe Rapier
Expand Down
Binary file added Engine Hacks/DismountMount Code/Dismount Routine.dmp
Binary file not shown.
Binary file not shown.
Binary file added Engine Hacks/DismountMount Code/Mount Routine.dmp
Binary file not shown.
Binary file not shown.
32 changes: 32 additions & 0 deletions Engine Hacks/_MasterHackInstaller.event
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ POP

ORG $31650 //Usable in chapter 6
SHORT 0x46C0

//Change poison damage
//Set constant damage to 4
ORG 0x25A3E
SHORT 0x3304
//Set variable damage to 0
ORG 0x25A36
SHORT 0x2000

POP


Expand Down Expand Up @@ -169,6 +178,26 @@ POP
#incbin "winbutton.dmp"
POIN Offscreen_Levelup

// DismountMount hack
ALIGN 4
DismountRoutine:
#incbin "DismountMount Code/Dismount Routine.dmp"
POIN ClassTable
POIN MountedClassTable

DismountUsability:
#incbin "DismountMount Code/Dismount Usability Routine.dmp"
POIN MountedClassTable

MountRoutine:
#incbin "DismountMount Code/Mount Routine.dmp"
POIN ClassTable
POIN MountedClassTable

MountUsability:
#incbin "DismountMount Code/Mount Usability Routine.dmp"
POIN MountedClassTable


//Repoint Unit Menu
PUSH
Expand Down Expand Up @@ -243,6 +272,9 @@ POP
// MenuCommand(UMText_Switch,UMText_SwitchDesc,GreenText,SwitchUsability,SwitchCommand) //switch
UM_Drop

MenuCommand(UMText_Transform, UMText_TransformDesc, BlueText, DismountUsability, DismountRoutine)
MenuCommand(UMText_Revert, UMText_RevertDesc, BlueText, MountUsability, MountRoutine)

UM_Item
UM_Trade
UM_Supply
Expand Down
12 changes: 11 additions & 1 deletion Events/Ch1.event
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ LocationBasedEvents:
Chest(SteelAxe,11,9)
Village(0x7,AnnaVillage,1,1)
Village(0x8,VillageGem,1,10)
Vendor(VendorList, 4, 6)
Armory(ArmoryList, 7, 6)
Seize(16,2)
END_MAIN

Expand All @@ -61,6 +63,14 @@ ENUN
NoFade
ENDA

ArmoryList:
SHLI IronSword SteelSword IronLance IronAxe IronBow SteelBow Longbow

VendorList:
SHLI Vulnerary ChestKey Lockpick LightRune

ALIGN 4

MiscBasedEvents:
CauseGameOverIfLordDies
END_MAIN
Expand Down Expand Up @@ -92,7 +102,7 @@ UNIT Chiva Archer Vedge Level(1, Ally, 0) [10,1] 0x00 0x00 0x0 0x00 [0x00] NoAI
UNIT

CoinChick:
UNIT Anna Thief Vedge Level(4, Ally, 0) [2,13] 0x00 0x00 0x0 0x00 [IronSword, Lockpick] NoAI
UNIT Anna Thief Vedge Level(4, Ally, 0) [1,2] 0x00 0x00 0x0 0x00 [IronSword, Lockpick] NoAI
UNIT

Bad:
Expand Down
241 changes: 241 additions & 0 deletions Events/Ch10.event
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
//#include EAstdlib.event

EventPointerTable(0x33, ThisChapter)

EscapePointPointerTable(0x0B, Ch10EscapePoint)


Ch10EscapePoint:
//EscapePoint(0, 0, MoveUp)
EscapePoint(3, 8, NoMove)
EscapePointEnd

ThisChapter:
POIN TurnBasedEvents
POIN CharacterBasedEvents
POIN LocationBasedEvents
POIN MiscBasedEvents
POIN Dunno Dunno Dunno
POIN Tutorial
POIN TrapData TrapData
POIN Units Units
POIN $0 $0 $0 $0 $0 $0
POIN BeginningScene EndingScene

TurnBasedEvents:
TurnEventPlayer(0,PirateEntry,1)
TurnEventPlayer(0,FirstFlood,3)
TurnEventPlayer(0,SecondFlood,4)
TurnEventPlayer(0,ThirdFlood,5)
TurnEventPlayer(0,FourthFlood,6)

TurnEventPlayer(0,Rising1,8)
TurnEventPlayer(0,Rising2,9)
TurnEventPlayer(0,Rising3,10)

TurnEventEnemy(0x0,TriggerRaft,9)
TurnEventPlayer(0xA,RaftAttack,8,99)
END_MAIN

CharacterBasedEvents:
END_MAIN

LocationBasedEvents:
Seize(2,1)
Armory(ChTenArmoury,22,1)
Chest(BattleAxe,4,14)
Chest(Axereaver,23,9)
Chest(MasterSeal,5,0)
#ifdef __DEBUG__
Seize(22,20)
#endif
END_MAIN

MiscBasedEvents:
AREA 0xB CheckForBoat [0,0] [7,8]
CauseGameOverIfLordDies
END_MAIN

Dunno:
//DO NOT TOUCH
WORD $00

Tutorial:
//DO NOT TOUCH
WORD $00

TrapData:
BLST [10,13] Ballista
BLST [0,2] Ballista
BLST [21,22] Ballista
END_MAIN

ALIGN 4

BeginningScene:
LOAD1 0x01 Bad
ENUN
LOAD2 0x01 Units
ENUN
STAL 10
FlashCursor(Eirika,24)
//Text(PLACEHOLDER)
ENDA

EndingScene:
MNCH 0xC
NoFade
ENDA

Units:
UNIT 0x1 EphraimLord 0x00 Level(1, Ally, 0) [15,22] 0x00 0x00 0x0 0x00 [Reginleif] NoAI
UNIT 0x2 EphraimLord 0x00 Level(1, Ally, 0) [17,21] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x3 EphraimLord 0x00 Level(1, Ally, 0) [16,23] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x4 EphraimLord 0x00 Level(1, Ally, 0) [14,23] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x5 EphraimLord 0x00 Level(1, Ally, 0) [12,23] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x6 EphraimLord 0x00 Level(1, Ally, 0) [13,21] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x7 EphraimLord 0x00 Level(1, Ally, 0) [14,20] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x8 EphraimLord 0x00 Level(1, Ally, 0) [18,23] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT 0x9 EphraimLord 0x00 Level(1, Ally, 0) [17,22] 0x00 0x00 0x0 0x00 [SilverLance] NoAI
UNIT

Bad:
UNIT Pablo_2 General Pablo_2 Level(2,Enemy,0) [2,1] 0x0 0x0 0x0 0x0 [LightBrand,SteelLance,Elixir,0] NeverMoveAI
UNIT 0x94 Thief Pablo_2 Level(9, Enemy, 1) [23,14] DropItem 0x00 0x0 0x00 KillingEdge EnergyRing 0 0 0x6 0x0C 0x0 0x0
UNIT 0x94 Thief Pablo_2 Level(9, Enemy, 1) [13,13] DropItem 0x00 0x0 0x00 WindSword ChestKey ShortSpear 0 0x06 0x05 0x0 0x0
UNIT 0x94 Cavalier Pablo_2 Level(11, Enemy, 1) [23,18] 0x00 0x00 0x0 0x00 [SteelSword] AttackInRangeAI 0x0 0x0
UNIT 0x94 Fighter Pablo_2 Level(12, Enemy, 1) [23,19] 0x00 0x00 0x0 0x00 [Halberd] NoAI
UNIT 0x94 Pirate Pablo_2 Level(10, Enemy, 1) [19,16] 0x00 0x00 0x0 0x00 [SilverAxe] NoAI
UNIT 0x94 Pirate Pablo_2 Level(11, Enemy, 1) [7,19] 0x00 0x00 0x0 0x00 [SteelAxe] NoAI
UNIT 0x94 Pirate Pablo_2 Level(11, Enemy, 1) [6,22] 0x00 0x00 0x0 0x00 [IronAxe,HandAxe] NoAI
UNIT 0x94 Mage Pablo_2 Level(11, Enemy, 1) [18,10] DropItem 0x00 0x0 0x00 [Thunder, Elfire] AttackInRangeAI 0x4 0x0
UNIT 0x94 Monk Pablo_2 Level(11, Enemy, 1) [20,11] 0x00 0x00 0x0 0x00 [Shine] AttackInRangeAI 0x4 0x0
UNIT 0x94 Mercenary Pablo_2 Level(12, Enemy, 1) [16,8] 0x00 0x00 0x0 0x00 [SteelSword] AttackInRangeAI 0x4 0x0
UNIT 0x94 Archer Pablo_2 Level(11, Enemy, 1) [22,10] 0x00 0x00 0x0 0x00 [Longbow,SteelBow] AttackInRangeAI 0x4 0x0
UNIT 0x94 Mercenary Pablo_2 Level(10, Enemy, 1) [17,1] 0x00 0x00 0x0 0x00 [SilverSword] ChaseOnceApproachedAI 0x4 0x0
UNIT 0x94 Knight Pablo_2 Level(12, Enemy, 1) [20,2] 0x00 0x00 0x0 0x00 [ShortSpear] ChaseOnceApproachedAI 0x4 0x0
UNIT 0x94 Mage Pablo_2 Level(12, Enemy, 1) [11,1] 0x00 0x00 0x0 0x00 [Elfire,Elixir] ChaseOnceApproachedAI 0x4 0x0
UNIT 0x94 Cavalier Pablo_2 Level(11, Enemy, 1) [15,2] 0x00 0x00 0x0 0x00 Armourslayer GoddessIcon 0 0 0x0C 0x03 0x01 0x00
UNIT 0x94 Fighter Pablo_2 Level(12, Enemy, 1) [10,5] 0x00 0x00 0x0 0x00 [SteelAxe,Hammer,0,0] AttackInRangeAI 0x04 0x00
UNIT 0x95 Hero Pablo_2 Level(1,Enemy,1) [3,4] DropItem 0x00 0x0 0x00 [SteelSword,0,0,0] AttackInRangeAI 0x4 0x0
UNIT 0x94 Mage 0x95 Level(11, Enemy, 1) [7,3] 0x00 0x00 0x0 0x00 [Elfire,0,0,0] MoveWithLeaderAI 0x4 0x0
UNIT 0x94 Soldier 0x95 Level(12,Enemy,1) [6,6] 0x0 0x0 0x0 0x0 [SilverLance,Vulnerary,0,0] MoveWithLeaderAI 0x3 0x0
UNIT 0x94 Priest Pablo_2 Level(15,Enemy,1) [4,0] 0x0 0x0 0x0 0x0 Physic PureWater 0 0 0xE 0x3 0x4 0x0
UNIT 0x94 WyvernRider 0x95 Level(11,Enemy,1) [0,20] 0x0 0x0 0x0 0x0 [SteelLance,ShortSpear,0,0] MoveWithLeaderAI 0x4 0x0
UNIT 0x94 WyvernRider 0x95 Level(10,Enemy,1) [0,20] 0x0 0x0 0x0 0x0 [SilverLance,Vulnerary,0,0] MoveWithLeaderAI 0x0 0x0
UNIT 0x94 Shaman Pablo_2 Level(12,Enemy,1) [1,1] 0x0 0x0 0x0 0x0 Nosferatu 0 0 0 0x0C 0x03 0x03 0x00
UNIT 0x94 Mercenary 0x95 Level(11,Enemy,1) [0,11] 0x0 0x0 0x0 0x0 [Lancereaver] MoveWithLeaderAI 0x4 0x0
UNIT 0x94 Soldier Pablo_2 Level(11,Enemy,1) [5,10] 0x0 0x0 0x0 0x0 [BraveLance] MoveWithLeaderAI 0x4 0x0
UNIT 0x94 Fighter 0x95 Level(10,Enemy,1) [1,16] 0x0 0x0 0x0 0x0 SteelAxe Vulnerary 0 0 0x0 0x7 0x3 0x0
UNIT 0x94 Archer Pablo_2 Level(12,Enemy,1) [10,12] 0x0 0x0 0x0 0x0 [SteelBow] AttackInRangeAI 0x4 0x0
UNIT 0x94 Fighter Pablo_2 Level(10,Enemy,1) [12,11] 0x0 0x0 0x0 0x0 [Tomahawk] NoAI
UNIT

NewRecruit:
UNIT Ephraim Pirate 0x00 Level(11, Ally, 0) [20,23] 0x00 0x00 0x1 PirateMove [SteelAxe,Hatchet,Vulnerary] NoAI
UNIT

RaftSquad:
UNIT 0x94 Fighter Pablo_2 Level(10,Enemy,1) [11,13] 0x0 0x0 0x1 Tenner0 [SilverAxe] NoAI
UNIT 0x94 Knight Pablo_2 Level(11,Enemy,1) [11,13] 0x0 0x0 0x1 Tenner1 [SteelLance] NoAI
UNIT 0x94 Knight Pablo_2 Level(11,Enemy,1) [11,13] 0x0 0x0 0x1 Tenner2 [SteelLance] NoAI
UNIT 0x94 Cavalier Pablo_2 Level(11,Enemy,1) [11,13] 0x0 0x0 0x1 Tenner3 [SilverBlade] NoAI
UNIT 0x94 Cavalier Pablo_2 Level(11,Enemy,1) [11,13] 0x0 0x0 0x1 Tenner4 [SteelLance] NoAI
UNIT 0x94 Myrmidon Pablo_2 Level(11,Enemy,1) [11,13] 0x0 0x0 0x1 Tenner5 [SteelSword] NoAI
UNIT

Tenner0:
REDA [11,11] 0 0 0 0
Tenner1:
REDA [8,11] 0 0 0 1
Tenner2:
REDA [8,12] 0 0 0 1
Tenner3:
REDA [14,11] 0 0 0 3
Tenner4:
REDA [14,12] 0 0 0 3
Tenner5:
REDA [12,12] 0 0 0 0
PirateMove:
REDA [20,21] 0 0 0 0

ALIGN 4

PirateEntry:
ReinforcementEvent(NewRecruit)
STAL 10
FlashCursor(Ephraim,18)
//Text(PLACEHOLDER)
NoFade
ENDA

CheckForBoat:
CHECK_ALLEGIANCE 0xFFFF
BNE 0x5 0xC 0x0

ENUF 0xA
GOTO 0x6

LABEL 0x5
ENUF 0xB

LABEL 0x6
NoFade
ENDA

TriggerRaft:
ENUT 0xB
ENUF 0xA
NoFade
ENDA

RaftAttack:
TILECHANGE 0x3
STAL 24
LoadReinforcements(RaftSquad)
EVBIT_T 0x7
ENDA

FirstFlood:
TILECHANGE 0x2
NoFade
ENDA

SecondFlood:
TILECHANGE 0x1
NoFade
ENDA

ThirdFlood:
TILECHANGE 0x5
NoFade
ENDA

FourthFlood:
TILECHANGE 0x6
NoFade
ENDA

Rising1:
TILEREVERSE 0x6
CAM1 [11,8]
STAL 12
TILEREVERSE 0x1
TILEREVERSE 0x2
NoFade
ENDA

Rising2:
TILEREVERSE 0x5
NoFade
ENDA

Rising3:
TILECHANGE 0x3
NoFade
ENDA


ChTenArmoury:
SHLI SteelSword SteelBlade SteelLance Javelin SteelAxe HandAxe SteelBow Longbow PiercingBow HuntersBow RunicBow
ALIGN 4

0 comments on commit 7abf740

Please sign in to comment.