- 31
- Posts
- 6
- Years
- She/Her or He/Him
- In my room
- Seen May 9, 2025
Okay, so I have almost everything I need ready to idiot-proof the start of my romhack.
By idiot-proof, I mean forcing the player to set a healing place as this game (for reasons I wish not to disclose just yet) starts on Route 22, so that if for any reason the player's Pokemon faints before healing at a Pokemon Center, they don't end up in undesirable places within the game (had this happen when I was testing the difficulty of a battle in a different romhack, oof).
For route 22, I need two script tiles, the only difference being which directions the player and NPC need to face each other. I need them to play the event in the spoiler (note that the spoiler event works perfectly fine, I just need something similar to it for the tiles):
I apologize, I did forget to save a copy of the script as it was typed in XSE, but it's a simple enough script that it can still be understood. I can try to retype the original script if it helps.
For the Pokemon Center, this is the script I'm trying to use (this is just one of the directions), but it fails. The tiles are meant to make the player walk back to the tile they're supposed to be on, but it doesn't make them walk back, and sometimes the player will just be stuck until the game is reset.
I have the person events working as desired, now if I can just get these script tiles working and out of the way, I can move on to the easier part of this game's beginning.
I really don't like asking for help with things like this, but I haven't hacked a rom in over a year, and kind of forgot how to do a lot of things. I had to relearn stuff. Any help is greatly appreciated.
By idiot-proof, I mean forcing the player to set a healing place as this game (for reasons I wish not to disclose just yet) starts on Route 22, so that if for any reason the player's Pokemon faints before healing at a Pokemon Center, they don't end up in undesirable places within the game (had this happen when I was testing the difficulty of a battle in a different romhack, oof).
For route 22, I need two script tiles, the only difference being which directions the player and NPC need to face each other. I need them to play the event in the spoiler (note that the spoiler event works perfectly fine, I just need something similar to it for the tiles):
Spoiler:
'---------------
#org 0x800100
lock
faceplayer
msgbox 0x8800138 MSG_NORMAL '"[red_fr]???: Oh, good, you're awak..."
setflag 0x828
givepokemon 0xD7 0x5 0x0 0x0 0x0 0x0
setvar 0x2000 0x1
hidesprite 0x1
hidesprite 0x2
hidesprite 0x3
hidesprite 0x4
warpmuted 0x5 0x4 0xFF 0x7 0x4
release
end
'---------
' Strings
'---------
#org 0x800138
= [red_fr]???: Oh, good, you're awake...\nDo you remember what happened?\lA group of thugs attacked you.\lThey knocked you out, and stole\lmost of your Pokemon. I fought\lthem off of you, but I'm afraid\lthey took off with every Pokemon\lyou had, except for your Sneasel.\lWhat's your name?\l...[player]? Nice to meet you, my\lname's Leaf. Now, let's go to the\lPokemon Center, your Sneasel may\lappear fine, but it doesn't hurt\lto let a nurse check it.
#org 0x800100
lock
faceplayer
msgbox 0x8800138 MSG_NORMAL '"[red_fr]???: Oh, good, you're awak..."
setflag 0x828
givepokemon 0xD7 0x5 0x0 0x0 0x0 0x0
setvar 0x2000 0x1
hidesprite 0x1
hidesprite 0x2
hidesprite 0x3
hidesprite 0x4
warpmuted 0x5 0x4 0xFF 0x7 0x4
release
end
'---------
' Strings
'---------
#org 0x800138
= [red_fr]???: Oh, good, you're awake...\nDo you remember what happened?\lA group of thugs attacked you.\lThey knocked you out, and stole\lmost of your Pokemon. I fought\lthem off of you, but I'm afraid\lthey took off with every Pokemon\lyou had, except for your Sneasel.\lWhat's your name?\l...[player]? Nice to meet you, my\lname's Leaf. Now, let's go to the\lPokemon Center, your Sneasel may\lappear fine, but it doesn't hurt\lto let a nurse check it.
I apologize, I did forget to save a copy of the script as it was typed in XSE, but it's a simple enough script that it can still be understood. I can try to retype the original script if it helps.
For the Pokemon Center, this is the script I'm trying to use (this is just one of the directions), but it fails. The tiles are meant to make the player walk back to the tile they're supposed to be on, but it doesn't make them walk back, and sometimes the player will just be stuck until the game is reset.
Spoiler:
#dynamic 0x800400
#org @start
msgbox @no 0x4
closeonkeypress
applymovement 0xFF @back
end
#org @no
= [red_fr]Leaf: Don't leave without\nletting the nurse check on your\lSneasel...
#org @back
#raw 0x13
#org @start
msgbox @no 0x4
closeonkeypress
applymovement 0xFF @back
end
#org @no
= [red_fr]Leaf: Don't leave without\nletting the nurse check on your\lSneasel...
#org @back
#raw 0x13
I have the person events working as desired, now if I can just get these script tiles working and out of the way, I can move on to the easier part of this game's beginning.
I really don't like asking for help with things like this, but I haven't hacked a rom in over a year, and kind of forgot how to do a lot of things. I had to relearn stuff. Any help is greatly appreciated.