Dual Wield

Joined
Oct 29, 2014
Messages
156
Reaction score
4
First Language
English
Is there any way I can make it so a character can dual-wield two weapons, but certain weapons cannot be dual-wielded, since they require both hands to wield?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
Someone gave me this code snippet that should help you out:


<Custom Passive Condition>
if (user.isEquipTypeSealed(2)) {
condition = false;
user.releaseUnequippableItems();
} else {
condition = true;
}
</Custom Passive Condition>


You need Yanfly's passive states plugin to use it.


Make your two handed weapons disable your shield slot, and put this note tag on a passive state that gives you dual wield. It isn't pretty, as it just immediately removes any disallowed equipment without a message or anything, but it works.
 
Last edited by a moderator:

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,591
Reaction score
1,168
First Language
English
Primarily Uses
RMMV
You can also use this instead if you don't want it to automatically unequip something. This will just gray out the 2h item in question if you already dual wielding (make it so one-handed weapons grant the dual wielding trait, instead of having it on the actor itself).
 


<Custom Equip Requirement Condition>


if (user.isDualWield()) {


condition = false;


} else {


condition = true;


}


</Custom Equip Requirement Condition>


Require's Yanfly's equiprequirements plugin.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
@Emperor DragonBreath


If an actor has the dual wield type, he would be unable to equip a shield unless you removed that type first. You could achieve this through traits on certain weapons, but it'd be nearly impossible to have an actor use the same weapon for both dual wielding and for one-handing with a shield.


There is a plugin that modifies this default behavior to force all actors to dual wield and treat shields as an offhand only weapon, but the name escapes me right now, and it involves a lot of setup.
 
Joined
Oct 29, 2014
Messages
156
Reaction score
4
First Language
English
@Emperor DragonBreath


If an actor has the dual wield type, he would be unable to equip a shield unless you removed that type first. You could achieve this through traits on certain weapons, but it'd be nearly impossible to have an actor use the same weapon for both dual wielding and for one-handing with a shield.


There is a plugin that modifies this default behavior to force all actors to dual wield and treat shields as an offhand only weapon, but the name escapes me right now, and it involves a lot of setup.
Maliki's Dual Wield?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
Yeah that's the one.
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,591
Reaction score
1,168
First Language
English
Primarily Uses
RMMV
Just make the shield a one handed weapon, but offer the stats of a shield. That's wut I did on my project
 
Joined
Oct 29, 2014
Messages
156
Reaction score
4
First Language
English
You can also use this instead if you don't want it to automatically unequip something. This will just gray out the 2h item in question if you already dual wielding (make it so one-handed weapons grant the dual wielding trait, instead of having it on the actor itself).
 


<Custom Equip Requirement Condition>


if (user.isDualWield()) {


condition = false;


} else {


condition = true;


}


</Custom Equip Requirement Condition>


Require's Yanfly's equiprequirements plugin.
I'm using Maliki's Dual Wield plugin. Can I use the condition you showed me to cut a weapon's attack power in half if you are wielding two weapons and not a shield?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top