Hello! I'm using yanfly's engines "weapon animation" and "attachable augments". Is there any way to change the weapon shown in the battle depending on what weapon and what augment is in it? I've seen "tips & tricks animation augments" but as my English is not good enogh and my scripting abilities are inexistent... Could you help me? The plugins works fine. However, when I tried to copy and paste his code in the item that augment the weapon to change the weapon image shown in battle, it didn't work:
<Augment Attach Eval: Glyph> <<<==== Here changing Glyph for the word I use (in my case "Hueco"
if (DataManager.isWeapon(item)) {
var icon;
if (item.wtypeId === 2) { <<<=== In my case, I'm trying to test it with a sword, wich is weapon type 2
icon = 3; <<== I don't care about the icon because is only a test, so I chose 3
item.weaponImageIndex = 'infernalardiente'; <<< I don't know what goes here, I wrote infernalardiente because is the image name I want for battle. I put the PNG image in the weapon's folder
the same way I do when I want to change a weapon's image without
augments (and it works fine without augments). I also tried to put the image
in the system folder, but didn't work.
item.weaponAttackMotion = 'swing';
item.animationId = 7; <<<=== I don't know what is it
ItemManager.applyAugmentSetIcon(item, icon, slotId, true);
}
</Augment Attach Eval: Hueco>
Anyway, I think this won't work for me because I want to change the weapon image in battle deppending on the weapon and augment used, not the type of weapon. Something like: if weapon X + Augment X = change image weapon to Y.
Any idea?
Thanks for your help and patience with me xD
Change weapon image depending on augments
● ARCHIVED · READ-ONLY