What I'm trying to do is use the player's Luck to alter the amount of found loot (such as the amount of ammo found in an ammo box).
In my Less-Is-More module (part of my Realism Tweaks) I used my own global modifiers to reduce the amount of loot, and it works really well. Now I'm trying to factor in the player's Luck to alter the average amount of loot that they find.
I wrote a simple quest script and created a quest (which uses my script), checked "Start Game Enabled."
Here is my script:
scn ArwenLuckQuestScript ; by Arwen v.4.4short LuckMultshort Reduce20short Reduce30short Reduce40short Reduce50short Reduce60short Reduce70begin GameMode Set LuckMult to ((10 - player.GetActorValue Luck) * 4) Set Reduce20 to LuckMult ; 1 Luck = 36, 5 Luck = 20, 10 Luck = 0 Set Reduce30 to (LuckMult +10) ; 1 Luck = 46, 5 Luck = 30, 10 Luck = 10 Set Reduce40 to (LuckMult +20) ; 1 Luck = 56, 5 Luck = 40, 10 Luck = 20 Set Reduce50 to (LuckMult +30) ; 1 Luck = 66, 5 Luck = 50, 10 Luck = 30 Set Reduce60 to (LuckMult +40) ; 1 Luck = 76, 5 Luck = 60, 10 Luck = 40 Set Reduce70 to (LuckMult +50) ; 1 Luck = 86, 5 Luck = 70, 10 Luck = 50 SetNumericGameSetting ArwenReduce20 Reduce20 SetNumericGameSetting ArwenReduce30 Reduce30 SetNumericGameSetting ArwenReduce40 Reduce40 SetNumericGameSetting ArwenReduce50 Reduce50 SetNumericGameSetting ArwenReduce60 Reduce60 SetNumericGameSetting ArwenReduce70 Reduce70 end
For some reason, my global modifier values are not changing when my Luck changes, but are remaining at their default amounts.
My guess is that globals need to handled differently than this.
Any help will be GREATLY appreciated, as I've spent hours trying to figure out why this will not work.