The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Give PokéDex and Running Shoes Script

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 May 3rd, 2015 (10:14 AM). Edited May 3rd, 2015 by pikadude64.
pikadude64 pikadude64 is offline
 
Join Date: Apr 2012
Location: UK
Gender: Male
Posts: 9
Hey Guys and Girls, within my code I have managed to make it so that a NPC gives you a pokedex and running shoes and only gives them once, that is until you go to another part of the map (a house or to a different route). What I need help with is making the NPC only give it once even if you go into a different part of the map. Here is my code displayed within the spoiler.

Spoiler:

'---------------
#org 0x71AF16
lock
faceplayer
checkflag 0x7
if 0x1 goto 0x871AF3F
msgbox 0x871AF5E MSG_YESNO '"I got these starting items for my\..."
compare LASTRESULT 0x1
if 0x1 goto 0x871AF4A
msgbox 0x871AFC4 MSG_NORMAL '"That's okay. I'm sure someone else..."
release
end

'---------------
#org 0x71AF3F
msgbox 0x871B0EC MSG_NORMAL '"I have nothing else to give you.\n..."
release
end

'---------------
#org 0x71AF4A
setflag 0x82F
setflag 0x829
msgbox 0x871CE14 MSG_NORMAL '"[black_fr][player] recieved Runnin..."
setflag 0x7
release
end


'---------
' Strings
'---------
#org 0x71AF5E
= I got these starting items for my\ngrandson but he left home without\lthem. Do you want them instead?

#org 0x71AFC4
= That's okay. I'm sure someone else\nwill take them.

#org 0x71B0EC
= I have nothing else to give you.\nSorry!

#org 0x71CE14
= [black_fr][player] recieved Running Shoes\nand a Pokédex from the old lady!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 3rd, 2015 (10:41 AM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Ok, don't use flag 7, I've found the early flags seem to always reset. Use a flag above 0x20 that isn't used in game or resuse a flag that is used by a part not included in your hack. Either should work.

Hope that helps!
__________________
Check out my hack: Pokemon League of Legends.
Join the subreddit: https://www.reddit.com/r/PokemonLoL/
If you would like to give me money for no reason you can do so here
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 3rd, 2015 (11:03 AM).
pikadude64 pikadude64 is offline
 
Join Date: Apr 2012
Location: UK
Gender: Male
Posts: 9
Thanks that worked exactly as I wanted it to!
__________________
"Dragonite swoops into battle"
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:10 AM.