Jump to content

[Mod request] Quest reward increased


Recommended Posts

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

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!
Link to comment
Share on other sites

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

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 by Kevune
Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...