Need to figure out how to remove specific items from the inventory

Lionmeow

Villager
Member
Joined
Feb 3, 2019
Messages
8
Reaction score
0
First Language
English
Primarily Uses
RMXP
I've been needing a script for removing an item from the inventory based on the ID. However, any script I try just ends up erroring out (probably because I've been trying various scripts but I don't think any of them I found were RMXP specific). Can someone build/use a script to remove x item from inventory where x is some variable?
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
173
Reaction score
62
First Language
English
Primarily Uses
RMXP
There's built-in script calls for that.
Code:
$game_party.lose_item(item_id, amount)
$game_party.lose_weapon(item_id, amount)
$game_party.lose_armor(item_id, amount)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

The sinking feeling when you realize your grandmother probably isn't long for this world, and the frustration when you know that this pandemic will take her away...not because she has Covid, but because no doctor is willing to see a patient to even run simple diagnostics anymore if one of her symptoms happens to be a recurring fever, even if her primary care physician gives her the test and it comes back negative.
Will be revealing my project to the forum soon.
Ohboi, I'mma learning how to mix/sing better warming up (by singing game songs) for eventually singing my team's game's main theme. (Plus singing for my Patrons XD)
For anyone using my Extended Generator, would you like a discord server where you can exchange ideas, help, suggestions and news about the development ?

Forum statistics

Threads
99,606
Messages
967,233
Members
131,281
Latest member
isabelx10
Top