Sign Up
Romhack.me connects you to ROM Hackers around the world.

Adding new tile behaviour


0 Votes
ShinyDragonHunter
Posted September 6, 2012 by ShinyDragonHunter
Category: None
Total Views: 1144

Anyone know how to add a script as tile behaviour?

All Answers



1 Vote
Linkandzelda
Posted September 6, 2012 by Linkandzelda

I'll tell you what I did with LC. You have 2 options though as far as I know. Bare in mind this is for FireRed.

1. Replace existing scripts with your own. All of the ones like the book case, the rocket hideout are all scripts. I searched for the text, then traced it back to the script and edited it. I only needed one and that was for headbutt, so I picked one that I didn't need and replaced it. The other thing I did was replace one more and make it change based on a variable. Bit more hassle but it works! I'm pretty sure this same thing will work on Emerald too.

2. Strictly FireRed, you have the FR hacked engine that let's you use up to 255 scripts for the all the different tile attributes.


0 Votes
Linkandzelda
Posted September 7, 2012 by Linkandzelda

http://www.romhack.me/wiki/10/pokémon-firer...

This Wiki entry will help you to get the script offsets in FireRed and to help replace them with your own scripts.


0 Votes
ShinyDragonHunter
Posted September 7, 2012 by ShinyDragonHunter

I'm wanting to add my own script and add as new tile behaviour for example behaviour "EB" or something.
Would that require ASM?


0 Votes
Linkandzelda
Posted September 7, 2012 by Linkandzelda

It would require ASM, and as for doing it, I'm not sure where to begin without using the FR Hacked Engine.


0 Votes
ShinyDragonHunter
Posted September 7, 2012 by ShinyDragonHunter

I reversed the offset of the script for then bookshelf and searched in an hex editor, but it wasn't much help.