The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Script compiles but doesn't work properly.

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 June 26th, 2018 (7:41 AM).
myrongains myrongains is offline
 
Join Date: Jun 2018
Posts: 1
I want the player to be able to grab the running shoes via an item ball on their desk. The script works in that the shoes are enabled after and the fanfare/fade screen happen, but for some reason none of the text appears. Anyone have any ideas?

Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x200
msgbox @talk1 0x6
setflag 0x82F
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
msgbox @talk3 0x6
closeonkeypress
fadescreen 1
hidesprite 0x800F
setflag 0x200
fadescreen 0
release
end

#org @talk1
= I almost forgot my Running Shoes.

#org @talk2
= \v\h01 put on Running Shoes!

#org @talk3
= Now we're ready!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 26th, 2018 (8:41 AM).
hjk321's Avatar
hjk321 hjk321 is offline
 
Join Date: Sep 2017
Posts: 219
Not too experienced myself, but pretty sure having that checkflag makes it so some stuff wouldn't get executed. Try deleting that command? It doesn't look like it does anything in your code.
__________________
Binary is dead.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 26th, 2018 (5:47 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
I'm not an expert on scripting, but here's what I came up with (edits have comments after them, comments are bolded and can be removed if you want tp use this.):

Code:
#dynamic 0x800000
#org @start
lock //Removed checkfalg because it didn't seem to be useful. Removed faceplayer becase it's not useful on scripts that are for a "hidden item" ball.
msgbox @talk1 0x6
setflag 0x82F
fanfare 0x13E
msgbox @talk2 0x6
waitfanfare
msgbox @talk3 0x6
closeonkeypress
fadescreen 1
hidesprite 0x800F //removed setflag becuse the checkflag wasn't really doing anything anyway (if you wanted it to be used, then do checkflag, then an if statement comparing the value)
fadescreen 0
release
end

#org @talk1
= I almost forgot my Running Shoes.

#org @talk2
= [player] put on Running Shoes! //I don't know if what you had was "technically the same thing", it's personal preference which you want to use I guess. (also depends on if you want it to be "Player put on Running Shoes" or just "Put on Running Shoes.")

#org @talk3
= Now we're ready!
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.