Remove all items

Morizel

Veteran
Veteran
Joined
Sep 28, 2018
Messages
96
Reaction score
6
First Language
Russian
Primarily Uses
RMMV
I wonder, how to remove all weapons, armors and items from party's inventory?
Especially if party has many types of weapons and armors!

P.S. Unrelated to thread: I trying to make alchemy system through events and variables. Put item count into variables, but it doesn't remove items from inventory.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,115
Reaction score
1,525
First Language
EN
Primarily Uses
RMMZ
I think this script call should completely empty the party inventory:
Code:
$gameParty.initAllItems();
Not sure what you mean by the second part? You'll have to manually remove the ingredients, just like you manually add the created items. There's an option in Change Items to specify the number to add/remove as a variable rather than a fixed value. :)
 

Morizel

Veteran
Veteran
Joined
Sep 28, 2018
Messages
96
Reaction score
6
First Language
Russian
Primarily Uses
RMMV
Not sure what you mean by the second part? You'll have to manually remove the ingredients, just like you manually add the created items. There's an option in Change Items to specify the number to add/remove as a variable rather than a fixed value. :)
I understand that is the only way.
For now this thing seems like this:
capture_001_04062019_010543.jpg
At first I was set item types as variables through "Control Variables". And I thought that through that command I can add or remove ingredients.
But suddenly "Control Variables" doesn't count as items. Ingredients doesn't removes by potion production.
And yet i just using fixed values in "Change Items".
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,115
Reaction score
1,525
First Language
EN
Primarily Uses
RMMZ
At first I was set item types as variables through "Control Variables". And I thought that through that command I can add or remove ingredients.
But suddenly "Control Variables" doesn't count as items. Ingredients doesn't removes by potion production.
And yet i just using fixed values in "Change Items".
Oh, I see. :) Yes, I believe you'll have to use Change Items there: the variables are just numbers with no memory of where they came from. :kaoswt:
 

Morizel

Veteran
Veteran
Joined
Sep 28, 2018
Messages
96
Reaction score
6
First Language
Russian
Primarily Uses
RMMV
Also, not serious question: how to remove ALL equipment, not items via script?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,115
Reaction score
1,525
First Language
EN
Primarily Uses
RMMZ
If you just want to clear all weapons and armors out of the inventory, try this two-line script call:
Code:
$gameParty._weapons = {};
$gameParty._armors = {};
If you want a specific actor or party member to unequip all their equipped weapons/armors, try:
Code:
$gameActors.actor(1).clearEquipments();
To reference a party member by their index in the party (leader = index 0), try this instead:
Code:
$gameParty.members()[0].clearEquipments();
If you want to erase an actor's current equipment (no moving it to inventory), try something like:
Code:
$gameActors.actor(1).initEquips([]);
 

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

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top