redriders180
Mastermind of Pokemon Glazed
- 314
- Posts
- 14
- Years
- Path of Victory, Tunod
- Seen Dec 17, 2016
Hi again.
I've been trying to set a level script for the starting map (4.1)
I've tried it the hard way (adding a new script to tag with 0x168CC8 (which is the starting script), but nothing I did worked. Then, I've tried to replace the data for the new level script, as follows:
No matter what I do, the game freezes right after the oak intro, before you appear into your room.Code:#org 0x168CC8 'original level script address for the room call 0x8800A82 end #org 0x800A82 spriteface 0xFF 0x2 setvar 0x4056 0x1 'this line and the above are the contents of the original levelscript lock msgbox 0x8800B20 MSG_NORMAL pause 0x3F msgbox 0x8800B20 MSG_NORMAL msgbox 0x8800B8E MSG_KEEPOPEN setvar 0x8004 0x1 setvar 0x8005 0x1 setvar 0x8006 0xC setvar 0x8007 0x2 special 0x136 msgbox 0x8800BAC MSG_KEEPOPEN pause 0x1C closeonkeypress release end
The script itself isn't a problem (I've assigned it to a NPC, and it works as it should). However it as a level script breaks. I've even tried to put it in another map (4,2, which has no level scripts) and it didn't work as well.
What might be wrong?
Time to take a shot in the dark...
If memory serves, the original script (the spriteface one) is a very special type of level script, type [04]. This type of level script is specifically designed to run before the player has finished warping, allowing you to face up when you first start the game, instead of down like a traditional warp.
Additionally, this type of level script is EXTREMELY picky about the commands it runs...it should only really be used for things like spriteface, and I've found the specials that put the player on the surf and bike work with it as well. Messages, however, don't. For that, you need to use type [02] level scripts.