DestroyDX

Guy trying his best
Veteran
Joined
Aug 18, 2020
Messages
79
Reaction score
32
First Language
English
Primarily Uses
RMMV
High this is DestroyDX here, so I'm making a game called "The way Home" and in I have a character that can dual wield butI don't want him to be able to equip two of the same weapon types. Does anyone know how I can do this?
 

SirLegna

Villager
Member
Joined
Aug 8, 2020
Messages
29
Reaction score
28
First Language
ASL (sign lang)
Primarily Uses
RMMZ
I actually just extended one of my plugins after reading your comment. So, how I would do this is:
  1. Download my Weapon Stats Restriction plugin from my plugin generator.
  2. For the weapons you want to restrict us the following note tag:
    <SirL.notEqualSR:{"a.equips()[1] ? a.equips()[1].wtypeId : -1": "a.equips()[0] ? a.equips()[0].wtypeId : -2"}>
This basically says this item can only be equipped when the weapon type ID of slot 1 is not equal to the weapon type Id of slot 2 of the given actor.

There is a strange issue I couldn't resolve but shouldn't be too big of a concern if it is let me know. But Slot 2 has priority over Slot 1. In other words, if you try to add the same weapon type in Slot 2, it will unequip from Slot 1, then equip the new weapon in Slot 2.

If you have questions you can always ask, here is the link to the plugin generator!

 

Latest Threads

Latest Profile Posts

grief... finding a font that works with the engine has been a bigger process than I thought it'd be. doesn't help MV loves to scrunch letters next to each other like a football huddle.
The new Phoenix plugin. I drew icons and an interface into it
R3-M1 can now leave footprints :kaojoy: Thanks Dsiver144 for another amazing plugin!!

1653686110642.png

Hey guys, do you wanna see who dominated the competition in our last game jam?! Stop by while we play Pinky by @Wumbohek Starting at 4:20pm EST.

Forum statistics

Threads
122,178
Messages
1,147,040
Members
160,438
Latest member
zodismegalame
Top