Anyone has any idea what I'm doing wrong? I'm trying to change the code for item purchases in VX Ace, but it's not taking it into account (the vabiable mentioned is a haggling stat the player can raise). It's the last part of the OG script in Scene_Shop
def buying_price
(@buy_window.price(@ItEm) * (100/(100 - $game_variables[161] * 2) ) ).to_i
end
The haggle stat (variable 161) can be raised up to 8, so the idea is the player can get up to 16% discount. This code is not crashing the game, it just doesn't seem to be working and I have no idea why.
def buying_price
(@buy_window.price(@ItEm) * (100/(100 - $game_variables[161] * 2) ) ).to_i
end
The haggle stat (variable 161) can be raised up to 8, so the idea is the player can get up to 16% discount. This code is not crashing the game, it just doesn't seem to be working and I have no idea why.