What exact script call did you use?
And where did you use it?
Glad you got it working.
Still, it was technically a bug.
I'll look into fixing that call as time allows.
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.
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.
Works like a charm! tysm!
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
Can you give a ss of the error from the console?
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)
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.
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)
Did you happen to change the filename of this plugin?
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.
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 ! ^^
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 🙂
It should work ok. Give it a try and let me know if you have issues.
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 ?