Fallout 2 mod How do you mod perks?

I have 2 question.
#1. How to mod perk "PERK_bonus_rate_of_fire (5)"
I use it like this:
[5]
Ranks=2
StatMag=3
Ranks=2..999 - Wokr perfectly. It show new rank on "New level perk gain screen". But no effect of perk itself (from level over 1).
StatMag=3 - Using this - first. But no effect.
StatMag=-3 - Then i try using this. I conclude, if perk decreaces value of "shooting gun by -1 ap to shoot", mayby value is negative.
But still no effect.

#2 I have similar problem with another perk. "swift_learner" (50).
I somehow bypass it with multiplaing of rank for this perk.
[50]
Ranks=200
On 20 rank - you realy gain 200% exp.

But "StatMag=100" or "StatMag=1000" dont make any effect.
 
Reducing AP cost and giving XP bonus are NOT main/derived stats, so you can't simply use Stat and StatMag in perks.ini to modify them.

For Bonus Rate of Fire, use CalcAPCost hook (here's an example).
For Swift Learner, call "set_swiftlearner_mod(int bonus)" in a script. It's a bit tricky because it actually modifies the divisor (changes the 100 in "xpBonus = xpGain * 5 /100" formula, for 7% bonus it's set_swiftlearner_mod(71)).
 
Back
Top