The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Script Keeps Repeating Itself

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 October 6th, 2019 (8:30 PM).
Pokeeng Pokeeng is offline
 
Join Date: Nov 2015
Gender: Male
Posts: 73
So I set a level script into my Firered Hack and it plays out properly without any problems but if I walk back over the spot, it plays the text again.

Here is the compiled script, I'm not sure at all what's wrong here

'---------------
#org 0x800376
msgbox 0x8800396 MSG_NORMAL '"The terraform experiment with\nReg..."
applymovement 0x5 0x88003E8
waitmovement 0x5
hidesprite 0x5
setvar 0x4012 0x1
setflag 0x1206
release
end


'---------
' Strings
'---------
#org 0x800396
= The terraform experiment with\nRegirock was a success. Proceed to\lthe next step.


'-----------
' Movements
'-----------
#org 0x8003E8
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 7th, 2019 (4:12 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Pokeeng View Post
So I set a level script into my Firered Hack and it plays out properly without any problems but if I walk back over the spot, it plays the text again.

Here is the compiled script, I'm not sure at all what's wrong here

'---------------
#org 0x800376
msgbox 0x8800396 MSG_NORMAL '"The terraform experiment with\nReg..."
applymovement 0x5 0x88003E8
waitmovement 0x5
hidesprite 0x5
setvar 0x4012 0x1
setflag 0x1206
release
end


'---------
' Strings
'---------
#org 0x800396
= The terraform experiment with\nRegirock was a success. Proceed to\lthe next step.


'-----------
' Movements
'-----------
#org 0x8003E8
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
First, you talk about a level script and then about ''walking back over the spot'', which implies you're using a script tile and not a level script. Which one of the two are you using?

To make sure the script doesn't repeat you need to set the variable that triggers the script event to a different value than the one that triggers the script. Are you using var 0x4012 for the script event to trigger? And if so, is it triggered when value 0x1 is stored in that variable?
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.