Kevune Posted December 11, 2015 Share Posted December 11, 2015 Nice! I know it's only one mod, but I'm on my second playthrough, if I wanted more money I could just download a mod that makes selling at better price. But just for the immersion, I want the quest to be more profitable, rather than stealing people's house. So if you got any news, let me know. It was a good initiative :) pMarK got my support! Link to comment Share on other sites More sharing options...
Wolfmark Posted December 13, 2015 Share Posted December 13, 2015 In r4game.ws is an event handler named OnGiveReward. Copy the file to a new mod, find this code (line 968):multiplier = thePlayer.GetRewardMultiplier( rewardName ); inv.AddMoney( (int)(rewrd.gold * multiplier) ); thePlayer.RemoveRewardMultiplier(rewardName); and change it tomultiplier = thePlayer.GetRewardMultiplier( rewardName ); // mod start: +50% more gold if (target == thePlayer) { multiplier = multiplier * 1.5; } // mod end inv.AddMoney( (int)(rewrd.gold * multiplier) ); thePlayer.RemoveRewardMultiplier(rewardName); Don't edit the file from game's scripts folder! Link to comment Share on other sites More sharing options...
MaliciousSwede Posted December 13, 2015 Author Share Posted December 13, 2015 In r4game.ws is an event handler named OnGiveReward. Copy the file to a new mod, find this code (line 968): multiplier = thePlayer.GetRewardMultiplier( rewardName ); inv.AddMoney( (int)(rewrd.gold * multiplier) ); thePlayer.RemoveRewardMultiplier(rewardName); and change it to multiplier = thePlayer.GetRewardMultiplier( rewardName ); // mod start: +50% more gold if (target == thePlayer) { multiplier = multiplier * 1.5; } // mod end inv.AddMoney( (int)(rewrd.gold * multiplier) ); thePlayer.RemoveRewardMultiplier(rewardName); Don't edit the file from game's scripts folder! Thank you so much.Was hoping that pMark would take a look at it (to implement the mod menu), but maybe I will do it myself. Link to comment Share on other sites More sharing options...
Kevune Posted December 14, 2015 Share Posted December 14, 2015 (edited) In r4game.ws is an event handler named OnGiveReward. Copy the file to a new mod, find this code (line 968): multiplier = thePlayer.GetRewardMultiplier( rewardName ); inv.AddMoney( (int)(rewrd.gold * multiplier) ); thePlayer.RemoveRewardMultiplier(rewardName); and change it to multiplier = thePlayer.GetRewardMultiplier( rewardName ); // mod start: +50% more gold if (target == thePlayer) { multiplier = multiplier * 1.5; } // mod end inv.AddMoney( (int)(rewrd.gold * multiplier) ); thePlayer.RemoveRewardMultiplier(rewardName); Don't edit the file from game's scripts folder! So basically, you copy the r4game.ws file in the "mods" folder, change those lines and that's it? Edited December 14, 2015 by Kevune Link to comment Share on other sites More sharing options...
Wolfmark Posted December 14, 2015 Share Posted December 14, 2015 When you want to modify a script file you must copy it into a mod folder, but also you must keep the same relative path. In this case: 1. First create the folder for a new mod: let's say mods\modIncreaseRewards.2. The scripts inside mods must be in content\scripts folder, so create these folders too.3. The r4game.ws file is inside game folder, so you must create this folder too. The result should be mods\modIncreaseRewards\content\scripts\game. This is where you copy the r4game.ws file before you can change it. Link to comment Share on other sites More sharing options...
Kevune Posted December 16, 2015 Share Posted December 16, 2015 Works perfectly! Much appreciated :) Do you know if there is a way to implement the reward into the haggling system? So that what you receive is the same amount of money as the one you haggle? Link to comment Share on other sites More sharing options...
Wolfmark Posted December 17, 2015 Share Posted December 17, 2015 I don't understand your question. Link to comment Share on other sites More sharing options...
Kevune Posted December 19, 2015 Share Posted December 19, 2015 If I get a contract, the reward is, example, 150 crowns, I haggle for 160 crowns. But now that I have change the r4game.ws for 1.5X time the reward, I will get 240 crowns.Do you know if we could make it so that I haggle for 240 crowns directly from the npc who gave me the contract? Link to comment Share on other sites More sharing options...
Recommended Posts