Weapon Sprites Enhanced

So I guess I'm fairly dumb... Which Notes field do we enter these items?  For the Actor, the Weapon, or elsewhere?
It would be for the Weapon. For just a test, copy and paste the example and put it in one of your first weapons. If it worked you will have a blue staff when you attack.
So I tried adding this, but it doesn't seem to be doing what I think it should be doing.  My character has the Cane equipped.  In the Note tag of the Cane, in the Weapons tab of the DB, I have:

[EnhancedSprite]

WeaponImage: Weapons2

WeaponID: 10

WeapnHue: 40

WeaponMotion: thrust

When my character does an Attack, I should be expecting him to thrust with the Chainsaw, right?  But he doesn't... He uses the regular attack animation for the cane...

[EDIT]

Now I changed muy weapon type to a Staff, and add this to the Wood Staff

[EnhancedSprite]

WeaponImage: Weapons2

WeaponID: 10

WeaponHue: 40

WeaponMotion: thrust

But now I get an error when my character attempts to attack

TypeError

Cannot read property 'weaponImageId' of undefined

I changed it to the example in the plugin's help

[EnhancedSprite]

WeaponImage: weapons2

WeaponID: 2

WeaponHue: 155

WeaponMotion: skill

Same exact error
Ok, so there are so many different dependancies in the DB...  The staff did not have a SV Attack Motion defined in the System tab of the database.  Upon creating one, this plugin now works appropriately.

I really wish I knew more about how this is supposed to work.  Regardless of the WeaponMotion I use, it seems the character does the same thing, and the weapon does the same thing.  I've tried swing, thrust, and skill.  However, in looking t the code itself, I see a if elseif statement that shows the thrust, swing, and missle animation types ;listed in the SV Attack Animations field in the SYstem tab, but I don;t see skill listed anywhere.

What could be beneficial is a sample game showing the different types in use, something we could look at and study.  Should be simple, but something just looks and feels a bit off using this.
can we use this to use icons as weapons in the side view battle system again like all the side views from Ace?
can we use this to use icons as weapons in the side view battle system again like all the side views from Ace?
the icons would have to be scaled up
WeaponHue is a nice touch!  Very cool!

[Edit]

Eh...  I spoke to soonish maybe, same issue it doesn't seem to really work- especially with Yanfly scripts (which I assume everyone uses since the default battle sys is vanilla).
How would one apply a different sound effect for the new weapons?
Hmm, I can't quite get it to work. I copy-pasted your example for a test, but nothing happened after that and this is with all the other Yanfly plugins turned off. Is there something I'm missing there?

EDIT: I see you're supposed to save and reload when  you turn off Yanfly scripts it appears. Doing that did eventually work, but for some reason whenever Lucius attacked barehanded I got an "undefined" error.

EDIT 2: If you have your script above Yanfly's own it works perfectly! But there is one rather large bug... if you equip barehanded the system will crash with an "Undefined category" there seems to be no exception in your script for barehanded.
Oh yeah, I forgot barehanded was a thing. I'll fix that right away.

Ok, so there are so many different dependancies in the DB...  The staff did not have a SV Attack Motion defined in the System tab of the database.  Upon creating one, this plugin now works appropriately.

I really wish I knew more about how this is supposed to work.  Regardless of the WeaponMotion I use, it seems the character does the same thing, and the weapon does the same thing.  I've tried swing, thrust, and skill.  However, in looking t the code itself, I see a if elseif statement that shows the thrust, swing, and missle animation types ;listed in the SV Attack Animations field in the SYstem tab, but I don;t see skill listed anywhere.

What could be beneficial is a sample game showing the different types in use, something we could look at and study.  Should be simple, but something just looks and feels a bit off using this.
skill isn't listed anywhere in the database. The plugin uses its own method for defining attack animations to allow you to use whatever you see fit. You can even use dead, if you want.

thrust, swing, and missle are MV's default animations, and the elseif is for when the weapon doesn't take advantage of the plugin's notetags.

Oh yeah...I forgot to have it still show a weapon when there isn't an SV motion image defined in the Systems tab for the weapon's Type. I'll have to fix that.

I'm planning on making a demo, but I wanted to get this out there first to see what bugs show up and see what I missed/forgot.

How would one apply a different sound effect for the new weapons?
I'm not sure what you're asking here. Do you mean the equip sound effect? animation's sound?
its working for me, just need a way to be able to adjust the position of the weapon again.
Alright, now it's working great even with Yanfly's script. Fantastic work, once again!
can we use this to use icons as weapons in the side view battle system again like all the side views from Ace?
you just have to copy paste your icon into a new sheet with the right format - see this thread for information. shouldn't take more than 2 minutes to setup a weapon.

its working for me, just need a way to be able to adjust the position of the weapon again.
in the sprite sheet, just move around the weapons. for example i fixed the bows position with shifting it 8 pixels to the left in the sprite sheet.
I suppose I mean, if I make a book weapon, that floats and pages flip for a magic attack, I would want a page flipping sound effect to go with it, or a laser Pew Pew sound for my laser, or a guitar riff for a guitar weapon.
How would one apply a different sound effect for the new weapons?
I'm not sure what you're asking here. Do you mean the equip sound effect? animation's sound?
Another Example would be, for instance a harp, make a strumming noise as the weapon would "swing"(like a bow), instead of the default swinging and impact noises.
you can use yanfly's action sequence plugins for changing the sound or play animation chains ( i.e. anim1 weapon shoot (has shoot soundfx in it), anim2 weapon hit )
Great script.

So the idea is that this will eventually accommodate larger image sizes?

My actors are twice the regular size, so naturally to make weapons large enough to fit them I will need to double the size of the weapon template as well. I thought that MV would natively support this (you can upscale everything else) but it does not.
I... I love you for releasing this so soon!!!!!!!!!!!!!!!!!!!!!!! YAY!
I suppose I mean, if I make a book weapon, that floats and pages flip for a magic attack, I would want a page flipping sound effect to go with it, or a laser Pew Pew sound for my laser, or a guitar riff for a guitar weapon.
So basically, play a sound whenever you swing the weapon?

Yeah, I could do that.

Great script.

So the idea is that this will eventually accommodate larger image sizes?

My actors are twice the regular size, so naturally to make weapons large enough to fit them I will need to double the size of the weapon template as well. I thought that MV would natively support this (you can upscale everything else) but it does not.
That's the plan, yeah. I haven't got it working just yet, but eventually it'll be able to support whatever size you need.

Alright, now it's working great even with Yanfly's script. Fantastic work, once again!
That's great to hear! I figured that removing the unecessary function would help with a lot of incompatibilities with other plugins, glad to see I was right.

its working for me, just need a way to be able to adjust the position of the weapon again.
I'll see what I can do.
Weapon Size works wonders — thank you!

For some reason, though, the weapon is about half a frame out of time with the battler's animation. I suppose it has something to do with Yanfly Core/Battle, but I can't figure out what. Maybe I've just done something wrong.

2rDDPtE.gif
For the WeaponOffset, where are you considering the point of origin in the image? This will help in determining the offset... As in is it the upper left, bottom right, center?

Original thread: https://forums.rpgmakerweb.com/threads/weapon-sprites-enhanced.47689/