I wanted to utilize some of script calls (actor.equipSkill(id, slot)) of Equip Battle Skills plugin, which on it's own does work, but it doesn't really seems to work. Skill supposed to directly add that skill to actor skill menu (actor has 5, so it's sixth, because it can work that way), but currently it does nothing. So I wonder if I done something wrong, or do Fossil doesn't support script calls
MZ Fossil doesn't support MV script calls? (Equip Battle Skills)
Javascript/Plugin Support"actor" here is a placeholder, same as ID and slot - of course you need to tell the command which actor to equip the skill to...
I tried something like that: actor(1).equipSkill(331, 6)
Didn't worked. I also tried to replace 1 with 2 (maybe it's actor ID), but it also didn't worked out. And I didn't found mentions on what to put there instead of actor. Any ideas?
I feel that you've been given this reference before, but there is a pinned thread of MZ script calls.
You need to replace "actor" with a reference to an actor.
Exactly what you do is dependent on your situation and what you're trying to accomplish. You can find the syntax for referencing a specific member of the current party. You can find it for referencing a specific actor ID. You can get it for the last actor to do stuff in combat.
Look it up, try something, and if you can't get it to work post what you tried along with a description of what you want to happen.
You need to replace "actor" with a reference to an actor.
Exactly what you do is dependent on your situation and what you're trying to accomplish. You can find the syntax for referencing a specific member of the current party. You can find it for referencing a specific actor ID. You can get it for the last actor to do stuff in combat.
Look it up, try something, and if you can't get it to work post what you tried along with a description of what you want to happen.
There is a pi8nned topic about the script equivalents to all event commands and other data.
Please look there for the correct syntax.
Please look there for the correct syntax.
$gameActors.actor(2).equipSkill(331, 6)
Okay, I tried that, and still nothing. I also tried $gameParty.members()[1].equipSkill(331, 6), but still nothing. Even with different numbers.
Okay, those are correct.
I dunno what to tell you - that's the same function that's referenced internally by the plugin when you equip skills. So if you're able to equip them from the menu, I don't see a reason you wouldn't be able to do so via that code.
Is there a reason you're mixing VisuStella plugins with Yanfly + Project FOSSIL? There's a VisuStella version of this plugin...I would personally expect some screwy things to happen with that setup.
I dunno what to tell you - that's the same function that's referenced internally by the plugin when you equip skills. So if you're able to equip them from the menu, I don't see a reason you wouldn't be able to do so via that code.
Is there a reason you're mixing VisuStella plugins with Yanfly + Project FOSSIL? There's a VisuStella version of this plugin...I would personally expect some screwy things to happen with that setup.
Well, that's it then I guess. In that case I might offer some alternative to people, that might look for a way to add additional skills under certain circumstances while being compatible with Yanfly Equip Skill.
Through Battle Core Actor Command Window setting, you can setup different Skill Types to be displayed (make sure actors doesn't know them, so they don't show on regular basis), and then through separate state cause actor to learn that skill type in battle, or something. Works pretty fine, if you want some battles to add "battle unique" skills
Original thread: https://forums.rpgmakerweb.com/threads/fossil-doesnt-support-mv-script-calls-equip-battle-skills.163868/