- 36
- Posts
- 10
- Years
- United States
- Seen Dec 7, 2022
I will post my uncompiled script below,
The goal here is to check if the player picks up their backpack before they leave their house. Their 'backpack' contains their pokemon (eevee), pokedex (national), and running shoes. I have this script working and if I pick it up before I leave it lets me thru - so the 'checkflag' part of my applymovement script is working.
What happens is if I step on one of the tiles I linked to the script (3 tiles linked to the same script, is that allowed?) before I pickup the bag the rom just freezes. What I want to happen is have the player 'faceup' and 'step up' so they cannot leave the house without grabbing their bag of stuff.
The XSE tutorial mentions the freezing and a fix but that portion seems to be edited or unfinished? it says to change this... and then a blank line; to this.... and then another blank line :/
The goal here is to check if the player picks up their backpack before they leave their house. Their 'backpack' contains their pokemon (eevee), pokedex (national), and running shoes. I have this script working and if I pick it up before I leave it lets me thru - so the 'checkflag' part of my applymovement script is working.
What happens is if I step on one of the tiles I linked to the script (3 tiles linked to the same script, is that allowed?) before I pickup the bag the rom just freezes. What I want to happen is have the player 'faceup' and 'step up' so they cannot leave the house without grabbing their bag of stuff.
The XSE tutorial mentions the freezing and a fix but that portion seems to be edited or unfinished? it says to change this... and then a blank line; to this.... and then another blank line :/
Spoiler:
#dynamic 0x902900
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end
#org @move1
#raw 0x1
#raw 0x11
#raw 0xFE
#org @1
= Don't forget to grab \nyour stuff before you \lleave!
#org @done
release
end
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end
#org @move1
#raw 0x1
#raw 0x11
#raw 0xFE
#org @1
= Don't forget to grab \nyour stuff before you \lleave!
#org @done
release
end
Last edited: