Using Yanfly Augments to Rename Weapons and use new Images

Hey there, so I'm using Yanfly's attachable augments and Weapon Animation plug ins and while I was renaming the weapons, I was wondering if there was a way I could also change the in game sprite of the weapon to one of Yanfly's pre-existing weapon freebies. The idea came to me when I saw that with Attachable Augments I could change Item names, and when I saw that, I wondered if I could have the item, when it has a new name, be treated as an existing item that could change its weapon image in game.


For example;


Sword 0001 Uses the default Sword image


Fire Sword 0005 uses Yanfly's 'Sword Red' image.


If I attached an item called 'Fire Coating' to 'Sword' using Attachable Augments and changed the name of the base 'Sword' to 'Fire Sword', could I have the game treat the sword as 'Fire Sword' for the sake of Stats and the changed image? 


And if I can, how do I go about doing that? 
I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
Yanfly actually provided code to do this in one of there Tips and Tricks a while ago.


http://yanfly.moe/2016/05/25/tips-tricks-animation-augments-rpg-maker-mv/


You can set the icon using


icon = [Index];


You can change the weapon image using


item.weaponImageIndex = '

How to upload the image to the forums

Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).

Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

Very sorry! I'm new to the area and still gaining my ground on what to post where. Thank you for moving this and apologies again for posting in the wrong location.

Yanfly actually provided code to do this in one of there Tips and Tricks a while ago.


http://yanfly.moe/2016/05/25/tips-tricks-animation-augments-rpg-maker-mv/


You can set the icon using



icon = [Index];


You can change the weapon image using



item.weaponImageIndex = '

How to upload the image to the forums

Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).

Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

How to upload the image to the forums

Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).

Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

Original thread: https://forums.rpgmakerweb.com/threads/using-yanfly-augments-to-rename-weapons-and-use-new-images.72708/