Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[VX]remove item from inventory[SOLVED]

is there is a way to remove an item from my inventory?

A function similar to the Event Command
@>Change Items: [Item.id], -1

something like:

$game_change_items(@item.id) - 1 ??
 
Code:
$game_party.lose_item(item, n, include_equip)
n = the number you want the party to lose.
include_equip defaults to false.  You don't have to include the argument at all, but if you put true in its place, your party can lose equipped items on top of inventory.
item = the actual item you want lost, not an ID.  Thus, it should be one of the following:
Code:
$data_items[x]
Code:
$data_weapons[x]
or
Code:
$data_armors[x]
where the x in any of the three is the ID of the item, weapon, or armor to be lost.
 
After hours of searchers in the forum finally found my answers

Code:
@item = @item_window.item
$[b]game_party.lose_item[/b](@item, 1)

Lol!! ^^

Thank you very much DrakoShade.. I was posting my solution when I see your reply xD
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top