[RMVX ACE] SCRIPT - SELL THE PARTY'S ENTIRE INVENTORY

Posts

Pages: 1
unity
You're magical to me.
12540
I don't know if this is easy or doable, but is it possible to sell all the items in the party's inventory, perhaps with a script call command?

Pretty much, when the script is called, all items and equipment would go away, and you'd be given gold equal to the sell price of all the items. Is this possible? Thanks!
Trihan
"It's more like a big ball of wibbly wobbly...timey wimey...stuff."
3359
$game_party.all_items.each {|item|
$game_party.gain_gold((item.price / 2) * $game_party.item_number(item))
$game_party.lose_item(item, $game_party.item_number(item))
}
unity
You're magical to me.
12540
Wow! That's perfect! Thank you so much, Trihan :DDDDD
Pages: 1