Hello everyone, I'm trying to make a system in my game to where the player can equip both a Melee weapon and a Firearm. Then, when the player is in combat, they can choose to Attack with their Melee weapon or shoot their gun, Kind of like Persona 1. I asked this question before in the Plugin Request and got something that worked by using Yanfly- Weapon unleashed to replace guarding and using a bunch of workarounds. But i feel like there is a simpler way to do this by just altering the games code or codding it myself. Can I alter the games JavaScript code(or add a new code) to add the option to equip guns only and add a second option to the attack menu which lets the player shoot the equipped gun?
MV How to add second weapon equip and second attack option?
Learning JavascriptI'm confused by your question.
If you're equipping guns only, then what's the second option? Wouldn't it just be attack with the equipped guns?
Sorry, i mean i want the player to have a second option to attack with the guns equipped to their off hand. There will still be an option to attack, but its only with the weapon in the actors main hand like a knife.
Doesn't your first post say you have a way to do this with Yanfly's Weapon Unleash? Using a plugin that someone else wrote is the easy way.
Why do you want to stop using something that works and write your own plugin? What do you want it to do that you can't do now?
For practice mostly, im taking a JavaScript Class and wanted to know if there was a way to implement everything i have now by messing with the code a bit. Like how hard would it be to just code that into the game by itself without using plugins?
You seem to have a misunderstanding - that's what a plugin is. You don't "code something in to the game by itself," plugins are just files that contain JavaScript code which replaces or adds to what's in the base engine.
So what you're asking is how difficult it is to write your own plugin to do it. And that depends on your understanding and skill level...if you're just taking a beginner JavaScript class now, and you haven't coded before, I think reading your way through MV's code to figure this out and write your own version of Yanfly's Weapon Unleash or Himework's Battle Command Use Skill would be a pretty difficult task.
You can certainly do it for the practice and learning, but in terms of efficiency there's no reason to do so when there are existing options for you. (in which case I'm still a little unsure what your original question was...since there are already plugins that do it, obviously it's possible for you to do it 😛 )
action sequences can change weapon spite cant it?
i have ramza dual wield which completely seperates main/off-hand weapon sprites, potencies and allowed equipment for each hand.
(also fixes the whole "want to be able to switch from 2H, S/S, 1H or Dual at any time" and dual 2H weapons issues.)(can also make some shields ignore 2H which can be good for quivers/sword grips and arm bracer type shields)
i have ramza dual wield which completely seperates main/off-hand weapon sprites, potencies and allowed equipment for each hand.
(also fixes the whole "want to be able to switch from 2H, S/S, 1H or Dual at any time" and dual 2H weapons issues.)(can also make some shields ignore 2H which can be good for quivers/sword grips and arm bracer type shields)
Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-second-weapon-equip-and-second-attack-option.141094/