subtledoctor Posted September 9, 2016 Share Posted September 9, 2016 The EE version of opcode 233 has the option to increment proficiencies instead of just setting them. This is somehow squeezed into bytes 3 and 4 of the parameter2 field. Can I set this value in Weidu? Right now I have: LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 233 target = 1 parameter1 = 1 parameter2 = 134 timing = 2 END When I look at affected items in NI, parameter 1 is properly set (1 pip, active class) and bytes 1-2 of parameter 2 are properly set (stat 134, ExtraProficiency20). But bytes 3-4 are set to 0 and I need them to be 1. Any ideas how to do that? Link to comment
critto Posted September 9, 2016 Share Posted September 9, 2016 You could set them directly via WRITE_SHORT at appropriate offsets. parameter2 should be written by something like that at the moment: WRITE_LONG (0x08 + 0x30 * insert_point + fx_off) parameter2 Turn it into two separate writes: WRITE_SHORT (0x08 + 0x30 * insert_point + fx_off) parameter2_bytes12 WRITE_SHORT (0x0A + 0x30 * insert_point + fx_off) parameter2_bytes34 Link to comment
kjeron Posted September 9, 2016 Share Posted September 9, 2016 parameter2 = (134 + (0x10000 * 1)) Link to comment
argent77 Posted September 9, 2016 Share Posted September 9, 2016 Or parameter2 = 134 | (1 << 16) Link to comment
subtledoctor Posted September 9, 2016 Author Share Posted September 9, 2016 Nice! Here I was just about to post "I guess I could do it the old-fashioned-y way" and there are three good answers. Okay, I'll have this working by tonight. Will advise. EDIT - it works! (I tried kjeron's first.) Yay! Extra APR for SWS! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.