Balot

Villager
Member
Joined
Mar 6, 2015
Messages
5
Reaction score
3
First Language
Portuguese/BR
Primarily Uses
Greets.

I'm trying to make a skill that makes the character throw a weapon and then unequip it. I'm using Yanfly plugins for it. Is there a script call that removes the currently equipped weapon or armor of a particular character? If not, is there any way I can make it work?

Thanks in advance.
 

Fuchsilein

Devil Fox
Veteran
Joined
Aug 20, 2015
Messages
53
Reaction score
19
First Language
German
Primarily Uses
Code:
$gameActors.actor(actorId).changeEquip(slotId, $dataWeapons[0]);

Should work, cant test it right now, just set the weapon slot to a ID:0 would unequip it, any other ID would equip the specific weapon
Dunno what the slotId for weapons is right now :rswt2:

Edit: Nvm slotId should be "0" as well.
 

Balot

Villager
Member
Joined
Mar 6, 2015
Messages
5
Reaction score
3
First Language
Portuguese/BR
Primarily Uses
Thank you. You really helped me.
 

Latest Threads

Latest Profile Posts

That awkward moment when you're talking about thinking about writing a limited shop stock plugin for MZ and then find out you already wrote one...last May. My memory is so bad.
When I open my project and I'm like, hell yeah.
Some drawings I made in Lapis, one day I intend to involve them in some RPG Maker project.
* maybe two wall frames
*or some sprite flower tiara, or maybe it inspires someone to do something.
bdd19b62e539d17b3b00cc3d63034f7d.jpg

fcca5c8471b34483da8e032cfe579275.jpg
Step by step, I am coming back.

memorial.png
MasterTenchi wrote on Pixeldrama's profile.
Do you happen to have any of the two lockpicking minigames in RPG Maker MZ format?
I'd love to use them both in my game, and the only ones I've found are yours, but they are in MV format. Strange no one has made a single one for MZ yet. I am hoping you have - but just on the down-low.

Forum statistics

Threads
118,422
Messages
1,115,830
Members
155,374
Latest member
Dantunes
Top