The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Warp pads don't work!

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 22nd, 2016 (3:53 AM).
baz.leonard's Avatar
baz.leonard baz.leonard is offline
 
Join Date: May 2016
Location: Australia
Gender: Male
Nature: Calm
Posts: 19
Hi, so basically, when an event is happening and the player passes over a warp pad it does nothing. Here is my script.

Spoiler:
'---------------
#org 0x71D118
checkflag 0x100
if 0x1 goto 0x871D157
applymovement MOVE_PLAYER 0x871D1F3
waitmovement 0xFF
applymovement 0x1 0x871D1F0
waitmovement 0x1
msgbox 0x871D15A MSG_NORMAL '"[blue_fr]Happy birthday honey!\nPr..."
applymovement 0x1 0x871D1EE
waitmovement 0x1
applymovement MOVE_PLAYER 0x871D1E3
waitmovement 0xFF
setflag 0x100
release
end

'---------------
#org 0x71D157
release
end


'---------
' Strings
'---------
#org 0x71D15A
= [blue_fr]Happy birthday honey!\nProf. Markk was just\phere but we decided\lnot to wake you.\pWhy don't you go see him?\lHe has something for\pyou!


'-----------
' Movements
'-----------
#org 0x71D1F3
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xFE 'End of Movements

#org 0x71D1F0
#raw 0x63 'Question Mark (?)
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x71D1EE
#raw 0x2F 'Face Left (Delayed)
#raw 0xFE 'End of Movements

#org 0x71D1E3
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xFE 'End of Movements


Also, my var number is set to 4050 in advance map, but I don't know if that has anything to do with it.
__________________
Looking for tile inserters to help with my Pokemon ROM hack, I'm willing to pay, PM me.
FC - 3282-5935-8044
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 22nd, 2016 (6:25 AM).
0's Avatar
0 0 is offline
Happy and at peace. :)
 
Join Date: May 2016
Location: Pallet Town
Gender: Male
Nature: Calm
Posts: 556
Hello baz.leonard! So, I did a bit of research for your issue and I found that you'll need a warp command after your setflag, you can't just pass a door or warp spot like normal.

This will look something like:

Spoiler:

waitmovement 0xFF
setflag 0x100
warp 0xmapnumber 0xmapbank 0xFF 0xXpos 0xYpos


mapbank and number is the map you want to go to, and x and y is where you want to teleport to. In the case of a door, by the door, in case of a warp spot, by the warp. If you wanted to continue the script there, you would then add a level script to continue where you left off.

A few other remarks:
1. You forgot to add a lock. Whatever you lock you must release.
2. You should probably use lockall. This will make the event focused on you and your mom, no one else will more, if you have anyone.
3. Var number stops the script from ever happening again. However, since you have this at the beginning:

Spoiler:
checkflag 0x100
if 0x1 goto 0x871D157


You are simply telling the script to never repeat anyway.

The script otherwise looks fairly solid, at least from my view point. Try those changes and let us know what happens. Thanks for reading, have a great day, and good luck!
__________________

Just dance with me!!!!!!!

Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:08 AM.