View Single Post
  #7453    
Old November 19th, 2012 (03:05 AM). Edited November 19th, 2012 by IrrelevantPride.
IrrelevantPride
Unhatched Egg
 
Join Date: Jan 2011
I'm not sure why but my I was practicing with a level script but I keep running to an error. The script plays just fine, the camera moves up three spots then down three spots, the issue comes up that whenever I enter the map, the script continues to run even though the variable (x4000) has been set to x01 and it should only run when its x00. I have another script on the map that also only runs when x4000 is equal to x00 and it doesn't run after the level script has been triggered so I'm not sure what exactly the error is since the variable is being set but the script runs again anyways.

Spoiler:

//________________________
//Level Script Offset x0080030A|
//¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

#org 0x80030A
#raw 0x2
#raw pointer 0x8800320
#raw 0x0

//---------------
#org 0x800320
#raw word 0x4000
#raw word 0x0
#raw pointer 0x880032A
#raw word 0x0

//---------------
#org 0x80032A
special 0x113
applymovement 0x7F 0x88003F0
waitmovement 0x0
special 0x114
setvar 0x4000 0x1
end

//-----------
// Movements
//-----------
#org 0x8003F0
#raw 0x9 //Step Up (Normal)
#raw 0x9 //Step Up (Normal)
#raw 0x9 //Step Up (Normal)
#raw 0x11 //Delay2
#raw 0x11 //Delay2
#raw 0x8 //Step Down (Normal)
#raw 0x8 //Step Down (Normal)
#raw 0x8 //Step Down (Normal)
#raw 0xFE //End of Movements


Edit: Found the answer reading through a level script thread, x4000 is always reset when you exit the map =p