Maliki's Dual Wield ver 2.5

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
What exact script call did you use?
And where did you use it?
 

acowasto

Villager
Member
Joined
Sep 28, 2019
Messages
5
Reaction score
1
First Language
nope
Primarily Uses
Other
What exact script call did you use?
And where did you use it?
$gameActors.isWeaponEquipped(type)
Because it's only one provided in the description of the plugin. I used it via conditional branch, latter with script and plugin command (everything I had i mind), tired to change it a bit too. But anyway, I started to "google-ing" around and came up with:
"$gameActors.actor(actor_id).equips()[slot_id] != null"]
And, to be honest, it actually worked. So... thanks for the quick respond and, of course, the great plugin. And sorry for taking your precious time.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
Glad you got it working.
Still, it was technically a bug.
I'll look into fixing that call as time allows.
 

MarxMayhem

Veteran
Veteran
Joined
Apr 17, 2020
Messages
30
Reaction score
14
First Language
Filipino
Primarily Uses
RMMV
Hi there!

First up, thanks for this neat plugin! I have characters in my game that can utilize 2-handed weapons and dual wield so this helps me out.

Second, and I acknowledge that this is a "me" thing so you can say if you don't want to work on this, but would it be possible to add a weapon tag that disables the offhand slot? As it is, you still can't wear anything in the off-hand slot while wearing a weapon has the <twohand> tag. However I can still select the off-hand section and it'll just show a blank page. I just don't want to give that option to players when they equip a 2H weapon to certain classes.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
Hmmm... It's worth looking into.

Edit: And Done.
Re-DL the plugin.
A new param was added to it called 2H_DisableOtherSlot which will disable the expected slot if the other one is equipped with a 2Handed weapon.
 
Last edited:

MarxMayhem

Veteran
Veteran
Joined
Apr 17, 2020
Messages
30
Reaction score
14
First Language
Filipino
Primarily Uses
RMMV
Works like a charm! tysm!
 

Snuper1234

Villager
Member
Joined
Apr 24, 2020
Messages
12
Reaction score
2
First Language
Eng
Primarily Uses
RMMV
For some reason when i put the twohand sword in the offhand and then press on the main hand it gives me TypeError :Cannot read property 'clamp' of null.
I just started a new game for testing so no other scripts
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
Can you give a ss of the error from the console?
 

Snuper1234

Villager
Member
Joined
Apr 24, 2020
Messages
12
Reaction score
2
First Language
Eng
Primarily Uses
RMMV
TypeError: Cannot read property 'clamp' of null
at Game_Actor.Game_BattlerBase.refresh (rpg_objects.js:2614)
at Game_Actor.Game_Battler.refresh (rpg_objects.js:3000)
at Game_Actor.refresh (rpg_objects.js:3756)
at Game_Actor.forceChangeEquip (Maliki's Dual Wield.js:294)
at Window_EquipItem.updateHelp (rpg_windows.js:2505)
at Window_EquipItem.Window_Selectable.callUpdateHelp (rpg_windows.js:1233)
at Window_EquipItem.Window_Selectable.select (rpg_windows.js:797)
at Window_EquipItem.Window_Selectable.reselect (rpg_windows.js:805)
at Window_EquipItem.Window_Selectable.activate (rpg_windows.js:784)
at Scene_Equip.onSlotOk (rpg_scenes.js:1502)
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
I took a look, but could not recreate the issue.

What I did was make a new project, in it, took a weapon, tagged it Twohand, then gave it to an actor that had the dual wield trait. (I put it in the off hand slot.
(As you said, there were no other custom plugins active at the time.)

Then I tried to equip a weapon in the main hand and had no problem.

If that is not what you did, please let me know how your weapons were set up.
 

Snuper1234

Villager
Member
Joined
Apr 24, 2020
Messages
12
Reaction score
2
First Language
Eng
Primarily Uses
RMMV
I made at mistake.
It's not when i try to put Twohand, it has nothing to do with it.
its when i put weapon(any weapon) in my off-hand and then press on my main hand i get that message.
(its working fine when i turn off the script and use the regular dual wield)
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
Did you happen to change the filename of this plugin?
 

Snuper1234

Villager
Member
Joined
Apr 24, 2020
Messages
12
Reaction score
2
First Language
Eng
Primarily Uses
RMMV
I used the name that appeared in the download raw button but the name wasn't right. (saved it as js file)
but after u said that i tried to download it from the "see original" button and it worked with that name.
Thank you. and sorry if i caused headache.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
I used the name that appeared in the download raw button but the name wasn't right. (saved it as js file)
but after u said that i tried to download it from the "see original" button and it worked with that name.
Thank you. and sorry if i caused headache.
No worries.

Glad we fixed the issues.

Thanks for using my plugin.
 

Deagron

Villager
Member
Joined
Aug 14, 2020
Messages
20
Reaction score
3
First Language
French
Primarily Uses
RMMV
Hello, I've been searching for something a bit precise surrounding dual wielding for my project, and wondered if you could know if this is possible easily while using your plugin :

I'll make en example to better explain.
There are two weapon types : Swords, Daggers. Both are one-handed.
What I am searching for is at level 10, the actor learns to dual wield but for Daggers only.
Then at level 20, he learns dual wielding for Swords.

I was looking for some kind of plugin about dual wielding that could do that, but I didn't find anything.
As I don't know anything about coding, maybe it's too complicated to create ?
Anyway, good luck with your next work ! ^^
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
@Deagron , it is doable but would require updating this plugin.
That said, I'm planning on updating this plugin for the upcoming MZ release (which I do recommend) and will likely not provide further updates for my MV versions.

If the solution turns out to be easily applied to both, then I will update them together.
 

Deagron

Villager
Member
Joined
Aug 14, 2020
Messages
20
Reaction score
3
First Language
French
Primarily Uses
RMMV
Thank you for your answer ! ^^
Unfortunately I recently bought MV, and cannot afford another buy for the moment, so I'll have to wait later ^^
Anyway, thanks again and good luck with your next work :)
 

Deagron

Villager
Member
Joined
Aug 14, 2020
Messages
20
Reaction score
3
First Language
French
Primarily Uses
RMMV
Hello @Maliki79 , I wondered if I could use the <shld> notetag to also have arrows with my bow.
Would it conflict with the shields even if I give them another weapon type ?
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
767
Reaction score
330
First Language
English
Primarily Uses
N/A
It should work ok. Give it a try and let me know if you have issues.
 

Deagron

Villager
Member
Joined
Aug 14, 2020
Messages
20
Reaction score
3
First Language
French
Primarily Uses
RMMV
Ok it works, but I can choose both shields and arrows which would seems strange
Also, would the arrow with the <shld> notetag influence the bow's attack ?
What I intend to do with arrows is to have them add elemental damage or status effects to the bow's attack. I suppose that the <shld> notetag disable attacking with both weapons, doesn't it ?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I think in the pursuit of making the game look and sound custom, we never really start making a game. Finish the game first using all necessary plugins (with placeholder assets), then replace it with the real ones.

I haven't finished a game, but I try this method. Progress seems to be faster. :D
Every now and then I think about all the things I need in my project, and get overwhelmed. Just focus on your tilesets, me. You can't build your maps without 'em!
If a picture speaks 1000 words, how many pictures does a video speak??
I don't really get the "Pass Interference" Flag in (American) Football. Aren't you SUPPOSED to interfere with passes in Defense?? What exactly is the threshold that warrants a Flag?
TS Zeta.. blow your ass east... I cant take a round 3.

Forum statistics

Threads
104,434
Messages
1,006,326
Members
135,957
Latest member
parttimerpgmaker
Top