Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,965
Reaction score
1,670
First Language
English
Primarily Uses
RMMV
Hi, I'm trying to make it so that when a weapon is equipped into the Main Hand slot (.equips()[0]), the weapon in the Off Hand slot (.equips()[1]) gets unequipped. Is this possible?
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,773
Reaction score
2,123
First Language
EN
Primarily Uses
RMMZ
"Replace actor 1's equip type 2 (off-hand slot) with item 0 (empty)":
JavaScript:
$gameActors.actor(1).changeEquipById(2, 0);
I assume you already have a way to run this kind of code at the appropriate time?
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,965
Reaction score
1,670
First Language
English
Primarily Uses
RMMV
Sweet! Tyvm!!:kaojoy:
 

Latest Threads

Latest Posts

Latest Profile Posts

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.
A surprising number of plugins have appeared for MZ since last year. I'm currently making a "shopping list" so that I'll know what I need to test when I switch over to MZ later this year. Much of it is stuff updated from MV plugins, but there are also a good number of new things. It'll be fun to test it all out.

Forum statistics

Threads
115,382
Messages
1,089,467
Members
150,110
Latest member
damedollasign
Top