Some more affect info
You might think it a little odd for me to be posting this 4 years after the last post (lol), but I was playing BG2 again and started messing with different affects. I figured that posting my findings was the only decent thing to do, so here's a bit more info to add to the list for affect editing.
SPELL MEMORIZATION AFFECTS -------------------------------------------
Type: (0x0000002A for mage, 0x0000003E for cleric)
Param 1: (Number of extra spells)
Param 2: **(Spellbook level to edit)
Flags: 0x00000009
Time: 0
Probability: 100
Target: 0x00000002
Leave resources blank
** NOte: For parameter 2, the spell levels are determined as follows:
Level 1: 1
Level 2: 2
Level 3: 4
Level 4: 8
Level 5: 16
Level 6: 32
Level 7: 64
Level 8: 128
Level 9: 256
ALL Spell levels Effected CLERIC: 127
ALL Spell Levels Effected MAGE: 511
Notice a pattern yet?
Here's the deal. The parameter for each spell level is equal to 2^(Spell level - 1) Therefore, to edit level 9 spells, the paramter is 256, which = 2^(9 - 1) or 2^8. Setting the parameter to 1 LESS than that required for a particular spell level, will cause ALL SPELL LEVELS BELOW IT to be affected.
For instance: Inputting 255, would effect spell levels 1 through 8, but not spell level 9.
Every parameter value is mapped to different spell levels. There is a particular pattern to it, but for practical purposes, if you want each spell level to have a different number of bonus memorization slots, you'll need 9 different affects, one with each 2^(spell level - 1) parameter.
I don't feel like explaining the pattern they used, this should be enough for your spell memorization needs.
Note: Cleric spells only go up to level 7, thus putting in 256 obviously won't work if you're making a cleric spell affect.
SAVING THROWS -------------------------------------------
Type: 0x000000XX (see values for XX below)
Param 1: (Amount of bonus)
Param 2: 0
Flags: 0x00000009
Time: 0
Probability: 100
Target: 0x00000002
XX values:
21 = save vs death
22 = save vs wands
23 = save vs pollymorph
24 = save vs breath
25 = save vs spells
THAC0 -------------------------------------------
Type: 0x00000116
Param 1: (Amount of bonus)
Param 2: 0
Flags: 0x00000009
Time: 0
Probability: 100
Target: 0x00000002
Speed Factor (I think, but don't quote me on this. . .) ----------------
Type: 0x000000BE
Param 1: (Amount of bonus)
Param 2: 0
Flags: 0x00000009
Time: 0
Probability: 100
Target: 0x00000002
AC -------------------------------------------
Type: 0x00000000
Param 1: (Amount of bonus)
Param 2: 0
Flags: 0x00000009
Time: 0
Probability: 100
Target: 0x00000002
Anyway, that's about it for now. I hope somebody finds this helpful.
