Jump to content
  • 0

Help with hurting young Link


giadrosich
 Share

Question

15 answers to this question

Recommended Posts

  • 0

I'm curious, what would be the purpose?

Young Link is a wee tike. Swinging that would obviously be hard on his muscles.

 

To be philosophical for a minute, it just goes to show you that everything has a price.

 

The price for not waiting until he is big and strong is alot of pain.

Think about it: the most powerful weapons have the worst repercussions.

 

It's a logical and wonderful idea.

  • Like 2
Link to comment
Share on other sites

  • 0

Young Link is a wee tike. Swinging that would obviously be hard on his muscles.

 

To be philosophical for a minute, it just goes to show you that everything has a price.

 

The price for not waiting until he is big and strong is alot of pain.

Think about it: the most powerful weapons have the worst repercussions.

 

It's a logical and wonderful idea.

That's actually what I'm going for, you hit it dead on. I've relocated the Hammer to bottom of the well, and Darunia warns adult Link that the hammer has been cursed (it's invisible as young link) and not to use it until he is able to. I want to give the player the ability to use the hammer at that age, but also give a bit of a downside to it. That way it's not so overpowered.

  • Like 1
Link to comment
Share on other sites

  • 0

That's actually what I'm going for, you hit it dead on. I've relocated the Hammer to bottom of the well, and Darunia warns adult Link that the hammer has been cursed (it's invisible as young link) and not to use it until he is able to. I want to give the player the ability to use the hammer at that age, but also give a bit of a downside to it. That way it's not so overpowered.

Ironic. I also placed that weapon in the Bottom of The Well. I put it in the Coffin room, you?

Link to comment
Share on other sites

  • 0

If you don't, I could port it and edit the colors.

Well, it would be cool I think to have the hammer have a downside, otherwise, yeah, turning it visible is my only other option. I thought it would take going into fixing the mesh or something I didn't understand from what people have said. I know Zelda's Birthday did it, and I found the topic for who changed it, but as for how, it's a bit beyond me.

 

Whichever way is easier I suppose. If no one really knows how to do this, I can change text easy enough to make it not cursed. XD

 

It was just an idea. *shrug*

 

 

@samurai I haven't decided yet. It's in the original place where lens used to be at the moment.

Link to comment
Share on other sites

  • 0

Thank you, I went ahead and made it.

hammerEdit.zip

 

Please let me know if that's what you wanted, here's the commented assembly source for anyone who might be interested:

 

 

 

.org 803D60F0
J 0x80002138
SW A2, 0x0030(SP)

.org 80002130
JR RA ; invalidate debug print routine calls
NOP
; start of actual hack
ADDIU T0, R0, 0x0011 ; Put the item ID for the hammer in T0
LUI T1, 0x8016
ADDIU T1, T1, 0xE667 ; Put the offset for Link's age in T1
LB T1, 0x0000(T1)    ; Load Link's age into T1
ADDIU T2, R0, 0x0001 ; Put the age we want (child) in T2
LUI T3, 0x8016
ADDIU T3, T3, 0xE690 ; Set up the offset for Link's health into T3
ADDIU T4, R0, 0x0008 ; Put the amount of health we want to take away into T4 (8 = half heart)

BNE A2, T0, 80002174 ; if the item being used is the hammer
NOP
BNE T1, T2, 80002174 ; and we're child link 
NOP
LH T5, 0x0000(T3) ; read your current amount of health
SUB T5, T5, T4    ; take away a half heart worth of health
SH T5, 0x0000(T3) ; update your current health

; If the item being used wasn't the hammer or we're not child link, we skip to here
J 0x803D60F8 ; go back to where we called this routine, ending it
OR A0, A2, R0 ; we replaced this instruction, so make sure it still gets run

 

 

  • Like 3
Link to comment
Share on other sites

  • 0

Thank you, I went ahead and made it.

attachicon.gifhammerEdit.zip

 

Please let me know if that's what you wanted, here's the commented assembly source for anyone who might be interested:

 

 

 

.org 803D60F0
J 0x80002138
SW A2, 0x0030(SP)

.org 80002130
JR RA ; invalidate debug print routine calls
NOP
; start of actual hack
ADDIU T0, R0, 0x0011 ; Put the item ID for the hammer in T0
LUI T1, 0x8016
ADDIU T1, T1, 0xE667 ; Put the offset for Link's age in T1
LB T1, 0x0000(T1)    ; Load Link's age into T1
ADDIU T2, R0, 0x0001 ; Put the age we want (child) in T2
LUI T3, 0x8016
ADDIU T3, T3, 0xE690 ; Set up the offset for Link's health into T3
ADDIU T4, R0, 0x0008 ; Put the amount of health we want to take away into T4 (8 = half heart)

BNE A2, T0, 80002174 ; if the item being used is the hammer
NOP
BNE T1, T2, 80002174 ; and we're child link 
NOP
LH T5, 0x0000(T3) ; read your current amount of health
SUB T5, T5, T4    ; take away a half heart worth of health
SH T5, 0x0000(T3) ; update your current health

; If the item being used wasn't the hammer or we're not child link, we skip to here
J 0x803D60F8 ; go back to where we called this routine, ending it
OR A0, A2, R0 ; we replaced this instruction, so make sure it still gets run

 

 

Oh, thanks so much! :D This is awesome!

 

Now at the risk of sounding totally dumb, how do I make it a permanent part of the mod. XD I really appreciate this--it'll add a bit more weirdness with the mod that I'm going for. :D

Link to comment
Share on other sites

  • 0

Yes, this will stay in the ROM, as you put it, since when you prepare your mod for release and create your own patch, this change will be included. PPF patches work by comparing two different files--an unmodified one and the one you've modified. They must be the same filesize but can have any number of differences, and the patch itself is essentially a map of the differences between the two files, which PPF-o-Matic can use to patch a ROM (or any other file, for that matter).

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.