The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Script event freezing

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 January 23rd, 2015 (8:02 AM).
Shyemest Shyemest is offline
 
Join Date: Nov 2013
Gender: Male
Posts: 20
Can you please help me. I am making a script where the main character approaches a hole from the left side. He needs to explore the area before deciding to jump down. Here if the script:

#dynamic 0x800000

#org @event1
lock
faceplayer
checkflag 0x200
If 0x0 goto @done1
checkflag 0x201
If 0x1 goto @done2
msgbox @1 0x6
setflag 0x201
release
end

#org @done1
msgbox @2 0x6
applymovement 0xFF @move1
release
end

#org @done2
release
end

#org @move1
#raw 0x2
#raw 0x12
#raw 0xFE

#org @1
= \v\h01: OKay...\n...\lHere we go!

#org @2
= \v\h01: Maybe I should find\nanother exit.

And here is the script when the player attempts to exit through a small cavern:

#dynamic 0x800000

#org @event2
lock
faceplayer
msgbox @3 0x6
setflag 0x200
release
end

#org @3
= \v\h01: This path has been\nblocked off, I'm gonna\ltake the risk and jump\ldown that hole I saw\learlier.

Please tell me the error i made. i used Advanced Map to make the event, I put in the dynamic offset (changed when compiled) but thats it. When I go over any of the events. It freezes me but the music still plays.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 23rd, 2015 (8:59 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Have you set the var fields for the green-script event tile?

Have a look at this tutorial to include a variable in your script (freeing up a flag, potentially) and fixing the issue.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 23rd, 2015 (9:39 AM). Edited January 23rd, 2015 by Spherical Ice.
Shyemest Shyemest is offline
 
Join Date: Nov 2013
Gender: Male
Posts: 20
Thanks, that might be the issue!

Yes!! The script works now!!
__________________
Dunsparce for ubers?
--
Pokemon Andalusite
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:10 AM.