Author Topic: ADD_ITEM_EQEFFECT and opcode 233 - how to increment proficiency?  (Read 1678 times)

Offline subtledoctor

  • Planewalker
  • *****
  • Posts: 131
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:

Code: [Select]
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?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: ADD_ITEM_EQEFFECT and opcode 233 - how to increment proficiency?
« Reply #1 on: September 09, 2016, 11:35:21 AM »
For example:
Code: [Select]
LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 233 target = 1 parameter1 = 1 parameter2 = (134 BOR BIT16) timing = 2 END
I haven't tested it (edit: in the sense it produces the desired in-game effect), but this sets the p2 value to 86000100h, i.e., "byte 1" has the value 134 and "byte 3" has the value 1.
« Last Edit: September 09, 2016, 12:38:31 PM by Wisp »

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: