Thread: [Tutorial] Creating Level Scripts
View Single Post
Old October 16th, 2009 (5:09 AM).
score_under's Avatar
score_under score_under is offline
I program the *other* ASM.
Crystal Tier
Join Date: Aug 2005
Location: Hertfordshire, England
Age: 23
Nature: Rash
Posts: 525
Some of the technicalities here are a little off... D:
Originally Posted by cooley View Post
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.
Plz not to PM me, I don't come here often enough. Email if you need me
Reply With Quote