The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Script won't execute

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 March 4th, 2021 (7:45 PM). Edited March 4th, 2021 by DaimyoHermit.
DaimyoHermit's Avatar
DaimyoHermit DaimyoHermit is offline
G Rank
 
Join Date: Feb 2021
Location: Old Desert
Gender: Male
Nature: Impish
Posts: 59
help my script doesn't execute and i have no freaking idea why!!!!!!!!! I'ts a very long script so i'll just post the starting pointer

Code:
#dynamic 0x800000

#org @start
lock
applymovement 0x08 @emote1
waitmovement 0x08
msgbox @talk1 0x6
applymovement 0x08 @move1
applymovement 0x07 @move1
applymovement 0x06 @move1
applymovement 0x09 @move1
msgbox @talk2 0x6...
It's on a script event when i step on it it just locks the game forever and won't execute the rest!!!!
I got all the raw movement codes correctly and put an #raw 0xFE at the end
Also i got all of the person event's numbers correctly!!!!!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 4th, 2021 (8:00 PM).
dGxx dGxx is offline
 
Join Date: Oct 2015
Gender: Male
Posts: 46
I will help you. As scripting is pretty easy for me, u forgot to add another waitmovement after those 4 u added...and u have to finish with releaseall and end
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 4th, 2021 (8:30 PM). Edited March 4th, 2021 by DaimyoHermit.
DaimyoHermit's Avatar
DaimyoHermit DaimyoHermit is offline
G Rank
 
Join Date: Feb 2021
Location: Old Desert
Gender: Male
Nature: Impish
Posts: 59
Quote:
I will help you. As scripting is pretty easy for me, u forgot to add another waitmovement after those 4 u added...and u have to finish with releaseall and end
no the movement is supposed to come along with the message box and putting "releaseall" at the end still didn't work.
I did try to put waitmovement after all of the applymovements and no change at all
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old March 4th, 2021 (10:57 PM).
Asith's Avatar
Asith Asith is offline
Uwao
 
Join Date: Nov 2020
Posts: 204
Two things to note:
1. The lock command is used when activating a script by talking to a person. It locks that person's sprite only. Since you're using a tile, the game may be getting stuck because it doesn't know which person to lock. Try getting rid of the lock or using lockall instead.
2. The script tile may be refusing to activate regardless of your script. Try adding a random variable that will always be 0 into the tile's var slot in advance map and see if that helps.

If neither of those help, can you please post all of your code? Just put it in a spoiler if it's so long :)
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old March 4th, 2021 (11:16 PM).
DaimyoHermit's Avatar
DaimyoHermit DaimyoHermit is offline
G Rank
 
Join Date: Feb 2021
Location: Old Desert
Gender: Male
Nature: Impish
Posts: 59
Quote:
2. The script tile may be refusing to activate regardless of your script. Try adding a random variable that will always be 0 into the tile's var slot in advance map and see if that helps.
I felt like a dumbass this one helped thanks for reminding me
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:19 AM.