Bunny Hood New Item Idea

View previous topic View next topic Go down

Bunny Hood New Item Idea

Post by moegami on Mon 8 Jun 2015 - 22:30

Okay so this is basically a shout-out to Conn and/or SePH. I ask so much of you guys always but I had an idea! SePH had that walking speed change in Conkers and I thought "Why let that go to waste?" and then I was like, oh my god! What if there was an item that increased your walking speed like that when you got it? I'd think something like the moon pearl could be a magic orb that just made you faster. Would this be a difficult task?

(and if you like the idea seph you could totally use it in conkers too Very Happy )
avatar
moegami



Since : 2013-07-04

http://zeniea.com

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Conn on Tue 9 Jun 2015 - 4:39

The idea is not bad at all and I think not too hard to implement. Best you couple it to an item in your inventory (not equipped) like moon pearl or medaillons, just as the auto-refill in PW was coupled on the medaillons.
The doce should be similar to the arrow movement hack
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Bunny Hood New Item Idea

Post by wizzrobemaster on Sat 13 Jun 2015 - 11:41

speeding up link's movement? I presume that would be very difficult to hack.

wizzrobemaster
Crystal Maiden
Crystal Maiden

Since : 2015-01-04

Back to top Go down

Re: Bunny Hood New Item Idea

Post by moegami on Sat 13 Jun 2015 - 11:44

It's already been done in sephs hack, link was kept speedy at all times for awhile. Not sure if he's still like that but yes
avatar
moegami



Since : 2013-07-04

http://zeniea.com

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Puzzledude on Sat 13 Jun 2015 - 12:23

There is only 1 byte, which controls, how fast Link walks. So this is easy to change. But, to be able to walk faster once you have a certain item, needs ASM.

Also... be careful to not put this value too high, since the game will glitch when entering caves and otherwise as well. So this value has a certain limit.
avatar
Puzzledude



Since : 2012-06-20

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Conn on Sat 13 Jun 2015 - 12:28

It's really simple. Remember my arrow code?
[You must be registered and logged in to see this link.]

It's basically the same.

Code:

org $20AEA0
LDA $9088,y
STA $0C22,x    ; here the native speed value was stored
LDA $0202      ; bow equipped?
cmp #$01
beq $01
RTL
LDA $7ef340  
cmp #$04      ; silver bow and arrows?
beq $01
RTL
LDA $0C22,x
cmp #$30
BNE left
LDA #$60      ; here we add a higher speed
STA $0C22,x
RTL

So all needed to be done is using the same code; but at a different location. Like check if medaillon (instead of bow), if yes, add add a value to the speed.
I think I could hack such a thing in 10 minutes if somebody gives me
- address where the speed is stored in rom (or I trace)
- which item shall increase to which value.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Puzzledude on Sat 13 Jun 2015 - 14:14

I think I could hack such a thing in 10 minutes if somebody gives me
- address where the speed is stored in rom

3E227 - Horizontal and vertical walking speed (Default = 18)
3E228 - Diagonal walking speed (Default = 10)
3E229 - Stairs walking speed (Default = 0A)

3E233 - walking through heavy grass speed (also shallow water) (Default = 14)
3E234 - walking diagonally through heavy grass speed (also shallow water) (Default = 0D)
3E237 - Pegasus boots speed (Default = 40)

Recomended increase speed is from 19 to 20. Conker's increased speed is 24.
avatar
Puzzledude



Since : 2012-06-20

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Conn on Sat 13 Jun 2015 - 16:22

Alright here we go:

Code:

; increase speed if moon pearl
; find the adjustable table at the end of this code
; db (0) $18: - Horizontal and vertical walking speed (Default = 18)
; db (1) $10 - Diagonal walking speed (Default = 10)
; db (2) $0a - Stairs walking speed (Default = 0A)

; db (0c) $14 - walking through heavy grass speed (also shallow water) (Default = 14)
; db (0d) $0d - walking diagonally through heavy grass speed (also shallow water) (Default = 0D)
; db (10) $40 - Pegasus boots speed (Default = 40)

lorom

org $87e330
JSL $20af20

org $20af20
CPX #$11      ; security check (we only have $10 speed values)
bcs end
LDA $7ef357   ;have moon pearl?
BEQ end
LDA $20af70,x  ;load new speed values
CLC
RTL

end:
LDA $87E227,x ;load native speed values
CLC
RTL

org $20af70 ; this selects the new speed values
db $18, $10, $0a, $18, $10, $08, $08, $04, $0c, $10, $09, $19, $14, $0d, $10, $08, $40


It's hard to explain how to read the table at the end of this code. I wrote at the beginning of the asm which db byte in hex you need to change to alter the speed level for a specific movement. The values are incomplete. These are 10h=16d different movement speeds. Guess swimming and such are missing.

The code itself can be altered to another item of course. We can also think that several items sum up (e.g., each medailon increases the speed +1)... whatever. Just tell me your needs.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Conn on Wed 22 Jul 2015 - 5:20

Uh, made mistake here that breaks the game. The correct code is

Code:

; increase speed if moon pearl
; find the adjustable table at the end of this code
; db (0) $18: - Horizontal and vertical walking speed (Default = 18)
; db (1) $10 - Diagonal walking speed (Default = 10)
; db (2) $0a - Stairs walking speed (Default = 0A)

; db (0c) $14 - walking through heavy grass speed (also shallow water) (Default = 14)
; db (0d) $0d - walking diagonally through heavy grass speed (also shallow water) (Default = 0D)
; db (10) $40 - Pegasus boots speed (Default = 40)

lorom

org $87e330
JSR $FD66
CLC

org $87FD66
JSL $20af20
RTS

org $20af20
CPX #$11      ; security check (we only have $10 speed values)
bcs end
LDA $7ef357   ;have moon pearl?
BEQ end
LDA $20af70,x  ;load new speed values
CLC
RTL

end:
LDA $87E227,x ;load native speed values
CLC
RTL

org $20af70 ; this selects the new speed values
db $18, $10, $0a, $18, $10, $08, $08, $04, $0c, $10, $09, $19, $14, $0d, $10, $08, $40

avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Bunny Hood New Item Idea

Post by Conn on Sun 4 Oct 2015 - 16:10

I just provided 3 asm:s:
[You must be registered and logged in to see this link.]

Now you can choose between:
- moonpearl.asm: speed is accelerated as soon you have the moonpearl in your inventory
- moonpearl_Rbuttonpressed.asm: accelerated speed if you have the moonpearl in your inventory AND hold the R-Button pressed!
- book_mudora_equipped.asm: accelerated speed if you have the book mudora in Y-box equipped

Note: you need to set the speed values yourself, by adjusting the db table at the end of the asm, e.g.: db $18 -> $30 for fast horizontal and vertical walking.

It won't interfere much with the R-button to skip monologues. However, If you bump into an autotalking sprite (e.g., upgrade pond) with this accelerated speed it will skip that monologue... any ideas what to do here? I also uploaded an alternative asm with L button but here it interferes with the Superbomb (but only if you have the bombs equipped - maybe this is the better choice).
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Bunny Hood New Item Idea

Post by moegami on Sun 11 Oct 2015 - 3:31

Omg you totally made this!!! That's awesome conn thank you so much, I'll check this out asap I can't believe this came back up out of nowhere Very Happy Very Happy Very Happy
avatar
moegami



Since : 2013-07-04

http://zeniea.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum