I got into VisuStella's sample game recently and have been sorta just playing around with all the different plugins included in it so far. I noticed that with their sample game the monk/brawler character seems to do the whole, "monk attacks twice," thing that FF2 had, so I decided to poke around a bit to see how they pulled it off. Turns out they pull it off by just equipping the brawler class in the sample game with an, "unarmed weapon," (specifically a cestus,) that grants the character the ability of attacking twice in one turn (or, "attacking once, + one more time.")
This is cool and all, but for my own personal project I'm trying to get the, "base combat systems," as close to FF2 as possible, where you had a, "right hand," slot and a, "left hand," slot and if you unequipped all weapons and shields from both of those slots then you would attack twice. I read that, with VisuStella's I can use the javascript line <JS Replace Attack> to, well replace attacks, so my idea is to use this functionality to make a skill that replaces the default attack with a basic dual-attack, but only if the engine detects that you don't have anything equiped in your weapon and shield slots, (which I'm currently considering replacing with just two weapon slots renamed as, "left hand," and, "right hand.") But as I'm reading the wiki entry for the unleashed skills plugin I'm starting to get a bit confused. My thinking is that I would write, in the notetags of the basic dual attack skill something like:
<JS Replace Attack>
enabled = !user.weapons().length;
enabled = !user.shield().length;
dual attack = attack
</JS Replace Attack>
But I feel like I could condense this into only 4 lines, instead of 5. What do you guys think, would this be possible? Would my 5-line script even work?
This is cool and all, but for my own personal project I'm trying to get the, "base combat systems," as close to FF2 as possible, where you had a, "right hand," slot and a, "left hand," slot and if you unequipped all weapons and shields from both of those slots then you would attack twice. I read that, with VisuStella's I can use the javascript line <JS Replace Attack> to, well replace attacks, so my idea is to use this functionality to make a skill that replaces the default attack with a basic dual-attack, but only if the engine detects that you don't have anything equiped in your weapon and shield slots, (which I'm currently considering replacing with just two weapon slots renamed as, "left hand," and, "right hand.") But as I'm reading the wiki entry for the unleashed skills plugin I'm starting to get a bit confused. My thinking is that I would write, in the notetags of the basic dual attack skill something like:
<JS Replace Attack>
enabled = !user.weapons().length;
enabled = !user.shield().length;
dual attack = attack
</JS Replace Attack>
But I feel like I could condense this into only 4 lines, instead of 5. What do you guys think, would this be possible? Would my 5-line script even work?