Banner
Views: 236,011,130
Time: 2013-05-20 11:39:15 AM
22 users online: Alcaro, Archie, everest700, gibbl, Golden Yoshi, leod, lylac, MaxodeX, Medic, MetalJo, mrdeppelman, PercentN, phenolatukas, Pixels, Ragey, Rockythetigre, o S.N.N., o Snowshoe, Tarek701, WhiteYoshiEgg, wiiqwertyuiop, X-cniS - Guests: 29 - Bots: 17Users: 22,849 (1,295 active)
Latest: 13udha
Tip: Use BlockTool Super Deluxe to insert custom blocks into your hack.
Stop coins overflowing 99
Forum Index - SMW Hacking - General SMW Hacking Help - Stop coins overflowing 99
Pages: « 1 »
It is essential for my hack that I get anything that will help keep my coins at 99 even if another coin is obtained.

e.g. 98 + 1 coin to 99
99 + 1 coin stays at 99

I don't want the 3 coin counter or the 6 coin counter as they cause problems.

Thanks.
Try this:

header
lorom

!FreeSpace = $1F8000


ORG $00A2E2
JSL MAIN ;Point to new routine



ORG !FreeSpace

db "STAR" ;\
dw MainEnd-MainStart ; | Write RATS tag #1 to protect main code
dw MainEnd-MainStart^#$FFFF ;/

MainStart:
MAIN:
PHA ;\
PHY ; |
PHX ; | Preserve 'everything'
PHB ;/

LDA $0DBF
CMP #99
BNE Return
LDA #99
STA $0DBF

Return:
PLB ;\
PLX ; | Recover 'everything'
PLY ; |
PLA ;/
JSL $01808C ; Recover old code from hijacked routine. Don't touch this.
RTL
MainEnd:


Save it as an .asm file and patch it with xkas. I haven't tried it though, so you should better make a backup.
Thanks :)
Hex edits to the rescue!

01137 $00:8F37 1 byte ASM Number of coins to subtract from the counter when you gain enough for a 1-up (Default: $64 (100). Change to [01] to create a coin wallet effect - use with x112F.

0112F $00:8F2F 3 bytes ASM [EE E4 18] Change to [EA EA EA] to not gain a life after collecting enough for one.

EDIT - I guess you could also do what WYE did..
Last edited on 2009-08-16 11:29:43 AM by Nesquik Bunny.
Thanks again

- Oddly WYE's didn't work
-I don't really get what you said IceGuy, But I think I'll take another look :)

EDIT: Ignore the part about me not getting it...
I understand now :)

YES! It works! Thanks IceGuy. you too WYE.
Last edited on 2009-08-16 11:37:34 AM by MSA.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - Stop coins overflowing 99

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 27

Menu