Status
Not open for further replies.

Sacrifyx

Veteran
Veteran
Joined
Oct 16, 2012
Messages
147
Reaction score
10
First Language
English
Primarily Uses
RMMV
Hey all,
I'm looking for a way to remove my character's inventory on death. Just take it and throw it into the void. I've got the gold part handled, but I'm not seeing a way to remove everything else. Conditional branches aren't ideal as the game is heavily loot dependent, I'd have 20 million branches to get everything off. Anyone know of a way to simply strip everything either through eventing or a plugin? There's only one player character in this project if that helps at all.
 

M.I.A.

Goofball Extraordinaire
Veteran
Joined
Jul 13, 2012
Messages
948
Reaction score
802
First Language
English
Primarily Uses
Set a conditional branched common event that's parallel to trigger upon character death..
Then remove equipment from actor. Then you can remove all the items (one at a time) from the inventory.
If you have hundreds of items, then this will take a while.. but if you have 30 or so, it's easily accomplished.

Your list would carry so on and so on, for every obtainable item and every equipable slot, but hopefully you catch the drift.
:)
-MIA
 

Attachments

  • LootRemoval.png
    LootRemoval.png
    61.8 KB · Views: 3

MDZ

Villager
Member
Joined
Oct 26, 2019
Messages
19
Reaction score
11
First Language
English
Primarily Uses
RMMV
I was getting ready to say that.
A simple common even with change items for all items -x
Would do the trick
 

Sacrifyx

Veteran
Veteran
Joined
Oct 16, 2012
Messages
147
Reaction score
10
First Language
English
Primarily Uses
RMMV
you can wipe all items in the inventory by using this scriptcall

$gameParty._items = {};
THAT is what I was looking for! Thanks so much!


Edit: Doesn't seem to work, though...
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,497
Reaction score
1,725
First Language
Dutch
Primarily Uses
RMMV
if { } dont work, try [ ], its one of those. but it will clear ALL items, items, equips, keyitems etc
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
272
Reaction score
804
First Language
English
Primarily Uses
RMMV
You can also try Hime's multiple inventories, just set a common event that on death switches your inventory to a blank one.
http://himeworks.com/2015/11/multiple-inventories/

I dont remember if gold is removed but thats a simple 2 step process where variable= current gold, then current gold - variable
 

Sacrifyx

Veteran
Veteran
Joined
Oct 16, 2012
Messages
147
Reaction score
10
First Language
English
Primarily Uses
RMMV
Neither { } nor [ ] are working. I'll look into Hime's plugin. I just need the inventory bit, the script call to remove gold is working just fine.

Edit: Not really understanding Hime's plugin, a lot is left unexplained in the help section. I posted a question in the plugin thread about it, but considering it was last replied to like 2 years ago I'm not holding out much hope. I guess line by line it is.
 
Last edited:

Sacrifyx

Veteran
Veteran
Joined
Oct 16, 2012
Messages
147
Reaction score
10
First Language
English
Primarily Uses
RMMV
Problem solved - took some additional searching, but I came across these two script calls:

$gameActors.actor(1).clearEquipments();
$gameParty.initAllItems();

And those do the job.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,000
Reaction score
5,889
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Creating 3D CGs for Cutscenes. :kaosalute:

I keep wanting to post every song I make for the game and have to hold back on that because at this rate, I'll have spoiled all the really good stuff lol..
DerniBorges wrote on TSR's profile.
Is there any way this plugin works with the big character, and the QSprite plugin? Using RTP chars, everything works fine, but the big ones, with QSprite, it's like that in the image, it doesn't reflect right. And there is, in the settings, an option to fix it. Thanks.
bug2.png
Bengawan Solo with fantasy style arrangement. :D
So I just got my computer back (Was posting stuff on my phone) But now my dang monitor's broken! I'll need to get a new one, which means... JOBS! Yaaay... When I get a new monitor, I'll post picture of one of my RPGMMV projects.
Wish me luck... :kaodes:

Forum statistics

Threads
115,899
Messages
1,093,807
Members
151,144
Latest member
Starnumb
Top