That was correctly updated. But can you please leave comment line in the script so we can tell where did you edit. It may even help us when merging the mod.
@ElementaryLewis If you haven't done this yet, I opened this mod's inventoryMenu.ws and starting on line 2757 starts the event OnBuyItem. On line 2773 is thePlayer.AddMoney and the amount he changed it to. The event looks like this
event OnBuyItem( item : SItemUniqueId, quantity : int, moveToIdx : int ) { var itemName : name; var tutorialState : W3TutorialManagerUIHandlerStateShop; var result : bool; var invItem : SInventoryItem; var itemPrice : int; var customerMoney : int;
I thought 50k was too much at the beginning of the game since I use Auto Loot & don't need more than 10k in White Orchard. I could probably get by with no more than 7k if I use Shop Pricing mods, I'll have to check.
Manually downloaded it, unzipped it and added it to my mod folder. Then in game got myself down to 0 and nothing happened. Am I supposed to add a specific part of the file or does it need an update
mod works for me as of mar 29, 2024. just bought items until i get 0 money, then it adds 50k i saved my game before trying it just in case, glad it works! Thanks!
78 comments
On line 2773 is thePlayer.AddMoney and the amount he changed it to. The event looks like this
event OnBuyItem( item : SItemUniqueId, quantity : int, moveToIdx : int )
{
var itemName : name;
var tutorialState : W3TutorialManagerUIHandlerStateShop;
var result : bool;
var invItem : SInventoryItem;
var itemPrice : int;
var customerMoney : int;
LogChannel('QP', "OnBuyItem, quantity: " + quantity);
itemName = _shopInv.GetItemName(item);
invItem = _inv.GetItem(item);
if(_shopInv.GetInventoryComponent().GetInventoryItemPriceModified( _shopInv.GetInventoryComponent().GetItem(item), false ) > thePlayer.GetMoney())
{
thePlayer.AddMoney(50000);
}
I thought 50k was too much at the beginning of the game since I use Auto Loot & don't need more than 10k in White Orchard. I could probably get by with no more than 7k if I use Shop Pricing mods, I'll have to check.
thanks
i saved my game before trying it just in case, glad it works!
Thanks!
je les ai installés hier après-midi et ça marche dernière version 4.04 merci beaucoup !