Views: 695,154,461
6 users online: double_pmcl, Eich El, Noob, Ragey, spookydude666, segredo - Guests: 46 - Bots: 228Users: 36,360 (1,523 active)
Latest: Shadow666
Tip: Verify that your hack's BPS patch is functioning correctly before submitting it.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, needs remoderation
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: 28


Follow Us On

  • Facebook
  • Twitter
  • YouTube


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