The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Need help with scripts

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 30th, 2020 (1:19 PM).
RedyXtreme's Avatar
RedyXtreme RedyXtreme is offline
 
Join Date: Jan 2017
Location: Brazil
Gender: Male
Nature: Timid
Posts: 23
Is there a script to prevent a person event from showing up in the game until the National dex is obtained?
__________________

Blastoise, Articuno and Mightyena are my favorite pokémon! There's nothing better than them!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 30th, 2020 (11:16 PM).
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by RedyXtreme View Post
Is there a script to prevent a person event from showing up in the game until the National dex is obtained?
A sample NPC script:
Code:
#dynamic 0x[FF Offset]

#org @start
lock
checkflag 0x16F
if 0x1 goto @nationaldexobtained
msgbox @msg1 0x6
release
end

#org @nationaldexobtained
msgbox @msg2 0x2
end

#org @msg1
= No, you don't have the National Dex.

#org @msg2
= You got the National Dex!
Basically the command "checkflag 0x16F" checks for the National Dex.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 31st, 2020 (10:38 AM).
RedyXtreme's Avatar
RedyXtreme RedyXtreme is offline
 
Join Date: Jan 2017
Location: Brazil
Gender: Male
Nature: Timid
Posts: 23
Quote:
Originally Posted by Upsurge View Post
A sample NPC script:
Code:
#dynamic 0x[FF Offset]

#org @start
lock
checkflag 0x16F
if 0x1 goto @nationaldexobtained
msgbox @msg1 0x6
release
end

#org @nationaldexobtained
msgbox @msg2 0x2
end

#org @msg1
= No, you don't have the National Dex.

#org @msg2
= You got the National Dex!
Basically the command "checkflag 0x16F" checks for the National Dex.
thanks a lot!
__________________

Blastoise, Articuno and Mightyena are my favorite pokémon! There's nothing better than them!
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:15 AM.