Banner
Views: 568,838,686
Time: 2017-09-25 05:03:38 PM
12 users online: DPhoenix29, EDIT3333, Flabort, Knight of Time, Konata Izumi, o Lazy, Rhayader, RussianMan, SubconsciousEye, Thomas, UTF, VilelaBot - Guests: 32 - Bots: 143Users: 32,524 (1,187 active)
Latest: phllame
Tip: Don't place Yoshi coins near a goal post because they keep glowing when a level fades out.Not logged in.
Details for Item box effects
SMW Patches - Item box effects
File Name: Item box effects
Added: 2017-06-20 12:06:09 AM
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
33 downloads
  Submit Update
GreenHammerBro
Recover HP mushroom routine (my player HP meter patch):
Code
incsrc "PlayerHPDefines/Defines.asm"
[...]
..Effect1
	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
	CLC
	ADC.w #10			;>Amount of HP recovered, decimal.
	CMP !Freeram_PlayerMaxHP
	BCC ...RecoverUnderMax
	LDA !Freeram_PlayerMaxHP	;>Prevent recovering 99% HP to > 100% 

	...RecoverUnderMax
	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 - 2017-03-31 09:37:11 PM

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

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


Total queries: 29

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented