Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
complete chapter 1 event & unit config
Browse files Browse the repository at this point in the history
Signed-off-by: laqieer <[email protected]>
  • Loading branch information
laqieer committed Feb 18, 2020
1 parent b4740db commit ec67f74
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process_gfx_portrait(GFX_SRCS_PORTRAIT portrait_alfonse.grit portrait_Anna_comma
add_executable(${PROJECT_NAME} ${DIR_SRCS} ${GFX_SRCS} ${GFX_SRCS_PORTRAIT}
src/chapter_title_pre.s src/chapter_title_1.s
src/res/map/map/map_chap_pre.s src/res/map/map/map_chap_1.s
src/res/map/event/event_chap_template.s src/res/map/event/event_chap_pre.s
src/res/map/event/event_chap_template.s src/res/map/event/event_chap_pre.s src/res/map/event/event_chap_1.s
src/res/character_palette/character_palette_Alfonse.s src/res/character_palette/character_palette_Anna.s src/res/character_palette/character_palette_Sharena.s
src/res/music/native_instrument_map.s src/res/music/music_event_plain_1.s src/res/music/music_event_serious_1.s src/res/music/music_event_serious_3.s src/res/music/music_map_fe3.s
src/res/animation/character/animation_Sharena.s src/res/animation/character/animation_Sharena_disarmed.s
Expand Down
6 changes: 4 additions & 2 deletions include/text_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

#define TEXT_CHAP_1_TITLE 0x1247

#define TEXT_CHAP_1_OP 0x1248
#define TEXT_CHAP_1_ED 0x1249
#define TEXT_CHAP_1_OP_1 0x1248
#define TEXT_CHAP_1_OP_2 0x1249
#define TEXT_CHAP_1_ED_1 0x124A
#define TEXT_CHAP_1_ED_2 0x124B

#endif //FE7_JP_STUNNING_TRIBBLE_TEXT_ID_H
77 changes: 77 additions & 0 deletions res/map/event/event_chap_1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Chapter prologue event

#include EAStdlib.event
#include "Project Definition.txt"

PointerList:
POIN TurnBasedEvents
POIN CharacterBasedEvents
POIN LocationBasedEvents
POIN MiscBasedEvents
POIN TrapsEliwoodMode
POIN TrapsHectorMode
POIN EnemyUnitsENM
POIN EnemyUnitsENM
POIN EnemyUnitsENM
POIN EnemyUnitsENM
POIN AllyUnitsENM
POIN AllyUnitsENM
POIN AllyUnitsENM
POIN AllyUnitsENM
POIN BeginningScene
POIN EndingScene

TurnBasedEvents:
TURN 0x0 BeginningScene [1,0] 0x0 0x0
END_MAIN

CharacterBasedEvents:
END_MAIN

LocationBasedEvents:
END_MAIN

MiscBasedEvents:
CauseGameOverIfLordDies
DefeatAll(EndingScene)
POIN 0x7AA5D // a bug of EA Core's C mode
END_MAIN

BeginningScene:
LOU1 AllyUnitSharena
ENUN
LOU1 AllyUnitsENM
ENUN
TEX1 TEXT_CHAP_1_OP_1
LOU1 EnemyUnitsENM
ENUN
TEX1 TEXT_CHAP_1_OP_2
ENDA

EndingScene:
TEX1 TEXT_CHAP_1_ED_1
TEX1 TEXT_CHAP_1_ED_2
MNCH 0
ENDA

AllyUnitsENM:
UNIT Alfonse AlfonseLord Anna 0x8 [7,0] [7,0] [0x0,0x0,0x0,0x0] [0x0,0x0,0x0,0x0]
UNIT Anna AnnaLord 0x0 0x8 [9,0] [9,0] [0x0,0x0,0x0,0x0] [0x0,0x0,0x0,0x0]
UNIT

EnemyUnitsENM:
UNIT GenericSoldierSummonedWeak WyvernKnight_F 0x0 0x15 [14,16] [14,16] [IronLance,0x0,0x0,0x0] [0x0,0x3,0x9,0x0]
UNIT GenericSoldierSummonedWeak PegasusKnight 0x0 0x14 [11,18] [11,18] [IronLance,0x0,0x0,0x0] [0x0,0x3,0x9,0x0]
UNIT GenericSoldierSummonedWeak PegasusKnight 0x0 0x14 [12,18] [12,18] [IronLance,0x0,0x0,0x0] [0x0,0x3,0x9,0x0]
UNIT GenericSoldierSummonedWeak Cleric 0x0 0x14 [14,15] [14,15] [Heal,0x0,0x0,0x0] [0xe,0x3,0x0,0x0]
UNIT

AllyUnitSharena:
UNIT Sharena SharenaLord Anna 0x8 [11,0] [11,0] [IronLance,Vulnerary,0x0,0x0] [0x0,0x0,0x0,0x0]
UNIT

TrapsEliwoodMode:
ENDTRAP

TrapsHectorMode:
ENDTRAP
3 changes: 2 additions & 1 deletion src/chapter_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@

extern const u8 * const event_chap_template[];
extern const u8 * const event_chap_pre[];
extern const u8 * const event_chap_1[];

const u8 ** const events[] = {
NULL,
event_chap_template,
event_chap_pre,
0x8d686f0,
event_chap_1,
};

const u8 *** const pEvents = events;
71 changes: 71 additions & 0 deletions src/res/map/event/event_chap_1.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.section .rodata
.align 2
.global event_chap_1
event_chap_1:
PointerList:
.word TurnBasedEvents
.word CharacterBasedEvents
.word LocationBasedEvents
.word MiscBasedEvents
.word TrapsEliwoodMode
.word TrapsHectorMode
.word EnemyUnitsENM
.word EnemyUnitsENM
.word EnemyUnitsENM
.word EnemyUnitsENM
.word AllyUnitsENM
.word AllyUnitsENM
.word AllyUnitsENM
.word AllyUnitsENM
.word BeginningScene
.word EndingScene
TurnBasedEvents:
.byte 0x02, 0x00, 0x00, 0x00
.word BeginningScene
.byte 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00
CharacterBasedEvents:
.byte 0x00, 0x00, 0x00, 0x00
LocationBasedEvents:
.byte 0x00, 0x00, 0x00, 0x00
MiscBasedEvents:
.byte 0x01, 0x00, 0x00, 0x00, 0x1C, 0xF7, 0xD6, 0x08, 0x65, 0x00, 0x00, 0x00
.byte 0x0E, 0x00, 0x00, 0x00
.word EndingScene
.byte 0x5D, 0xAA, 0x07, 0x08
.byte 0x00, 0x00, 0x00, 0x00
BeginningScene:
.byte 0x30, 0x00, 0x00, 0x00
.word AllyUnitSharena
.byte 0x39, 0x00, 0x00, 0x00
.byte 0x30, 0x00, 0x00, 0x00
.word AllyUnitsENM
.byte 0x39, 0x00, 0x00, 0x00
.byte 0x0D, 0x00, 0x00, 0x00, 0x48, 0x12, 0x00, 0x00
.byte 0x30, 0x00, 0x00, 0x00
.word EnemyUnitsENM
.byte 0x39, 0x00, 0x00, 0x00
.byte 0x0D, 0x00, 0x00, 0x00, 0x49, 0x12, 0x00, 0x00
.byte 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
EndingScene:
.byte 0x0D, 0x00, 0x00, 0x00, 0x4A, 0x12, 0x00, 0x00
.byte 0x0D, 0x00, 0x00, 0x00, 0x4B, 0x12, 0x00, 0x00
.byte 0x7F, 0x00, 0x00, 0x00
.byte 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
AllyUnitsENM:
.byte 0x01, 0x01, 0x02, 0x08, 0x07, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x02, 0x03, 0x00, 0x08, 0x09, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
EnemyUnitsENM:
.byte 0x73, 0x35, 0x00, 0x15, 0x0E, 0x10, 0x0E, 0x10, 0x14, 0x00, 0x00, 0x00, 0x00, 0x03, 0x09, 0x00
.byte 0x73, 0x32, 0x00, 0x14, 0x0B, 0x12, 0x0B, 0x12, 0x14, 0x00, 0x00, 0x00, 0x00, 0x03, 0x09, 0x00
.byte 0x73, 0x32, 0x00, 0x14, 0x0C, 0x12, 0x0C, 0x12, 0x14, 0x00, 0x00, 0x00, 0x00, 0x03, 0x09, 0x00
.byte 0x73, 0x1D, 0x00, 0x14, 0x0E, 0x0F, 0x0E, 0x0F, 0x4A, 0x00, 0x00, 0x00, 0x0E, 0x03, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
AllyUnitSharena:
.byte 0x03, 0x02, 0x02, 0x08, 0x0B, 0x00, 0x0B, 0x00, 0x14, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
TrapsEliwoodMode:
.byte 0x00
TrapsHectorMode:
.byte 0x00
Loading

0 comments on commit ec67f74

Please sign in to comment.