Drawing/Sheathing Weapon

Not to long ago I saw a post on Celianna's "Game and Map screenshot 7"  forum which showed a character holding a sword. I immediately liked the concept of having the player hold a weapon, because well you have them in battle, you find them in chests, mob loot, and can but them from stores so why wouldn't you be able to see it on the actors body? Although there seemed to be next to nothing addressing this. 







So if you are like me and want to see this implemented into your game, I came up with a solution


(and please if there is a plugin/script I am unaware of please tell me because it would make this process a lot easier).


Disclaimer: This technique requires a lot of time and editing and can take a lot of time for people who want multiple characters to have this feature.


Requires: An image editing software, and RPG Maker of course.






Take the sprite you want to edit and open it in your image editing software (eg: Photoshop, Gimp, ect.)


Make a sword sprite and simply edit it in to make your char look like he/she is holding it. I'm not great at pixel art so for me it took a while but here is the finished actor sprite


sword sprite example.png*Make sure that you edit the sword to sway back and forth as it would in real life.


Now that you have made the sprite its pretty self explanatory from here on out, if this is as far as you want to go.


Basically just import into your game and play. This wasn't enough for me though as I wanted to the player to choose whether or not the char drew his/her sword. 


To do this what you'll need to do is get the plugin YEP_ButtonCommonEvents from here


You can watch the tutorial on the website for a full overview on what this plugin does, but, basically all you'll need to do is assign a button to trigger a common event that looks like this:Untitled-2.png


The first command can be found on page three under system settings, what this does is just change the actor sprite and face. Set it to change to your sword sprite.


The second command is just the sound of a sword, to make it a little less bland, this is unneeded of course


After you have done that, go back to your plugins and assign a button to a second common event page which looks like this:Untitled-3.png


The first command is the same as in the last picture except this time make it change your actor to the same sprite except without a sword (Your base sprite)


The second command is the equip sound at a lower pitch, which sounds like a sword being sheathed 


This small addition can add so much more to your game, and if worked on can add some new unique features.


Please if there is anyone out there with a simpler version, or if anyone knows how this can be done one one button, or if this can be done without the plugin, please let me know.


But so far, for me at least this is the most convenient way. 


I hoped this inspired and/or helped someone in anyway possible. And sorry for any mistakes I've made, this is my first topic I have made


so be gentle. 😀




-Nc02

Original thread: https://forums.rpgmakerweb.com/threads/drawing-sheathing-weapon.55847/