The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script My first script keeps freezing

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 March 30th, 2021 (7:34 PM).
Jablinx Jablinx is offline
 
Join Date: Mar 2021
Posts: 3
So I made my first room script for my romhack, but everytime I step into the room that it occupies, the game stays at a black screen forever. Here's the script:

'---------------
#org 0x26DAAA
lock
applymovement MOVE_PLAYER 0x826DB09
waitmovement 0x0
fanfare 0x100
waitfanfare
msgbox 0x826DB0D MSG_KEEPOPEN '"Welcome to the Sevii Festival.\nRa..."
showpokepic 0x3DD 0xA 0x3
msgbox 0x826DB87 MSG_KEEPOPEN '"Type:Null!"
hidepokepic
givepokemon 0x3DD 0x5 0x0 0x0 0x0 0x0
bufferpokemon 0x0 0x3DD
fanfare 0x13E
waitfanfare
msgbox 0x826DB94 MSG_YESNO '"Would you like to give a nickname\..."
compare LASTRESULT 0x1
if 0x1 call 0x826DAFC
release
end

'---------------
#org 0x26DAFC
setvar 0x8004 0x0
fadescreen 0x1
special 0x9E
waitstate
return


'---------
' Strings
'---------
#org 0x26DB0D
= Welcome to the Sevii Festival.\nRandomizing Starter Pokemon...\lCalculating...\lCalculating...\lYour Starter Pokemon is...\l

#org 0x26DB87
= Type:Null!

#org 0x26DB94
= Would you like to give a nickname\nto your Type:Null?


'-----------
' Movements
'-----------
#org 0x26DB09
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)

Can anyone tell me what's wrong? Thanks so much in advance. Virtual high fives for all.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 1st, 2021 (6:21 AM).
pokemon fan person's Avatar
pokemon fan person pokemon fan person is offline
 
Join Date: Mar 2021
Location: kalos
Age: 20
Gender: Female
Nature: Sassy
Posts: 828
i don’t know what that script means but you probably messed something up while writing it
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 2nd, 2021 (7:15 AM).
ShinyTillDawn's Avatar
ShinyTillDawn ShinyTillDawn is offline
 
Join Date: Apr 2020
Posts: 135
1) The last move command should have "#raw 0xFE" to signal the end of movements.
2) Is it triggered upon entering? Make sure in the "Header" tab in Advance Map, the map script should be "02 validates values to 0x3B000030 (play..." as you can use most commands there.
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
Thread Tools

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:18 AM.