Well, you could use the weapon attack formulas plugin mentioned above to set a weapon formula for each type of dice, and then call it back in the attack skill (this.getWeaponFormula()).
But you could also just make your own function to check what weapon you have equipped and then return something based on that. If you're not well-versed in javascript, that's going to be something you might need to ask about in the javascript forums to figure out, or have someone do for you.
In the mean time, I don't think dual wield by itself will work for you for this, not without a lot of confusing configuration, anyway. It was never really meant to be used in that way.
Alright that's good to know. I'll look into the weapon attack formula plugin then.
To make sure I understand that plugin in properly, in the plugin settings itself, you create new entries that are associated with a weapon ID (i.e. a specific weapon), and that entry carries a custom damage formula that you write in, so that when using the weapon it entirely ignores the damage formula entry in the database and uses the one associated with the ID in the plugin options right?
You can do this or use the <weapon formula> tags to create a custom formula in the notebox of that particular weapon that uses full javascript?
and the <Weaponskill> tag will have a skill's damage formula replaced by the damage formula of that weapon.
I think these are the main 3 features of that particular plugin. If I'm correct in understanding how it works, I guess I'd like to know how that interacts with MZ/MV's default dual wield trait.
EDIT: I'm trying to process and conceptualize this.weaponFormula() but I'm not quite connecting the dots so if you could also further elaborate this I'd appreciate it.
EDIT2: nvm i understand how this.WeaponFormula() works now lol. the value inside of () only occurs if the weapon does not have a custom formula via the plugin.
Yeah, so you can set weapontypes to use a default formula, or you can use note tags to set a specific formula on a specific weapon.
By default, only the attack skill has its formula changed, but you can extend that to any other skill with the <weaponskill> note tag. The this.weaponFormula() function can be put into any skill at all to return the value of the weapon formula for the weapon being used, allowing you to make a skill that takes the weapon formula into account for its damage calculation.
For example, you have a sword, which has a.atk as it's formula. You also have a Big Sword which is a.atk *2. You make a skill, Hard Slice, which is an especially hard attack, dealing a.atk * 4 damage. When used with the sword weapon, this skill does 4x the amount of the normal attack, but when used by the big sword, it only does 2x as much. Changing the formula to this.weaponFormula() * 4 would make it deal 4x as much damage as the default attack, no matter what weapon is equipped.
You can think outside of the box a little bit to make this do all kinds of things with the damage formula too, like roll dice or apply states.
With the default dual wield system, this plugin always uses the weapon formula of the main hand, unless it's empty, then it will use the offhand instead. When combined with the dual wield plugin, it will always use the weapon formula of the weapon currently being swung, so it will use the offhand formula for the offhand hits in the basic attack, and so on. in a standard system, this would allow someone to wield, say a knife, which might use agi in its damage formula, with a sword, and see the difference in hits for the normal attack. For your dice system, it would allow the normal attack to use two different damage formulas for two different equipped dice.
That's all very informative so thank you very much. I managed to get taught how to codify parts of my intentions into a function so I created a tiny tiny plugin that renders the logic as a function I can toss into the damage formula (as a.diceRoll()) so with this in mind I can probably get my desired effect with your dual wield plugin being used as intended since the function returns a random array value.
Thanks for the education homie.
Hey there!
Love the plugin, thank you for providing a good reliable system!
Got one tiny bug report on the Craft Levels plugin, whenever you scroll down it locks the screen on the plugin values, not showing the following ones.
Scrolling up works fine for some reason?
Awh, sorry my communication skills are not good at all >> thank you for your hard work
Nice. glad that we got it working there.
Interestingly enough, the MZ console actually does preview the result when you type something like that in without pressing enter, but the MV one doesn't do that. Just something weird I picked up at some point, lol.
That is a weird error to be getting, and only some of the time?
Can you narrow down what causes it to come up more? I released a couple updates to the plugin over the past few days, so what version of the plugin are you using?
When you were testing the recipes, were they always the same recipe, so this error came up sometimes with the same ingredients, or was it only certain recipes that this happened with? Did the affected recipe have any category/wildcard ingredients in it?
It looks like based on that error stack that the loseingredient function is being called without an item. I think I know what's happened here, assuming you're using the latest version of the plugin, as I just made a change that was a bugfix for the DQ11 mode that might've caused this problem, though if you could confirm you're using that version that'll help me narrow it down.
Edit:
Nevermind, I took a quick look and figured out what was going on. The fix I'd applied in v1.19 to correct the issue where the new mode wasn't taking the correct number of ingredients wasn't implemented correctly, which caused a crash error if the ingredients in the slots were provided in a different order than they were listed in the recipe.
Ex the recipe is Lettuce x2, Tomato x1 = Salad x1.
if you put those items in, in that order, it'd work fine, but if you put them in the slots as
Tomato x1 and Lettuce x2
It would crash because of the way I cleared part of the ingredient array, always assuming they were in the right order, and then only testing that way, so never seeing a problem until you reported it.
I have it fixed now, the new revision will be uploaded shortly, so redownload it from your library and let me know that it works.
Thanks.
I'm using the newest version and the default crafting mode. Tried it a couple more times and I think it has to do with the order I put the ingredients in. The first pic seems to be successful because it's the order I put the ingredients in on the recipe list for the slots. The 2nd one seems to fail since it's a different order than I put in the recipe list.
Am I supposed to create all possible ingredient-order combos for the recipe or is this an unintended error and the item is supposed to craft despite the order?
With dual wield let's say my mainhand weapon adds a poison state on attack but it makes my offhand add the state too.. is there a fix for that or something I am overlooking or didn't do right hehe. Thanks! Great plugins ; )
Alright going to try to find the conflict thanks for the quick reply
the 2 states per attack seems to be happening when using your Block plugin with the Dual wield plugin. I started a new project with just Battle Engine Core / Buff States / Dual Wield / Block and I can repeat the issue.