The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script [XSE] Wildbattle Command

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 July 8th, 2018 (5:10 AM). Edited July 8th, 2018 by Karl.
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Hey,

I have a few wild Krabbys NPCs with movement permissions set to "walk left and right".

When I interact with them, they lock and face me, and a wild battle commences, however once the wild battle music begins to play and the scene changes, the NPC becomes unlocked and can walk around again. The same thing happens when coming out of the battle scene.

Is there any way to lock the Pokémon NPC so it doesn't unlock and move around once the wildbattle command is executed?

edit: found a fix myself, kind of a dirty fix but i'll leave here in case anyone else has the same issue

If you need to look at my script, it's this:
Spoiler:
Code:
#clean
#dynamic 0xB9B9E6

#org @start
lock
faceplayer
cry 0x120 0x0
msgbox @1 0x6
lock
wildbattle 0x120 0x6 0x0
lock
cry 0x120 0x1
pause 0x30
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
setflag 0x49D
release
end

#org @1
= [blue_em]Zigzagoon: Grr!
__________________

Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 8th, 2018 (5:40 AM).
hjk321's Avatar
hjk321 hjk321 is offline
 
Join Date: Sep 2017
Posts: 219
try lockall and releaseall instead?
__________________
Binary is dead.
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:20 AM.