Skills through Weapons

I know you can have skills become available when a certain weapon is equipped, but I am trying to have a  certain skill appear when 2 weapons are equipped.

I thought of using a common event with conditional branches and placed that common event in the skill. But when I put the skill on the weapons, it is shown and is available to use as a skill with only one of the weapons equipped. EDIT: I forgot to mention, I'm pretty sure this doesn't work because the skill is already imbued on the weapon, which basically over rides the common event that is on the skill because the skill is already active. If that makes sense to anyone lol. Also, I haven't tried adding the skill to the Class yet because I wanted it to appear when holding one of the 2 weapons, then you can see the description of the skill which lets you know you need the 2 weapons to be able to activate the skill. One more thing, it is an in-battle attack skill, in case that makes a difference.

Now I have only battle tested it through the database menu, so if that somehow works a little different from the actual game, should I try it out in the game? Is there a way to do what I want without a script and I'm just missing it?

Thanks for the help!
When you're testing thru battletest, make sure you save the project first before doing so as battletest uses the last saved data not the current data.


Anyway, Common events in a skill is run when you used that skill so you can't use that as a condition to have that skill in a normal setting.


A non-scripted way would be a parallel process common event which checks if the two weapons are equipped, if yes add the skill if not remove it. But if you don't have Hime's Scene Interpreter that means you first need to go to the map in order for that common event to be processed so that the skill will be added so it probably won't show in battletest, so using Hime's scene interpreter is advisable if you go this route.


Another script way would be to get something like Hime's Equip Event and tag both of those equips to run a common event which checks if both are equipped, if yes add skill, if not remove skill. Also make sure the unequip also runs that common event. Or you could use my Equip Extension which does the same thing but rather than common events, it uses RGSS3 lines.
This suggestion involves a script but... You could also install Yanfly's Skill Restrictions and check for the weapon's names?

<restrict eval>

!$game_actors[id].equips[0].name.include?("Weapon 1") or !$game_actors[id].equips[1].name.include?("Weapon 2")</restrict eval>

That way, you can add the skill by weapon normally, but it won't be usable unless you have both of the above weapons equip.

I haven't tested this, so it's probably not the correct syntax...
Thanks to Engr. Adiktuzmiko and Rinobi. You both have confirmed exactly what I was thinking. I will have to hold onto my weapon idea until my next game (where I'm going to be experimenting with Scripts and other things). 

Thanks alot, will mark this as solved.

Original thread: https://forums.rpgmakerweb.com/threads/skills-through-weapons.44721/