The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Need help with a script!

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 November 1st, 2017 (9:17 AM). Edited November 1st, 2017 by #Vytron.
#Vytron's Avatar
#Vytron #Vytron is offline
Just an ordinary Romhacker
 
Join Date: Jan 2017
Location: Europe
Gender: Male
Nature: Quiet
Posts: 333
Hi so the problem is that when I make a script with xse containing the warp command (or any other warping commands) the game freezes down.(The script starts and when it gets to "warp" it teleports the player away but to a froze down black/white screen. Also it's in my GBA romhack.

EX script (ignore he applymovements and msgboxes)
#dynamic 0x1AD03A
#org @start
lock
faceplayer
applymovement 0x4 @move1
waitmovement 0x4
msgbox @string1 MSG_NORMAL '"???:Voltorb,Thunder Wave!"
sound 0x13
playsong 0x112 0x1
applymovement 0x4 @move2
waitmovement 0x4
msgbox @string2 MSG_NORMAL '"Ahh!What the!?\nWhy I can't move?!"
applymovement 0x1 @move3
waitmovement 0x1
msgbox @string3 MSG_NORMAL '"Thug:Oh well well.Remember when I\..."
sethealingplace 0x1
warp 0x42 0x0 0xFF 0x1 0x2 <---------------------------------------------------------------------------------HERE IS THE WARP!
setvar 0x4083 0x1
setflag 0x255
setflag 0x256
release
end


'---------
' Strings
'---------
#org @string1
= ???:Voltorb,Thunder Wave!

#org @string2
= Ahh!What the!?\nWhy I can't move?!

#org @string3
= Thug:Oh well well.Remember when I\nsaid next time?\pWell this is the next time!\p[player]:What?Why are you doing this?\nAnd what are you doing actually?\pThug:The boss has noticed your\nheroic actions.And he thinks that\pyou are a threat to our\norganiyation!\pHe wants to eliminate you before it'\ntoo late.


'-----------
' Movements
'-----------
#org @move1
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org @move2
#raw 0x49 'Jump Facing Left (Right)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements

#org @move3
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 1st, 2017 (12:19 PM).
Auros's Avatar
Auros Auros is offline
 
Join Date: Sep 2015
Gender: Male
Posts: 87
Is your map (42.0)? Remember to convert all numbers in hexadecimal anyway
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 1st, 2017 (1:11 PM).
#Vytron's Avatar
#Vytron #Vytron is offline
Just an ordinary Romhacker
 
Join Date: Jan 2017
Location: Europe
Gender: Male
Nature: Quiet
Posts: 333
Quote:
Originally Posted by Auros View Post
Is your map (42.0)? Remember to convert all numbers in hexadecimal anyway
Thank you.I’ll try it tomorrow.Also should convert all numbes?(like the x y cordinates as well?)
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 1st, 2017 (1:34 PM).
Auros's Avatar
Auros Auros is offline
 
Join Date: Sep 2015
Gender: Male
Posts: 87
Yeah, when you write 0xsomething it means that the value is hexadecimal.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 2nd, 2017 (6:43 AM).
#Vytron's Avatar
#Vytron #Vytron is offline
Just an ordinary Romhacker
 
Join Date: Jan 2017
Location: Europe
Gender: Male
Nature: Quiet
Posts: 333
Quote:
Originally Posted by Auros View Post
Yeah, when you write 0xsomething it means that the value is hexadecimal.
Thank you so much.It worked !{XD}
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:14 AM.