The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Need Help With 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 25th, 2016 (4:55 PM).
DubTheNarwhals's Avatar
DubTheNarwhals DubTheNarwhals is offline
 
Join Date: Aug 2016
Gender: Male
Nature: Quiet
Posts: 6
This Script I Worked For Choosing Your Starter. When You Choose Your Pokemon The Game As Far As I Can See, It Freezes. Its A Person Event & Can Someone Fix It?

Heres The Script:
#dynamic 0x80000
#org @start
lock
faceplayer
checkflag 0x201
compare LASTRESULT 0x1
if 0x1 goto @arh
msgbox @t1 0x5
compare LASTRESULT 0x1
if 0x1 goto @t2
msgbox @t5 0x6
release
end

#org @t5
= Thats To Bad.

#org @arh
msgbox @arh2 0x6
release
end

#org @arh2
= [black_fr]Pokemon Freak:You All Ready/nGot A Pokemon [player]!

#org @t1
= [black_fr]Pokemon Freak:Do You Want A\nPokemon, [red_fr][player][grey_fr]?

#org @t2
msgbox @t2-1 0x5
compare LASTRESULT 0x1
if 0x1 goto @t2y
msgbox @t3 0x5
compare LASTRESULT 0x1
if 0x1 @t3y
msgbox @t4 0x5
compare LASTRESULT 0x1
if 0x1 @t4y
msgbox @t5 0x6
release
end

#org @t2-1
= [black_fr]Pokemon Freak:Do You Want Azurill?

#org @t3
= [black_fr]Pokemon Freak:Do You Want Hoppip?

#org @t4
= [black_fr]Pokemon Freak:Do You Want Magby?

#org @t2y
givepokemon 0x350 0x5 0x139 0x0 0x0 0x0
setflag 201
release
end

#org @t3y
givepokemon 0x187 0x5 0x139 0x0 0x0 0x0
setflag 201
release
end

#org @t4y
givepokemon 0x240 0x5 0x139 0x0 0x0 0x0
setflag 0x201
release
end
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 25th, 2016 (5:34 PM).
mbcn10ww mbcn10ww is offline
 
Join Date: Oct 2016
Posts: 352
Quote:
Originally Posted by DubTheNarwhals View Post
This Script I Worked For Choosing Your Starter. When You Choose Your Pokemon The Game As Far As I Can See, It Freezes. Its A Person Event & Can Someone Fix It?

Heres The Script:
Spoiler:
#dynamic 0x80000
#org @start
lock
faceplayer
checkflag 0x201
compare LASTRESULT 0x1
if 0x1 goto @arh
msgbox @t1 0x5
compare LASTRESULT 0x1
if 0x1 goto @t2
msgbox @t5 0x6
release
end

#org @t5
= Thats To Bad.

#org @arh
msgbox @arh2 0x6
release
end

#org @arh2
= [black_fr]Pokemon Freak:You All Ready/nGot A Pokemon [player]!

#org @t1
= [black_fr]Pokemon Freak:Do You Want A\nPokemon, [red_fr][player][grey_fr]?

#org @t2
msgbox @t2-1 0x5
compare LASTRESULT 0x1
if 0x1 goto @t2y
msgbox @t3 0x5
compare LASTRESULT 0x1
if 0x1 @t3y
msgbox @t4 0x5
compare LASTRESULT 0x1
if 0x1 @t4y
msgbox @t5 0x6
release
end

#org @t2-1
= [black_fr]Pokemon Freak:Do You Want Azurill?

#org @t3
= [black_fr]Pokemon Freak:Do You Want Hoppip?

#org @t4
= [black_fr]Pokemon Freak:Do You Want Magby?

#org @t2y
givepokemon 0x350 0x5 0x139 0x0 0x0 0x0
setflag 201
release
end

#org @t3y
givepokemon 0x187 0x5 0x139 0x0 0x0 0x0
setflag 201
release
end

#org @t4y
givepokemon 0x240 0x5 0x139 0x0 0x0 0x0
setflag 0x201
release
end
Well, you don't need "compare" for flags, and you've placed 2 adresses with the same condition, use it as your @start:

lock
faceplayer
checkflag 0x201
if 0x1 goto @arh (enabled flag)
(disabled flag)
...
...
...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 25th, 2016 (5:53 PM).
DubTheNarwhals's Avatar
DubTheNarwhals DubTheNarwhals is offline
 
Join Date: Aug 2016
Gender: Male
Nature: Quiet
Posts: 6
Thanks, I'm Still New To Scripting
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 25th, 2016 (6:08 PM).
DubTheNarwhals's Avatar
DubTheNarwhals DubTheNarwhals is offline
 
Join Date: Aug 2016
Gender: Male
Nature: Quiet
Posts: 6
It Still Freezes When You Choose A Pokemon, How Do I Fix It?
__________________
When You Realize You Wasted Your Time
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 25th, 2016 (7:48 PM).
mbcn10ww mbcn10ww is offline
 
Join Date: Oct 2016
Posts: 352
Quote:
Originally Posted by DubTheNarwhals View Post
It Still Freezes When You Choose A Pokemon, How Do I Fix It?
Well, I was looking at your script, and it needs a new multichoice box, but it's not my area. =\
Then you can take a look at this tutorial.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old November 26th, 2016 (4:41 AM).
Oracolo Oracolo is offline
 
Join Date: Oct 2016
Gender: Male
Posts: 10
I'm no scripting God myself, but just a two things which seem out of place to me:

- In @t2y and @t3y you've set the flags as 201, in @t4y you've used 0x201. Should all be 0x201, if I'm correct (as your checkflag also points to 0x201).
- I'm not quite sure if @t2-1 is a valid name, really. Wouldn't it be easier for yourself if you just named those sequences differently, as you've already used an @t1 and @t2 before.

Hope this fixes it.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old November 26th, 2016 (9:21 AM).
DubTheNarwhals's Avatar
DubTheNarwhals DubTheNarwhals is offline
 
Join Date: Aug 2016
Gender: Male
Nature: Quiet
Posts: 6
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
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.