The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Subscript out of range XSE

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 12th, 2019 (11:20 AM).
RoPelleboer RoPelleboer is offline
 
Join Date: Feb 2019
Posts: 6
Hello, I'm pretty new to scripting and I'm trying to make a movement script.
This is the script I made:

#dynamic 0x801A00

#org @start
lock
faceplayer
applymovement 0x1 @towards
waitmovement 0x0
msgbox @rival 0x6
applymovement 0x1 @away
waitmovement 0x0
hidesprite 0x1
release
end

#org @towards
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x3
#raw 0xfe

#org @rival
= [player]!\pIt’s finally time!\nTime to set of on our adventure!\pThanks to your dad we can go travel\nall around the Orre region!\pHe even arranged three special Pokemon we can\nchoose from to start of with on our adventure!\pCome on, let’s hurry up to his lab!\nI can barely wait!

#org @away
#raw 0x1D
#raw 0x1D
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xfe

What it's supposed to do is have a NPC walk towards the player, say something, walk away, and disappear off screen, but when I try to compile it it says 'Subscript out of range on line 26'. I checked multiple times but I just can't seem to figure out what I did wrong. I'm not sure if I'm just doing it completely wrong or if I'm making a small mistake, but I can't seem to figure it out.
Thanks in advance!
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:15 AM.