The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Problem with XSE scripting.

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 July 28th, 2015 (2:23 AM).
Smileycorp's Avatar
Smileycorp Smileycorp is offline
Meh
 
Join Date: Jun 2015
Location: Sunnyshore City
Gender: Male
Nature: Lax
Posts: 64
I'm having trouble with an XSE script that I made here's the script:

Spoiler:
'---------------
#org 0x29320E
msgbox 0x817476D MSG_NORMAL '"[rival]: [player], remember we wer..."
warp 0x1 0x4 0xFF 0x6 0x9
waitstate
end


'---------
' Strings
'---------
#org 0x17476D
= [rival]: [player], remember we were going to \nthe professors lab.\pWe were going to get our starters!


This is for a ruby hack, and it a script that should activate when you step on it, however during testing the only thing that happens is it freezes the player and does nothing, except play the background music.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 28th, 2015 (11:47 AM).
esperance's Avatar
esperance esperance is offline
 
Join Date: Mar 2010
Location: OH
Age: 26
Gender: Male
Nature: Relaxed
Posts: 3,830
I think you may need to use the lock/release commands for this to work correctly. Also make sure that you are warping to a valid map and X/Y position.
Code:
'---------------
#org 0x29320E
lock
msgbox 0x817476D MSG_NORMAL '"[rival]: [player], remember we wer..."
warp 0x1 0x4 0xFF 0x6 0x9
waitstate
release
end


'---------
' Strings
'---------
#org 0x17476D
= [rival]: [player], remember we were going to \nthe professors lab.\pWe were going to get our starters!
It may also require the lockall/releaseall commands instead, though.
__________________
What are you so afraid of?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 28th, 2015 (12:32 PM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
You should also be sure to enter a valid variable in the Var number field in Advance Map for the Script tile.
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 8th, 2015 (1:23 AM).
Smileycorp's Avatar
Smileycorp Smileycorp is offline
Meh
 
Join Date: Jun 2015
Location: Sunnyshore City
Gender: Male
Nature: Lax
Posts: 64
thanks, but which valid variable numbers are there?
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 8th, 2015 (2:33 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
Quote:
Originally Posted by Smileycorp View Post
thanks, but which valid variable numbers are there?
0x4012 - 0x40FF. Click here for more info on both flags and variables.
__________________
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old August 9th, 2015 (10:48 AM).
Smileycorp's Avatar
Smileycorp Smileycorp is offline
Meh
 
Join Date: Jun 2015
Location: Sunnyshore City
Gender: Male
Nature: Lax
Posts: 64
Thanks
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:09 AM.