The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Script won't execute (https://www.pokecommunity.com/showthread.php?t=446119)

DaimyoHermit March 4th, 2021 7:45 PM

Script won't execute
 
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!!!!!

dGxx March 4th, 2021 8:00 PM

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

DaimyoHermit March 4th, 2021 8:30 PM

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

Asith March 4th, 2021 10:57 PM

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 :)

DaimyoHermit March 4th, 2021 11:16 PM

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


All times are GMT -8. The time now is 9:19 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.