The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Tile Detection Level Script (https://www.pokecommunity.com/showthread.php?t=391931)

mbcn10ww April 28th, 2017 10:31 AM

Tile Detection Level Script
 
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)

Spherical Ice April 29th, 2017 11:01 AM

I don't think that's the best approach for this kind of thing.

Why not just assign the headbutt trees a behaviour byte?

mbcn10ww May 1st, 2017 1:09 PM

Quote:

Originally Posted by Spherical Ice (Post 9632505)
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)

Spherical Ice May 1st, 2017 1:52 PM

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.

Wesley FG May 1st, 2017 5:20 PM

Quote:

Originally Posted by mbcn10ww (Post 9634392)
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)

mbcn10ww May 1st, 2017 7:33 PM

Quote:

Originally Posted by Wesley FG (Post 9634611)
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. ^^


All times are GMT -8. The time now is 9:14 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.