Riv’s reward store config
So… I love configuring things and my sims amass way too many satisfaction points. This mod lets you change the cost of every trait available in the reward store, including modded content! This has been created and tested for the v1.70.84 (Jan 21 / scared emotion) patch, with my apologies for the non-catchy name.
How to use:
When you first run the game with this mod, it’ll read settings from “riv_reward_trait_cost.cfg”, or if this file doesn’t exist then it will be created in the same folder as the .ts4script. I’ve included a .cfg file with default settings in the main .zip, so you can change the settings in it if you want to sort it out before loading up the game!
You can configure all reward trait costs with two variables – the multiplier m and the addend a. To get the new cost, the game will take the original cost, multiply it by m, round up, and then add a:
Code:
new_cost = ceil(m * cost) + a
m and a can be changed by editing the .cfg file directly before loading up the game (the easiest way, since you don’t need to bother coming back here for commands!) or using cheat commands:
riv_reward_trait_cost_multiplier m
sets the multiplier m (note: must be at least 0 – if you enter a negative value, the sign will be flipped. it doesn’t need to be an integer though, as costs are rounded up! the cover pic has m = 0.19864236)
riv_reward_trait_cost_addend a
sets the addend a (note: must be an integer, can be negative)
riv_reward_trait_cost_set m a
sets the multiplier m and the addend a
riv_reward_trait_cost_config
sets the multiplier m and the addend a to the values in the .cfg file (only needed if you update the .cfg file while you’re playing, which is safe to do)
Examples:
Default: m=1, a=0
Double: m=2, a=0
Half: m=0.5, a=0
Free: m=0, a=0
Everything costs 1000 more: m=1, a=1000
Please note that negative points cause problems – it won’t crash, but the rewards store will be blank. When you update your settings, the mod will let you know if this will happen by calculating the minimum original cost that will work (if nothing shows up, then the minimum cost is 0, so everything is fine). For example, if you set m=1 and a=-500, then the mod will let you know that any rewards costing 499 or less will break it.
Conflicts (unlikely):
As this mod replaces some code, it will conflict with any mod that replaces the following two functions:
– whims.whims_tracker.WhimsTracker.purchase_whim_award (runs when you try to purchase a reward trait; edited to ensure that the cost checked and the subtracted points reflect the new cost)
– whims.whims_tracker.WhimsTracker.send_satisfaction_reward_list (runs when you open the reward store; edited to ensure that the new cost displays)
Mods changing the cost of rewards using tuning only (i.e. there’s only a .package file) or adding reward traits will be fine, as they just make new traits or replace original costs to give to these functions, instead of changing the functions themselves.