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 Profile Posts

I can see the end of my prologue. Perfect time to decide to pull everything over into MZ, right? Right?!
Excited to be nearing the end of setting up my own custom Point-And-Click system template! Just need to iron out some kinks, get an input text system going, add animations to buttons, and then finalize my button-mashing event system and it'll be complete >:3c
AlcTheHero wrote on Mystic_Enigma's profile.
hi.
Still recovering from my laptop's transformation into a brick. I hope to be back to making soon.
Urgh. That sense of frustration when I tell my husband the plot of my game, bullet points, and at the end he looks and me and says 'that's it? Final Fantasy has more twists and turns.' Me: Ahrug! Bullet points!

Forum statistics

Threads
99,638
Messages
967,589
Members
131,308
Latest member
tuyetky01
Top