- 29
- Posts
- 13
- Years
- Age 44
- Denmark
- Seen Dec 23, 2022
Could you have switched bank & map ?I'm attempting to use a rudimentary warping script, but when it gets to the warp, it makes the door sound and then leads to the game crashing and going black. What am I doing wrong?
Code:#dynamic 0x0100003E #org @start lock faceplayer msgbox @1 0x6 msgbox @2 0x5 compare 0x800D 0x1 if 0x1 goto @yes release end #org @1 = You open the drawer...\p...\pAnd find a ladder! #org @2 = Would you like to\nuse it? #org @yes msgbox @okay 0x6 fadescreen 0x1 < I've tried it without these warp 0x0 0x65 0x0 0x0 0x0 < I've tried it with the params "0x0 0x65 0xFF 0x2 0x2" as well, to no avail. fadescreen 0x0 < Again, tried it without these release end #org @okay = You step down the ladder...
When looking in the XSE command help, you'll see that:
Warp 0x"bank" 0x"map" 0x"exit" 0x"x" 0x"y"
My guess is, that you need to do either:
0x65 0x0 0x0 0x0 0x0
or
0x65 0x0 0xFF 0x0 0x0
since you seem to have tried anything else.
When reading the Trainerbattle XSE command help you should see:I'm getting the "Too Less Parameters on Line 8. The correct number is 4." - It's been a while since I've done scripting so I wasn't surprised that it was kind of messed up, can anyone help here?
Script:
Spoiler:#dynamic 0x800000
#org @start
lockall
applymovement 0x03 @move
waitmovement 0x0
msgbox @msg1 0x6
trainerbattle 0x3 0x5 0x0
@defeat msgbox @msg2 0x6
applymovement 0x03 @move2
waitmovement 0x0
setflag 0x1200
setvar 0x5050 0x1
hidesprite 0x3
releaseall
end
#org @move
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
#org @move2
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @msg1 = = Hi! I'm May, I recently moved here\nfrom Hoenn to explore the Kanto\lregion and discover new Pokémon.\lWhat's your name?\lNice to meet you [playert]! I have an\lidea, since Professor Oak has\lentrusted me with a Pokemon how\labout we have a quick battle?
#org @msg2 = = I think me and Eevee need to train\nsome more, next time we meet I\lwill be much tougher! See ya\laround [player]
#org @defeat = = Woah! That was really fun..
Trainerbattle 0x"type" 0x"battle#toStart" 0x"reserved" 0x"challengeTextPointer" 0x"defeatTextPointer"
So what you need to do is:
Code:
trainerbattle 0x3 0x5 0x0 @msg1 @defeat
msgbox @msg2 0x6