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,776
Reaction score
2,127
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 Profile Posts

51F2AC5E-A605-446E-9439-D77AA6A0B0ED.pngAdded console to my content thread here
Sweet nostalgia. My fave Final Fantasy game.
Steam page is now live!
1632768058957.png
just discovered thig game called Willowbrooke Post... beautiful artstyle if I do say so myself... does anyone know what this kind of style is called??
In one of my game projects, I am working on an arena where you can fight combatants or bet on monsters, and, man, it is taking so long, lmao. I do not think that it helps that I am using an evented combat system with a lot of things that I have to edit.

Forum statistics

Threads
115,423
Messages
1,089,743
Members
150,170
Latest member
mercychan
Top