Creating Level Scripts
View Single Post
October 16th, 2009 (5:09 AM).
I program the *other* ASM.
Join Date: Aug 2005
Location: Hertfordshire, England
Some of the technicalities here are a little off... D:
Originally Posted by
The var you(well, I) used--0x4033--should be inserted into the Flag area. And for some strange reason, the value you(I) used in the setvar command(setvar 0x4033 0x1) has to be subtracted by one.
Since I used 0x1, I subtract 1 and get 0x0. so I put 0x0 into the Value box.
It does not have to be subtracted by 1. The reason we use 0x0 in the Value box is because the var starts at 0. The Value box dictates which value the var has to be to start the script. After the script, you set it to 1 (or indeed any other value if you choose to), and this means it no longer equals zero, so no longer activates.
Wow, the level script really worked!!!
Advance Map overwrites the 0000 that you put into the Value box, with FFFF.
Actually, it overwrites a completely separate number with FFFF, one for which there was no input box (as it was thought to be unused). This is not such a mistake in the tutorial, but for future reference it should always be set to zero, not whatever you set the "Value" box to.
PKSV: Perfect script editing
from Gold to Fire Red!
Plz not to PM me, I don't come here often enough. Email if you need me
View Public Profile
Send a private message to score_under
Find all posts by score_under
Find threads started by score_under