News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM] Changing start save location

Started by Lunaria, October 09, 2010, 11:05:26 AM

Previous topic - Next topic

Lunaria

By using the "skip intro" function in SMILE you start the game from the ship save point... that's all fine and dandy, but I would like to change what area that specific save writes too.

Aka, say I want you spawn from save point ID 09 in maridia area instead, what would one require to do?


(Note: that specific example is NOT what I want to have in my hack.)

Lunaria

Sadi was nice enough to write an ASM file for this.

LoRom

!Area = #$0000        ;Cra = 0000, Bri = 0001, Nor = 2, WS = 3, Mar = 4, Tou = 5, Cer = 6
!Save = #$0000

org $81A8B1
JMP FIRSTLOADCHECK
org $81EF20
FIRSTLOADCHECK:
LDA $09DA
BNE NORMALLOAD
LDA $09DC
BNE NORMALLOAD
LDA $09DE
BNE NORMALLOAD
LDA !Area
STA $7ED918
LDA !Save
STA $7ED916
NORMALLOAD:
LDA $7ED918
STA $079F
LDA $7ED916
STA $078B
JMP $A83B


that is all, see you next mission topic!