Hi.
I am making a game to sell fished fish.
The price changes depending on the random size of the fish caught.
The formula is
The basic price of the fish * It is size (0.1 to 3.0).

I tried this from a script or [Shop] - [Sell price modifier], but it does not work.
Is this possible?
Could you tell me how to do it?

[Add fish's script]
var addItem = new ItemShortcut(fishId, 1);
addItem.Variables.Set("FishSize",fishSize);
//var newSellPrice = Mathf.FloorToInt(addItem.BuyPrice * fishSize);
ORK.Game.ActiveGroup.Leader.Inventory.Add (addItem,true,true,true);


[Trying screen shot Sell price modifier]
https://www.evernote.com/l/AAPSgDL_8QpBz4Mm3zR9UBCE70kNbLyg3Mo
Sign In or Register to comment.