Aquadrizzt Posted November 29, 2017 Share Posted November 29, 2017 I'm currently working on a mod that requires the patching of all "learn spell" headers of arcane scrolls to also update a few other character stats. I have a list of scrolls to iterate over, but I am not entirely sure how to approach the actual code. So, the code needs to detect which of the scroll's headers is the "learn spell from scroll" header, and then add several 326 effects to only that header without replacing the learn spell effect. No idea how to really approach this though, and I would rather not have to engage in more bit editing than I already have to. Quote Link to comment
CamDawg Posted November 29, 2017 Share Posted November 29, 2017 LPF CLONE_EFFECT INT_VAR match_opcode = 147 opcode = 326 parameter1 = foo parameter2 = bar /* etc. */ END Quote Link to comment
subtledoctor Posted November 29, 2017 Share Posted November 29, 2017 Damn, beat me to it. LOVE CLONE_EFFECT for stuff like this. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.