karatekid552
What happens if I push it?....
- 1,771
- Posts
- 12
- Years
- Do you really want to know? Really?
- Seen Jan 12, 2015
Once you have installed DNS by PrimeDiagla locate the byte which states the day (0-6).
So you might have something located like this:
20 13 08 12 08 56 32 (YY YY MM DD HR MIN SEC obviously not in dec)
We will need 2 bytes anywhere free in the ram : 00 00
Copy the DD byte using 'copybyte' in XSE and copy it to the first byte. (12 00)
Now use XSE's 'comparefarbytes' to compare these bytes (12 00)
then I assume it gets stored in 0x800D or LAST_RESULT so say 'compare 0x800D 0x1'
'if 0x1 goto @same_day'. From that pointer end the script.
TO continue write copybyte to the second byte so now you have (12 12).
then you can have your event. Now if you try and redo that event the bytes are EQUAL, making the script jump to @same_day.
eg:
Spoiler:#dynamic 0x800000
#org @daily
lock
copybyte (Pointer location) 0x03000000
comparefarbytes 0x3000000 0x3000001
compare 0x800D 0x1
if 0x1 goto @same_day
msgbox @today 0x6
copybyte (Pointer location) 0x3000001
release
end
So as you can see you don't even need a flag in a way...
For your two bytes of RAM, use a var, like 0x40F8. That can hold two bytes, and the commands are easier.