The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Trying to create a roadblock script and all it does is softlock you

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 December 21st, 2019 (11:24 PM). Edited December 22nd, 2019 by imFat12321.
imFat12321's Avatar
imFat12321 imFat12321 is offline
 
Join Date: Feb 2010
Gender: Male
Posts: 9
I'm really not sure where I'm going wrong here. What I want to happen is the character is stopped, put into the dialogue, then is forced to take a step back. I've tried making it always work without the flag, rearranged it a couple times, and nothing is working.

Code:
#dynamic 0xA01922

#org @start
lockall
checkflag 0x821
if 0x1 goto @youguud
textcolor 0x0
msgbox @nofurther 0x4
closeonkeypress
applymovement 0xFF @moveaway
waitmovement 0x0
releaseall
end

#org @youguud
releaseall
end

#org @nofurther
= Hold it! The Pokémon in this\nCave are too strong for new\ltrainers. Come back once you've\lgotten two gym badges.

#org @moveaway
#raw 0x13
#raw 0xFE
I feel like I've tried what feels like every different possible combination of where to put certain lines, using different types of message boxes or anything. I am completely stumped here. I literally recreated the entire old man coffee script at one point and that was also still soft locking. Why would this happen? I'm trying to place this script on a new map, if that makes a difference.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old December 22nd, 2019 (1:24 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
It sounds like an issue with the variable number/ values. Check out the end part of this tutorial to learn how script tiles work and how to prevent softlocking.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old December 22nd, 2019 (10:49 AM).
imFat12321's Avatar
imFat12321 imFat12321 is offline
 
Join Date: Feb 2010
Gender: Male
Posts: 9
Yeah that must be it, I didn't know you needed to set those values even if you didn't intend on changing any variables and could just do it all through flags. I guess script tiles are a bit different though. Thank you.
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:13 AM.