Banner
Views: 925,821,160
Time:
4 users online: dirty, Dustyized, Klug,  MarioFanGamer - Guests: 77 - Bots: 199 Users: 51,758 (2,051 active)
Latest: zonicnacho1
Tip: Be aware that if you put a coin over a question block, unless you apply this hex edit, it will create an invisible solid block above the ? Block if the block is hit first.
Not logged in.
Instant Kill Grinder
Forum Index - SMW Hacking - Requests - Archived Requests - Instant Kill Grinder
Tags:
Pages: « 1 » Link
Name
Insta Kill Grinder (Both non and line guided)

Type
Sprite

Description
I need a grinder (non line guided and line guided) that hurts the player even if tries to spinjump onto it, just like the poison mushroom does (except that the grinder will not disappear if you use a mushroom to damage boost)
References
Uhh I haven't seen this being used before but I think the description covers everything I need, sorry if I'm wrong.
If I'm understanding correctly, you want a grinder that Mario can't spin jump on?

I started with Non-Line Guided Grinder and made these changes:

Code
diff --git a/ngrinder.asm b/ngrinder.asm
index ec3ca07..77b4228 100644
--- a/ngrinder.asm
+++ b/ngrinder.asm
@@ -43,6 +43,28 @@ CODE_01DB72:                      STA !Bank		;/
 CODE_01DB75:                      LDA #$00
                                   %SubOffScreen()
 CODE_01DB78:                      JSL $01A7DC  		; Default interaction with Mario.
+
+
+; Check for "Don't use default interaction with player" tweaker bit in $167A,x
+; Format: dpmksPiS
+; d=Don't use default interaction with player
+	PHP ; save carry, in case d==1
+	LDA !167A,x
+	AND #$80
+	BNE kill_interaction
+	JMP normal_interaction
+
+kill_interaction: PLP
+	BCC CODE_01DB7B
+	PHY
+	;JSL $00F606 ;>Kill the player.
+	JSL $00F5B7	;>Hurt the player.
+	PLY
+	RTS
+
+
+normal_interaction: PLP
+
 CODE_01DB7B:                      LDY !157C,X     	;\
 CODE_01DB7E:                      LDA XSpeeds,Y     ; | Set X speeds based on direction of sprite.
 CODE_01DB81:                      STA !B6,X    		;/
diff --git a/ngrinder.cfg b/ngrinder.cfg
index a729dab..99a3b2f 100644
--- a/ngrinder.cfg
+++ b/ngrinder.cfg
@@ -1,6 +1,6 @@
 01
 1C
-00 00 31 00 19 00
+00 00 31 80 19 00
 00 00
 ngrinder.asm
-1
\ No newline at end of file
+00:00
\ No newline at end of file


You can use "Kill the player" instead if you want Mario to die even if he has a powerup.

How should it behave if Mario is on Yoshi? I don't think this will change that.
Here are changes for the Line-Guided Grinder

Code
diff --git a/line_grinder_67.asm b/line_grinder_67.asm
index 8326f6d..9cf3528 100644
--- a/line_grinder_67.asm
+++ b/line_grinder_67.asm
@@ -167,6 +167,8 @@ NoSound:		;
 
 JSR GrinderGFX	; draw the sprite
 JSL $01A7DC	; interact with the player
+BCC LineGuideHandlerMainRt
+JSL $00F5B7	; hurt the player
 ; progress directly to the line-guided sprite handler routine
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/line_grinder_67.cfg b/line_grinder_67.cfg
index e4a9697..b3082f3 100644
--- a/line_grinder_67.cfg
+++ b/line_grinder_67.cfg
@@ -1,6 +1,6 @@
 01
 36
-00 2C A3 22 3D 05
+00 2C A3 A2 3D 05
 00 00
 line_grinder_67.asm
 1
\ No newline at end of file


I think this is the same modification that is in the Odd Sands hack in level E (except they also modified the "play the ticking sound effect" value)
Sorry for being that dumb but how am I supposed to make these changes? It doesn't work if I just try to insert the codes (I'm probably just inserting it wrong but idk how).
thank you! it works perfectly fine #smw{:TUP:}
Pages: « 1 » Link
Forum Index - SMW Hacking - Requests - Archived Requests - Instant Kill Grinder

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks