Is there a way to change the turns that a unit is affected by statuses, berserk for example (from 5 turns being berserked to 2). I figured you’d need to change a byte wherever the item is located in hex. But is there a way to find the item in hex easily?
Yeah, use Blazer’s Notes on Custom items to find the routine executed for the berserk staff etc and find where a constant 5 is added to the HO Byte of status.
I’ll make a nightmare module for it in the near future, I promise! (I’m not touching the poison effect length, though)
howdy all, so thanks to cc for linking me to blazer’s notes. I tried to take the reigns on this myself, but naturally i didn’t get anywhere. This was my progress, and i honestly have no idea if i was utterly and completely wrong or i had the right idea or something else.
Yeah, use Blazer’s Notes on Custom items to find the routine executed for the berserk staff etc and find where a constant 5 is added to the HO Byte of status.
[3:05:56 AM] How you deweyng: constant 5 is added to the HO byte of status?
[3:06:08 AM] How you deweyng: according to blazers notes,
[3:06:18 AM] Alusqawl: the ho byte always comes after the money byte
[3:06:50 AM] How you deweyng: Do the same thing for the Item Effect Array. The pointer to repoint is at 0x2D048 and the table is at 0x2D04C and goes to 0x2D190 (also 0x144 bytes)
[3:07:02 AM] How you deweyng: oh shi
[3:07:08 AM] How you deweyng: i might be looking at the wrong offset
[3:08:16 AM] How you deweyng: wait
[3:08:23 AM] How you deweyng: i should be at the right offset here
[3:08:44 AM] How you deweyng: [3:05 AM] How you deweyng:
<<< constant 5 is added to the HO byte of status?this is what’s stumpin me
[3:12:35 AM] How you deweyng: http://gyazo.com/3ac73b37bec6f370e32f71ee2274e8f6
[3:13:11 AM] How you deweyng: maybe each D_ is a certain effect?
[3:13:28 AM] How you deweyng: or an effect for a certain weapon?
[3:15:41 AM] How you deweyng: it looks like a 05 isn’t there
[3:16:00 AM] How you deweyng: i think what cc meant is that theres one byte, and then another by that’s + 05
[3:16:17 AM] How you deweyng: and that’s the one i need to find?
[3:17:36 AM] How you deweyng: they all go D_ 02 08
[3:17:52 AM] How you deweyng: then does that mean the last byte is the turn byte mebes?
[3:17:58 AM] How you deweyng: i wish blazer was here lol
[3:18:07 AM] How you deweyng: im probably looking at the wrong place
[3:20:07 AM] How you deweyng: 08 + 05= 0D
[3:21:25 AM] How you deweyng: there’s no 0D in that whole thingy
[3:21:41 AM] How you deweyng: [3:21 AM] How you deweyng:
<<< whole thingy
[3:21:47 AM] How you deweyng: is THIS a pointer table?
[3:24:08 AM] How you deweyng: it sucks that the possibility that im so utterly wrong about everything is too damn high
[3:25:16 AM] How you deweyng: OH wait
[3:25:34 AM] How you deweyng: http://gyazo.com/e2590c123934abc0d24d9774401ec984
[3:25:39 AM] How you deweyng: H as in offset
[3:25:52 AM] How you deweyng: and 0 as in the second digit of 00?
[3:26:01 AM] How you deweyng: is that what he meant by H0 Byte?
[3:27:34 AM] How you deweyng: wait maybe that means D_ isn’t the start of another effect
[3:27:40 AM] How you deweyng: it’s 4c and like +05 as opposed to 05 itself?
[3:27:58 AM] How you deweyng: or the other bytes around D_ 02 08
[3:28:13 AM] How you deweyng: SUCH THEORY
[3:28:19 AM] How you deweyng: AM I LEARNING IDK
[3:28:23 AM] How you deweyng: THE SUSPENSE IS REAL
[3:35:56 AM] How you deweyng: FUUUUDGE
[3:44:15 AM] How you deweyng: http://gyazo.com/3e03ee02e662f1486b41676d18a02525
[3:44:19 AM] How you deweyng: LOLOLOLOLOLOLOLOL
[3:44:26 AM] How you deweyng: EWTF IS THIS
[3:44:31 AM] How you deweyng: kyle sqawl jeff
[3:45:08 AM] How you deweyng: insta-blocked
[4:01:01 AM] How you deweyng: maybe constant 5 is 50 as opposed to 05?
[4:16:54 AM] How you deweyng: anyway fuck
[4:17:07 AM] How you deweyng: i doubt i got anywhere in finding that byte
Rofl you were so confused and you were just looking at a pointer table… eheh…
Uhm, I think what would have is it’s going to AND the status byte with a 0xF(so look for that) and then or it with 0x50 + what status effect, maybe?
Edit: Probably just loads 0x50 into a register, adds the status, and sets the status.
idk, easiest way is to learn just a smidgen of assembly and debug/disassemble it to find where it loads/sets the status byte. I’ll do it today, probably. Shouldn’t be too bad.