![]() |
Scripting a Warp - query
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! Spoiler:
|
@DaleH771
Probably change 0x001E to 0x1E and 0x0032 to 0x32? |
Quote:
Thanks though! |
@DaleH771
To which map are you warped? |
Quote:
I assume special 0x17B is the Seagallop animation? I would look into whether that special forces the player to warp as well. Try running the script without your warp command and see if the player is still warped. EDIT: Yep, the Seagallop special automatically warps you to Vermilion when used like that. You can edit that special by using it like this: setvar 0x8006 0x[place where you want to go] setvar 0x8004 0x[0 for rightward animation, 1 for leftward animation] special 0x17B The place where you want to go is taken from here. 0x0 would be the first listing, 0x1 would be the second, and so on. You can edit the destinations to custom ones using a hex editor :) |
Quote:
Quote:
Side note: great to see active members on here, it's been ten or so years since I was active! |
@DaleH771
Aah yes, the seagallop special has its own warp table. Glad the issue is fixed;) |
The setvar 0x8006 does change the map the player is warped to, but var 0x8004 never seemed to change the direction of the sailing boat in the cutscene.
I figured out that the animation was linked to each map, like ship sailing left when going to Vermillion, and ship sailing right when going anywhere else. The var 0x8004 did change the name of the destination when I used it with a multichoice box of the Vermillion script. |
| All times are GMT -8. The time now is 9:18 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.