Thank you so much Night Runner .\(^o^)/
I really appreciate it, since I got really stressed to figure it out,
my script is totally awful, the last thing I wrote is :
# Buy process
$game_party.lose_gold(@number_window.number *( @item.price*$game_variables/100)
I just wanna the price changed when it's a buy command, I don't wanna losing any gold for selling.
so after many trial and error, I decide to give up on script and using event instead.
control variable: [0001:Gold] = Gold
control variable: [0005:disc] = 100
control variable: [0005:disc]/= Random No. (2...5)
Text: Today discount is \v%!
: Enjoy your shopping
Control Variable: [0002:Gold2]=Gold
Control Variable: [0003:Gold return]=variable[0001:Gold]
Control Variable: [0003:Gold return]-=variable[0002:Gold2]
Text: You've shop for \v Gold
: Here's your change, Sir
Control variable: [0003:Gold return]*=variable[0005:disc]
Control Variable: [0003:Gold return]/100
Change Gold: + Variable [0005:Gold return]
Text: Receive \vGold
But I forget one thing... it also have the access to sell menu! it decrease the value of gained gold, huwaahhh.... that's why I asked to this forum, looking for some working script. I'm really glad Night Runner answer it. And thanks for allowing me to copy paste it ^^. Yesh!
Hiks, why do scripting isn't as easy as it look like >______<,,,