The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script XSE: Error 9 on line 55 Subscript out of range

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 August 16th, 2017 (5:14 AM). Edited August 17th, 2017 by PotatoJedi.
PotatoJedi's Avatar
PotatoJedi PotatoJedi is offline
 
Join Date: Aug 2017
Posts: 5
When I compiled my script for a squirtle starter it said Error 9 on line 55 Subscript out of range, even though I had only 34 lines. I am using wine, because I have a mac, and it has been working perfectly up until now. I have looked into it, and I did check the settings.ini and it said =0, here is the script:
Spoiler:

#dynamic 0x800000
#org @start

lock
checkflag 0x200
if 0x1 goto @done
msgbox @t1 0x5
compare 0x800D 0x1
if 0x1 goto @yes
compare 0x800D 0x1
if 0x0 goto @no
release
end


#org @yes
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
setflag 0x200
release
end

#org @no
= [blue_fr]Okay, Just click the\nnext pokeball to check out\lthat pokemon.
release
end


#org @done
msgbox @t2 0x6

#org @t2
= [black_fr]You canít take another!
release
end

#org @t1
= [black_fr]Choose [blue_fr]Squirtle[black_fr]?
release
end




If you know anything please tell me, thank you :)
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 16th, 2017 (12:43 PM).
Skeli's Avatar
Skeli Skeli is offline
Lord of the Rings
 
Join Date: Apr 2014
Location: Canada
Age: 24
Gender: Male
Nature: Adamant
Posts: 300
I made some comments that might help you fix your problem.
Spoiler:
#dynamic 0x800000
#org @start

lock
checkflag 0x200
if 0x1 goto @done
msgbox @t1 0x5
compare 0x800D 0x1
if 0x1 goto @yes
compare 0x800D 0x0
if 0x1 goto @no //This should point to another snippet of code, not message data
release
end

#org @yes
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
setflag 0x200
release
end

#org @no
msgbox @nomessage 0x5
release
end

#org @done
msgbox @t2 0x6
release //add an end command
end


#org @t2
= [black_fr]You can't take another!
//release NOT NEEDED
//end NOT NEEDED


#org @t1
= [black_fr]Choose [blue_fr]Squirtle[black_fr]?
//release NOT NEEDED
//end NOT NEEDED


#org @nomessage
= [blue_fr]Okay, just click on the next Pok\e\nBall to check out that Pok\emon.

__________________
Pokemon Unbound

Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 17th, 2017 (3:08 AM).
PotatoJedi's Avatar
PotatoJedi PotatoJedi is offline
 
Join Date: Aug 2017
Posts: 5
Thank You so much!
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 17th, 2017 (3:09 AM).
PotatoJedi's Avatar
PotatoJedi PotatoJedi is offline
 
Join Date: Aug 2017
Posts: 5
I accidentally disliked, sorry.
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.