The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Tile Detection Level 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 April 28th, 2017 (10:31 AM). Edited April 29th, 2017 by mbcn10ww.
mbcn10ww mbcn10ww is offline
 
Join Date: Oct 2016
Posts: 352
There is a way to make a Level Script to detect if the player press the A button while facing a specific tile?

I know there is the button detection routine, but what about the facing specific tiles?

Note: It's for the Headbutt trees, because I don't want to make a lot of events to place in each tree. (Imagine a bunch of events at Lake of Rage in GSC style, it's bad)
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 29th, 2017 (11:01 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
I don't think that's the best approach for this kind of thing.

Why not just assign the headbutt trees a behaviour byte?
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 1st, 2017 (1:09 PM).
mbcn10ww mbcn10ww is offline
 
Join Date: Oct 2016
Posts: 352
Quote:
Originally Posted by Spherical Ice View Post
I don't think that's the best approach for this kind of thing.

Why not just assign the headbutt trees a behaviour byte?
I did it replacing the script of the behavior byte 8F (Mystery Gift questionnaire) with the Headbutt script. I looked at IDA and found the routines of some behavior bytes but not all, there is a way to make the unused behavior bytes have a routine? (to avoid the replacing)
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 1st, 2017 (1:52 PM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
Doesn't seem like it should be any more complex than just hooking where that check for 8F's script is and adding a second check for your new byte.
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old May 1st, 2017 (5:20 PM).
Wesley FG's Avatar
Wesley FG Wesley FG is offline
Pokémon Kalos Advance !! Gba Hack
 
Join Date: Oct 2008
Location: Brazil
Gender: Male
Nature: Modest
Posts: 338
Quote:
Originally Posted by mbcn10ww View Post
I did it replacing the script of the behavior byte 8F (Mystery Gift questionnaire) with the Headbutt script. I looked at IDA and found the routines of some behavior bytes but not all, there is a way to make the unused behavior bytes have a routine? (to avoid the replacing)
exist many bytes with poor function you can change and repoint the script it is more easy

one list by JPAN, the behaviour byte and the script for each

81 --> 1a7606 (bookshelf)
82 --> 1a760f (market shelves)
83 --> 1a6955 (pc script)

85 --> 1a6c32 (town map)
86 --> 1A764E (tv script)
87 --> 1A76E7 (pokecenter)

88 --> 1A76DE (pokemart)
89 --> 1A7657 (cabinet)
8a --> 1A7660 (cooking range)
8b --> 1A7669 (dresser)

8c --> 1A7672 (snacks)
8d --> 1BBFD8 (wireless)
8e --> 1BB8A7 (not available)
8f --> 1A7702 (questionaire)

90 --> 1a7618 (fridge)
91 --> 1A76F0 (indigo plateu)
92 --> 1A76F9 (indigo plateau 2)
93 --> 1a763c (blueprint)

94 --> 1A767B (pokemon pictures)
95 --> 1A7684 (complex machine)
96 --> 1A768D (telephone)
97 --> 1A762A (complex numbers)

98 --> 1A7696 (ads)
99 --> 1A769F (tasty food)
9a --> 1A76A8 (trash can)
9b --> 1A76B1 (cup)
__________________
Kalos Demake Soon!!
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old May 1st, 2017 (7:33 PM).
mbcn10ww mbcn10ww is offline
 
Join Date: Oct 2016
Posts: 352
Quote:
Originally Posted by Wesley FG View Post
exist many bytes with poor function you can change and repoint the script it is more easy

one list by JPAN, the behaviour byte and the script for each

81 --> 1a7606 (bookshelf)
82 --> 1a760f (market shelves)
83 --> 1a6955 (pc script)

85 --> 1a6c32 (town map)
86 --> 1A764E (tv script)
87 --> 1A76E7 (pokecenter)

88 --> 1A76DE (pokemart)
89 --> 1A7657 (cabinet)
8a --> 1A7660 (cooking range)
8b --> 1A7669 (dresser)

8c --> 1A7672 (snacks)
8d --> 1BBFD8 (wireless)
8e --> 1BB8A7 (not available)
8f --> 1A7702 (questionaire)

90 --> 1a7618 (fridge)
91 --> 1A76F0 (indigo plateu)
92 --> 1A76F9 (indigo plateau 2)
93 --> 1a763c (blueprint)

94 --> 1A767B (pokemon pictures)
95 --> 1A7684 (complex machine)
96 --> 1A768D (telephone)
97 --> 1A762A (complex numbers)

98 --> 1A7696 (ads)
99 --> 1A769F (tasty food)
9a --> 1A76A8 (trash can)
9b --> 1A76B1 (cup)
yeah, thank you, I will use it, it is my plan B. ^^
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:14 AM.