Fighter Cleric Usability Flag
Greener
Member Posts: 430
I'm trying to allow fighter clerics to use axes, but I'm struggling with some of the code any thoughts?
COPY_EXISTING_REGEXP GLOB ~ax.*.itm~ ~override~
PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN
READ_BYTE 0x2f "use"
WRITE_BYTE 0x2f ("%use%" BAND "0x4000")
END
BUT_ONLY_IF_IT_CHANGES
0
Comments
0b00111111, to also set bit 15 (which matches FMC) to 0.