Language…
21 users online: crocodileman94, DanMario24YT, Domokun007, GamesInTweed, Green, GRIMMKIN, Heitor Porfirio, iRhyiku, Knetog, LightAligns, Maw, Nayfal, ocked, PMH, RZRider, Silver_Revolver, SMW Magic, test212, TheXander, VSmario90, yoshiatom - Guests: 306 - Bots: 322
Users: 64,795 (2,374 active)
Latest user: mathew

Question about egg-plants

Help

In one hack I saw an egg-plant spitting flashing eggs. Not sure if SPASM was back then. Now that we have SPASM, is there a way to make the same egg-plant spit yellow or red eggs?
It was done via hex edit presumably. I haven't put this in the Hex Edit Repository because it hasn't been fully tested yet, but you're welcome to try I guess:

Code
org $0781B8
db $25,$00	; change what the Egg Plant shoots (sprite F4 on X=0)

org $0782F9
db $63,$01	; change what the Needlenose Plant shoots (sprite F4 on X=1)

EDIT: these values should also be edited:

Code
org $078250	; change what the Egg Plant shoots (sprite F4 on X=0)
db $25,$00	; when you do a ground pound near them.

org $078347	; change what the Needlenose Plant shoots (sprite F4 on X=1)
db $63,$01	; when you do a ground pound near them.


Note that, the second byte is only used if the sprite ID is over 100, so it becomes $01, being the first byte the rest of the sprite ID (that's why, in this case, the Needlenose Plant shoots the sprite 163, which is the Bouncing green Needlenose) You can check sprites' ID via Golden Egg or in this page. It's more than obvious to say this changes are global and that NOT every sprite will work.

(Just as a trivia, you can make Egg Plants shoots themselves LOL)
Layout made by MaxodeX
2021 TRENO vibe check thread
While that code does work on an original ROM, if I use it on my edited ROM, the game crashes, but I can use that code of yours differently.
Edit: I have another problem. If I ground pound near an egg-plant, it spits only green eggs. Any help?
Originally posted by Rykon-V73
I have another problem. If I ground pound near an egg-plant, it spits only green eggs. Any help?

Maybe I'm late, but I decided to look more into this issue and I think I got the solution. It seems that the game tracks another part of code to determine which sprite shoots the Egg Plant and the Needlenose Plant when you do a ground pound near them (making them shoots faster). The adresses themselves are:

Code
org $078250	; change what the Egg Plant shoots (sprite F4 on X=0)
db $25,$00	; when you do a ground pound near them.

org $078347	; change what the Needlenose Plant shoots (sprite F4 on X=1)
db $63,$01	; when you do a ground pound near them.

Of course, the values should be the same for the normal and the fast adresses, in order to prevent unintended bugs and stuff.
Layout made by MaxodeX
2021 TRENO vibe check thread
That does work! Thanks Shiny Ninetales! Now I can add this to a thing specific to C3. I specified in the .asm file to credit you.

Help