Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
005f2ce
commit 1407ec1
Showing
20 changed files
with
190 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+28 Bytes
FEBuilderGBA/bin/Debug/config/patch2/FE8J/EVENTSCRIPT_GetGameOption/ASMC_GetGameOption.dmp
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
FEBuilderGBA/bin/Debug/config/patch2/FE8J/EVENTSCRIPT_GetGameOption/ASMC_GetGameOption.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@ | ||
@ゲームオプションの取得 | ||
@ | ||
.macro blh to, reg=r3 | ||
ldr \reg, =\to | ||
mov lr, \reg | ||
.short 0xf800 | ||
.endm | ||
.thumb | ||
|
||
push {lr} | ||
ldr r3, [r0, #0x38] @イベント命令にアクセスらしい [r0,#0x38] でイベント命令が書いてあるアドレスの場所へ | ||
|
||
ldrb r0, [r3, #0x2] @引数1 [game option] | ||
blh 0x080B6A00 @GetGameOption RET=OptionValue r0=OptionIndex {J} | ||
@blh 0x080B1DE8 @GetGameOption RET=OptionValue r0=OptionIndex {U} | ||
|
||
ldr r2, =0x030004B0 @MemorySlot {J} | ||
@ldr r2, =0x030004B8 @MemorySlot {U} | ||
str r0, [r2, #0x30] @SlotCに結果を書き込む | ||
|
||
pop {r0} | ||
bx r0 |
Empty file.
Binary file added
BIN
+24 Bytes
FEBuilderGBA/bin/Debug/config/patch2/FE8J/EVENTSCRIPT_GetGameOption/ASMC_SetGameOption.dmp
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
FEBuilderGBA/bin/Debug/config/patch2/FE8J/EVENTSCRIPT_GetGameOption/ASMC_SetGameOption.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@ | ||
@ゲームオプションの設定 | ||
@ | ||
.macro blh to, reg=r3 | ||
ldr \reg, =\to | ||
mov lr, \reg | ||
.short 0xf800 | ||
.endm | ||
.thumb | ||
|
||
push {lr} | ||
ldr r3, [r0, #0x38] @イベント命令にアクセスらしい [r0,#0x38] でイベント命令が書いてあるアドレスの場所へ | ||
|
||
ldrb r0, [r3, #0x2] @引数1 [game option] | ||
ldrb r1, [r3, #0x3] @引数2 [option new value] | ||
blh 0x080B6B7C @SetGameOption r0=OptionIndex r1=OptionValue {J} | ||
@blh 0x080B1F64 @SetGameOption r0=OptionIndex r1=OptionValue {U} | ||
|
||
pop {r0} | ||
bx r0 |
Empty file.
30 changes: 30 additions & 0 deletions
30
...in/Debug/config/patch2/FE8J/EVENTSCRIPT_GetGameOption/PATCH_EVENTSCRIPT_GetGameOption.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
NAME=イベント命令からゲームオプションを変更する追加ルーチン | ||
TYPE=BIN | ||
TAG=#EVENT | ||
|
||
//既に適応されたかどうか | ||
PATCHED_IF:$FGREP4 ASMC_SetGameOption.dmp=0x00 0xB5 0x83 0x6B | ||
|
||
//本体をフリーエリアにいれる. | ||
BIN:$FREEAREA:1=ASMC_GetGameOption.dmp | ||
BIN:$FREEAREA:2=ASMC_SetGameOption.dmp | ||
|
||
AUTHOR=7743 | ||
|
||
INFO=イベント命令から、ゲームオプションの値の取得と、値の設定をできるようにします。\r\n設定する値は、ゲームの設定画面での選択肢の並び順です。\r\n左から0,1,2,3...と数えます。\r\n例えば戦闘アニメオフは、Anime1,Anime2,OFF と並んでいるため、2を設定すると、OFFになります。 | ||
|
||
EVENTSCRIPT:1=400DXX00{$L1:ASMC_GetGameOption.dmp} ゲームオプションの取得[XX:GAMEOPTION:Option] {COND} | ||
EVENTSCRIPT:5=400DXXYY{$L1:ASMC_SetGameOption.dmp} ゲームオプションの設定[XX:GAMEOPTION:Option][YY::NewValue] | ||
|
||
NAME.en=Add Event: GetGameOption,SetGameOption | ||
INFO.en=Change game options from event script.\r\nThe value to set is the order of choices on the game settings screen.\r\nCount as 0,1,2,3 ... from the left.\r\nFor example, battle animation off is aligned with Anime1, Anime2, OFF, so setting 2 turns it off. | ||
|
||
EVENTSCRIPT:1.en=400DXX00{$L1:ASMC_GetGameOption.dmp} GetGameOption[XX:GAMEOPTION:Option] {COND} | ||
EVENTSCRIPT:5.en=400DXXYY{$L1:ASMC_SetGameOption.dmp} SetGameOption[XX:GAMEOPTION:Option][YY::NewValue] | ||
|
||
NAME.zh=Add Event: GetGameOption,SetGameOption | ||
INFO.zh=Change game options from event script.\r\nThe value to set is the order of choices on the game settings screen.\r\nCount as 0,1,2,3 ... from the left.\r\nFor example, battle animation off is aligned with Anime1, Anime2, OFF, so setting 2 turns it off. | ||
|
||
|
||
EVENTSCRIPT:1.zh=400DXX00{$L1:ASMC_GetGameOption.dmp} GetGameOption[XX:GAMEOPTION:Option] {COND} | ||
EVENTSCRIPT:5.zh=400DXXYY{$L1:ASMC_SetGameOption.dmp} SetGameOption[XX:GAMEOPTION:Option][YY::NewValue] |
Binary file added
BIN
+28 Bytes
FEBuilderGBA/bin/Debug/config/patch2/FE8U/EVENTSCRIPT_GetGameOption/ASMC_GetGameOption.dmp
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
FEBuilderGBA/bin/Debug/config/patch2/FE8U/EVENTSCRIPT_GetGameOption/ASMC_GetGameOption.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@ | ||
@ゲームオプションの取得 | ||
@ | ||
.macro blh to, reg=r3 | ||
ldr \reg, =\to | ||
mov lr, \reg | ||
.short 0xf800 | ||
.endm | ||
.thumb | ||
|
||
push {lr} | ||
ldr r3, [r0, #0x38] @イベント命令にアクセスらしい [r0,#0x38] でイベント命令が書いてあるアドレスの場所へ | ||
|
||
ldrb r0, [r3, #0x2] @引数1 [game option] | ||
@blh 0x080B6A00 @GetGameOption RET=OptionValue r0=OptionIndex {J} | ||
blh 0x080B1DE8 @GetGameOption RET=OptionValue r0=OptionIndex {U} | ||
|
||
@ldr r2, =0x030004B0 @MemorySlot {J} | ||
ldr r2, =0x030004B8 @MemorySlot {U} | ||
str r0, [r2, #0x30] @SlotCに結果を書き込む | ||
|
||
pop {r0} | ||
bx r0 |
Empty file.
Binary file added
BIN
+24 Bytes
FEBuilderGBA/bin/Debug/config/patch2/FE8U/EVENTSCRIPT_GetGameOption/ASMC_SetGameOption.dmp
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
FEBuilderGBA/bin/Debug/config/patch2/FE8U/EVENTSCRIPT_GetGameOption/ASMC_SetGameOption.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@ | ||
@ゲームオプションの設定 | ||
@ | ||
.macro blh to, reg=r3 | ||
ldr \reg, =\to | ||
mov lr, \reg | ||
.short 0xf800 | ||
.endm | ||
.thumb | ||
|
||
push {lr} | ||
ldr r3, [r0, #0x38] @イベント命令にアクセスらしい [r0,#0x38] でイベント命令が書いてあるアドレスの場所へ | ||
|
||
ldrb r0, [r3, #0x2] @引数1 [game option] | ||
ldrb r1, [r3, #0x3] @引数2 [option new value] | ||
@blh 0x080B6B7C @SetGameOption r0=OptionIndex r1=OptionValue {J} | ||
blh 0x080B1F64 @SetGameOption r0=OptionIndex r1=OptionValue {U} | ||
|
||
pop {r0} | ||
bx r0 |
Empty file.
30 changes: 30 additions & 0 deletions
30
...in/Debug/config/patch2/FE8U/EVENTSCRIPT_GetGameOption/PATCH_EVENTSCRIPT_GetGameOption.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
NAME=イベント命令からゲームオプションを変更する追加ルーチン | ||
TYPE=BIN | ||
TAG=#EVENT | ||
|
||
//既に適応されたかどうか | ||
PATCHED_IF:$FGREP4 ASMC_SetGameOption.dmp=0x00 0xB5 0x83 0x6B | ||
|
||
//本体をフリーエリアにいれる. | ||
BIN:$FREEAREA:1=ASMC_GetGameOption.dmp | ||
BIN:$FREEAREA:2=ASMC_SetGameOption.dmp | ||
|
||
AUTHOR=7743 | ||
|
||
INFO=イベント命令から、ゲームオプションの値の取得と、値の設定をできるようにします。\r\n設定する値は、ゲームの設定画面での選択肢の並び順です。\r\n左から0,1,2,3...と数えます。\r\n例えば戦闘アニメオフは、Anime1,Anime2,OFF と並んでいるため、2を設定すると、OFFになります。 | ||
|
||
EVENTSCRIPT:1=400DXX00{$L1:ASMC_GetGameOption.dmp} ゲームオプションの取得[XX:GAMEOPTION:Option] {COND} | ||
EVENTSCRIPT:5=400DXXYY{$L1:ASMC_SetGameOption.dmp} ゲームオプションの設定[XX:GAMEOPTION:Option][YY::NewValue] | ||
|
||
NAME.en=Add Event: GetGameOption,SetGameOption | ||
INFO.en=Change game options from event script.\r\nThe value to set is the order of choices on the game settings screen.\r\nCount as 0,1,2,3 ... from the left.\r\nFor example, battle animation off is aligned with Anime1, Anime2, OFF, so setting 2 turns it off. | ||
|
||
EVENTSCRIPT:1.en=400DXX00{$L1:ASMC_GetGameOption.dmp} GetGameOption[XX:GAMEOPTION:Option] {COND} | ||
EVENTSCRIPT:5.en=400DXXYY{$L1:ASMC_SetGameOption.dmp} SetGameOption[XX:GAMEOPTION:Option][YY::NewValue] | ||
|
||
NAME.zh=Add Event: GetGameOption,SetGameOption | ||
INFO.zh=Change game options from event script.\r\nThe value to set is the order of choices on the game settings screen.\r\nCount as 0,1,2,3 ... from the left.\r\nFor example, battle animation off is aligned with Anime1, Anime2, OFF, so setting 2 turns it off. | ||
|
||
|
||
EVENTSCRIPT:1.zh=400DXX00{$L1:ASMC_GetGameOption.dmp} GetGameOption[XX:GAMEOPTION:Option] {COND} | ||
EVENTSCRIPT:5.zh=400DXXYY{$L1:ASMC_SetGameOption.dmp} SetGameOption[XX:GAMEOPTION:Option][YY::NewValue] |