[FE7, FE8] Staff/item usage locks


#2

Source please?


#3

source
(Btw, the free space I used in the E0000 zone requires repointing some pegasus knight picture.)


#4

omg, is it possible for this to get to fe7 as well?! I needed this!


#5

Yeah, it shouldn’t be too hard to port assuming I can look up/figure out where everything is


#6

FE7 version.


#7

Paging @Venno - Can you interface this with all your sorcery, or does your Weapon lock shennanigans already account for staves?


#8

hmmm, I’m not entirely sure how i implement this exactly. I pasted the hex at the end of the ROM, and tried locking a staff to Dewey. But it didn’t lock, I forget how to make this work aha. This is only my second time messing with ASM-y stuff.


#9

Judging by a cursory glance at the code, it should work with Venon’s hack. It just calls the can_equip function.


#10

There’s some hex in two other places - in the middle of the weapon lock code and also at the end of the block of item usability.


#11

What does the code in the middle of the weapon lock code do?


Staff weapon locks[Resolved]
#12

It removes the part that only lets the code run on weapons.


#13

So how do I exactly install this? Never done something with ASM files.


#14

For ASM files, you’ll have to assemble it using e.g. Assemble ARM, which converts assembly code to hex in the form of a .dmp file. Then paste all the appropriate parts of the dmp file into your ROM, which is basically the routine you’re telling the game boy to run instead.


#15

Is there a certain place where I have to paste it or can I use any free space?


#16

404 Link not found now.


#17

Any chances of getting the links repaired?


#18

Everything here is in the Unified Dropbox.
That said, here’s the link to the relevant folder for this hack:


#19

can some one help me out with this? I’ve got the .dmp, but I have no idea where to paste it.


#20

So I’ve been trying to use this hack, but whenever I use the patch it just causes items with a weapon lock to reset the came. I suspect I have to repoint it, but I have no idea how to do so. Advise?


#21

I made a version that’s insertable with EA and also fixed some issues (the patch only had half of the command to branch back, meaning it was an invalid instruction) here. I put it in Jj’s folder in the unified dropbox for simplicity.