DaleFails
Pokémon: Giovanni Origins developer
- 251
- Posts
- 13
- Years
- Seen yesterday
Hi all,
I have recently returned to ROM hacking and intend to finish a game I started 10 years ago. I am currently re-scripting most of the events in the early game but have one script I cannot crack.
I am trying to do a basic warp function.
Everything works in my script except the warp. You obtain a Rainbow Pass and then speak to an NPC who offers to sail you to a new port. You say Yes, the seagallop animation plays, the screen fades back in but I am not warping to where I am telling the game to warp the player.
My script is below. I have highlighted the warp. I want to warp the a place in a map, map bank 3, map 0, position 1E 32. I have followed the scripting tutorials online but instead I get warped to a completely different map.
Any obvious errors with the warp in my script?
Thanks guys!
I have recently returned to ROM hacking and intend to finish a game I started 10 years ago. I am currently re-scripting most of the events in the early game but have one script I cannot crack.
I am trying to do a basic warp function.
Everything works in my script except the warp. You obtain a Rainbow Pass and then speak to an NPC who offers to sail you to a new port. You say Yes, the seagallop animation plays, the screen fades back in but I am not warping to where I am telling the game to warp the player.
My script is below. I have highlighted the warp. I want to warp the a place in a map, map bank 3, map 0, position 1E 32. I have followed the scripting tutorials online but instead I get warped to a completely different map.
Any obvious errors with the warp in my script?
Thanks guys!
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @onlywithpass 0x6
checkflag 0x306
if 0x01 goto @gotpass
release
end
#org @gotpass
msgbox @questiontravel 0x5
compare LASTRESULT 0x1
if 0x1 goto @answeryes
msgbox @answerno 0x6
release
end
#org @answeryes
msgbox @allaboard 0x6
special 0x17B
warp 0x3 0x0 0xFF 0x001E 0x0032
fadescreen 0x0
release
end
#org @onlywithpass
= [black_fr]This boat is destined for [green_fr]Empire\nIsle[black_fr]. Only those with a [green_fr]Rainbow\lPass[black_fr] may board.
#org @questiontravel
= [black_fr]Would you like to travel to [green_fr]Empire\nIsle[black_fr]?
#org @answerno
= [black_fr]Very well!
#org @allaboard
= [black_fr]All aboard the Empire Express!
#org @start
lock
faceplayer
msgbox @onlywithpass 0x6
checkflag 0x306
if 0x01 goto @gotpass
release
end
#org @gotpass
msgbox @questiontravel 0x5
compare LASTRESULT 0x1
if 0x1 goto @answeryes
msgbox @answerno 0x6
release
end
#org @answeryes
msgbox @allaboard 0x6
special 0x17B
warp 0x3 0x0 0xFF 0x001E 0x0032
fadescreen 0x0
release
end
#org @onlywithpass
= [black_fr]This boat is destined for [green_fr]Empire\nIsle[black_fr]. Only those with a [green_fr]Rainbow\lPass[black_fr] may board.
#org @questiontravel
= [black_fr]Would you like to travel to [green_fr]Empire\nIsle[black_fr]?
#org @answerno
= [black_fr]Very well!
#org @allaboard
= [black_fr]All aboard the Empire Express!