1. Put your script in free space,
What i see in your script is it's located in 23D3F0, it's so crowded of number in there i advice you put your script in something more spacy, like 800000, 900000.
2. Don't compile the file, many times.
I mean if you compile a file and something is wrong in there or you didn't like what you write in your script but you already compile it, change your script to your liking but don't compile it again.. You need to hex edit it. Go to the offset where you put your unlovable script and erase it, so that when you compile your recreated script it's clean and it will function the way that you want it..
3. Tips for compiling a script is
Example of script
PKSV:
Code:
#dyn 0x800000
#org @1
lock
faceplayer
message @2
callstd msg_normal
release
end
#org @2
= Not BAQ \v\h01
As you can see there is a mistake, the BAQ, you want to change it,
then change it.
#org @2
= Not BAD \v\h01
(Don't compile it yet)
But what if you delete your file or you didn't save it but you want to still edit the mistake, then open your script in your rom, it will be:
PKSV:
Code:
#org 0x8800001
lock
faceplayer
msgbox 0x8800008
callstd msg_normal
release
end
#org 0x8800008
= Not BAQ \v\h01
Change it to look like what you want and change all the pointer to @
Code:
#dyn 0x800000
#org @1
lock
faceplayer
message @2
callstd msg_normal
release
end
#org @2
= Not BAD \v\h01
Now you change it, and you want to compile it now, but first goto where you put your script in your rom, that's 800000. (If you put it in free space you can navigate your script fast and clean.)
Code:
YOUR FIRST SCRIPT:
800000 FC AB 67 10 00 00 80 08
800010 FF FF FF FF FF FF FF FF
800020 FF FF FF FF FF FF FF FF
Clean it, fill it with FF so it will be free space again. Then compile your script again.
Code:
YOUR FIRST SCRIPT:
800000 FF FF FF FF FF FF FF FF
800010 FF FF FF FF FF FF FF FF
800020 FF FF FF FF FF FF FF FF
This method is important because if you didn't clean your rom before recompiling, it will add some rubbish offset and number and will make your script not clean and not functioning well, it will take a lot space too.
I recommend you if you want to write your next script, make a space to edit the other.
Example in hex:
Code:
YOUR FIRST SCRIPT:
800000 FC AB 67 10 00 00 80 08
800010 FF FF FF FF FF FF FF FF
800020 FF FF FF FF FF FF FF FF
Put your next script in 800020 for you to freely edit the your first script if something you want to change.
Code:
#dyn 0x800020 //always change dyn for clean compiling and never worry about @
#org @1
lock
faceplayer
message @2
callstd msg_normal
release
end
#org @2
= 2nd Script
3. Don't place your setflag after warp, after the warp the script below the warp script will be rubbish and just going to make your script big, put your script before warp.
XSE:
Code:
Setflag 0x8AB
darken 0x10
warp 0x9 0x9 0xFF 0x8 0x7
nop
nop
nop
waitstate
end