Views: 673,468,136
10 users online: crm0622, Darolac, Erick_Melo, Giftshaven, Golden Yoshi, o Koopster, Mogu94, randombot999, Redstoneminer23, Tobio - Guests: 54 - Bots: 106Users: 35,684 (1,398 active)
Latest: rotten-blood
Tip: Use PIXI to insert custom sprites into your hack.Not logged in.
Details for Item box effects
SMW Patches - Item box effects
File Name: Item box effects
Authors: GreenHammerBro
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch, unlike other patches that was submitted, directly modifies it to have custom effects when pressing select, rather than dropping sprites from the top-center of the screen.

This is also useful for a substitute for instant item box: such as HP patches that modifies the power up system so that mario does not grow into cape mario.

By default, it does the same as the instant item box. Simply edit that code to increase the HP value instead of giving mario a powerup animation if you are using it.
Tags: expansion, item box
Download: Download - 3.35 KiB
Recover HP mushroom routine (my player HP meter patch):
incsrc "PlayerHPDefines/Defines.asm"
	REP #$20
	LDA !Freeram_PlayerCurrHP	;
	CMP !Freeram_PlayerMaxHP	;
	SEP #$20			;
	BEQ ..Wrong			;>If HP full, don't consume item box
	REP #$20
	LDA !Freeram_PlayerCurrHP
	ADC.w #10			;>Amount of HP recovered, decimal.
	CMP !Freeram_PlayerMaxHP
	BCC ...RecoverUnderMax
	LDA !Freeram_PlayerMaxHP	;>Prevent recovering 99% HP to > 100% 

	STA !Freeram_PlayerCurrHP
	SEP #$20
	LDA #$0A			;\Powerup mushroom sfx
	STA $1DF9+!addr			;/
	STZ $0DC2+!addr			;>Consume item.
	BRA .Done

If you want to recover a certain fraction of max HP, consider looking into the HP patch's routine in the patch under mushroom or a custom block that acts like a mushroom, under "if !MushRecovTyp == 2". Be sure that you have the JSL subroutines as well.
Posted by: GreenHammerBro -

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

Copyright © 2005 - 2018 - SMW Central
Legal Information - Privacy Policy - Link To Us

Total queries: 30


Follow Us On

  • Facebook
  • Twitter
  • YouTube


  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • MFGG
  • Gaming Reinvented