Well i have one question. Will eevee evolve into umbreon or espeon when I install RTC into FR ROM?
Awesome, thanks.
By the way, I think you have to correct the description of the RTC - the "0x00" byte in between day and hour is the day of the week, just to let you know.
Well, you have to read the byte and then buffer the correct day of the week text.Um, diegoisawesome? How do you display the day of the week in a script? Like, can you show an example script for this? 'Cause I kinda learned the hour and date from decompiling scripts, but I've never seen one with this feature before. Can 'ya (or anyone) help me?
Well, you have to read the byte and then buffer the correct day of the week text.
0x0 = Sunday, 0x1 = Monday, etc.
Well, you have to read the byte and then buffer the correct day of the week text.
0x0 = Sunday, 0x1 = Monday, etc.
#dynamic 0x[FSF Offset]
#org @start
compare 0x[RTC Var] 0x0 //If I'm not mistaken, this checks if it's a Sunday, right?
if 0x1 goto @sunday
...
#org @sunday
= It's a Sunday.
Sorry, prime, I don't get it. How do you use comparefarbytetobyte? I'll research it sometime, though. :D
Anyway, diegoisawesome, what variable should be read by the game? I'll base my example from pabloxxx's:
Code:#dynamic 0x[FSF Offset] #org @start compare 0x[RTC Var] 0x0 //If I'm not mistaken, this checks if it's a Sunday, right? if 0x1 goto @sunday ... #org @sunday = It's a Sunday.
Would this script work accordingly? And if it does, what would be the variable needed to read the byte?
No, 'goto' branches to another script segment. You currently have it branching to a string. You'd have to create a new script segment with a 'msgbox' command for it to work.
#dynamic 0x[FSF Offset]
#org @start
compare 0x[RTC Var] 0x0
if 0x1 goto @sunday
...
#org @sunday
msgbox @sunday2 0x2
end
#org @sunday2
= It's a Sunday.
Hmm... so will this work?
Code:#dynamic 0x[FSF Offset] #org @start compare 0x[RTC Var] 0x0 if 0x1 goto @sunday ... #org @sunday msgbox @sunday2 0x2 end #org @sunday2 = It's a Sunday.
There isn't a RTC variable. You have to create your own with an ASM-script or you have to use comparefarbytetobyte and the RTC offset.
[...]
comparefarbytetobyte 0x03005540 0x1
if 0x1 goto @ok
[...]
#org @ok
msgbox @txt 0x6
end
#org @txt = It's the 1st.
you can see the RTC-RAM-offset under the textbox with the RTC-script-offset...Code:[...] comparefarbytetobyte 0x03005540 0x1 if 0x1 goto @ok [...] #org @ok msgbox @txt 0x6 end #org @txt = It's the 1st.
There isn't a RTC variable. You have to create your own with an ASM-script or you have to use comparefarbytetobyte and the RTC offset.
@wildbeast
You have to add some tilesetoffsets in the Boxes under the Seasons. I have made a tutorial how to use the Seasonseditor but it's written in german so it would not help you...
.text
.align 2
.thumb
.thumb_func
.global espeonevocheck
main:
ldr r1, time
ldrb r1, [r1, #0x0]
cmp r1, #0x4
bge no
cmp r1, #0x1
blt no
ldr r1, happinesscheck
bx r1
no: ldr r0, exit
bx r0
.align
time: .word 0x0203C000
happinesscheck: .word 0x08043001
exit: .word 0x08043111
.text
.align 2
.thumb
.thumb_func
.global umbreonevocheck
main:
ldr r1, time
ldrb r1, [r1, #0x0]
cmp r1, #0x4
bge yes
cmp r1, #0x1
blt yes
ldr r0, exit
bx r0
yes: ldr r1, happinesscheck
bx r1
.align
time: .word 0x0203C000
happinesscheck: .word 0x08043001
exit: .word 0x08043111