So as I understand it, DS uses:
109 CLERIC_HALLOW
110 CLERIC_ARMOR_OF_FAITH
116 WIZARD_SPELL_DEFLECTION
117 PROTECTION_FROM_EVIL
118 TRUE_SIGHT
119 CLERIC_CHAOTIC_COMMANDS
120 CLERIC_INSECT_PLAGUE
121 CLERIC_BLADE_BARRIER
122 CLERIC_PHYSICAL_MIRROR
123 CLERIC_SHIELD_OF_THE_ARCHONS
124 CLERIC_REGENERATION
125 WIZARD_FIRE_SHIELD
126 WIZARD_PROTECTION_FROM_MAGIC_ENERGY
127 WIZARD_MISLEAD
128 WIZARD_PROTECTION_FROM_MAGIC_WEAPONS
129 WIZARD_SPELL_TURNING
130 WIZARD_PROTECTION_FROM_THE_ELEMENTS
131 CLERIC_FREE_ACTION
132 WIZARD_KHELBANS_WARDING_WHIP
133 CLERIC_DEFENSIVE_HARMONY
134 LEVELDRAIN
with settings between 0-9.
Remember that when I try to implement TobEx features, I aim to maintain vanilla compatibility (which also means compatibility with mods thereof). This would be slightly untrue because used proficiencies values range from 0-7 before wrapping over.
Hence, if I were to change modify proficiencies opcode it would be something like:
#233 (0x0E9) Stat: Proficiency Modifier [233]
Parameter #1: Amount
Parameter #2 Low: Type
Parameter #2 High: Behaviour
Description:
Applies 'Behaviour' to the weapon proficiency points for the weapon type specified in the 'Type' field with the value specified by the 'Amount' field, for the targeted creature(s).
Values for 'Behaviour' are:
0 (vanilla behaviour) set proficiency 'Type' to 'Amount' only if 'Amount' is higher than the current profiicency points
1 Proficiency points of 'Type' = Proficiency points of 'Type' + 'Amount'
Values for 'Type' are:
...proficiencies...
Current DS wouldn't use the high word of param2.
The untrue part of above would be that I would need to limit used proficiencies (not the ones used by DS) between 0 and 5 because values of 6 and 7, while allowed, are not described in WSPECIAL.2DA and would effectively count as 0. (i.e. 4 points in Bastard Sword + 2 points = 0 points). Again, this won't actually affect DS.
Obviously, any mod that decides that they want to change PROFICIENCYMARTIALARTS, for example, using the sum 'Behaviour' would muck up DS (CLERIC_ARMOR_OF_FAITH).
P.S. I forgot to mention, sum would apply ad hoc (after all set), so set 2, add 3, set 0 = 5 (since param2 high = 0 still chooses the highest).
Edited by Ascension64, 23 February 2011 - 02:00 PM.