Before explaining my problem, I think it is better to context the mechanics in my game. I am using RPG Maker VX Ace, of course.
In my game skills are not acquired by leveling up: instead they are all bounds to piece of equipment (weapons, armors, etc...). An actor has and can use a skill as long as he is equipping the piece of gear that provides it. This is handled really well by RPG Maker, since every item comes with the "Add Skill" feature.
Now, among active, usable-in-battle skills, gear provides "passive skills" that I want to use to make checks around the game when needed. For example, an accessory can provide the "Improved Dodge" passive skill: if an actor with that skill uses the "Dodge" skill, the game handles what happens differently (for istance, using HIME's Conditional Effects I could make "Dodge" applying different type of "dodge statuses" based on conditionals).
The problem comes with the fact that AFAIK for RPG Maker a skill is "learned" only when the actor gets it by levelling up, as a class feature. If I create an accessory that "Add Skill" -> "Dodge", a Conditional Branch "If Actor has Dodge learned" will always return FALSE.
Considering that my entire skill engine revolved around checking for skills, this is forcing me to find a solution or scrap everything and move the check to statuses (using scripts like Yanfly's Passive State). I don't like the latter, I prefer working with dummy skills to use as arguments to check conditionals.
I am a complete noob when comes to scripting, but I am sure that it should exist a script call that returns TRUE or FALSE if an actor HAS a skill, that is different that having that skill LEARNED.
On a side note, I tried using Neon Black's Passive Skill to entirely skip certain checks and sanitize the workflow of my game, but I completely gave up trying to make it works with Yanfly's stuff (especially Lunatic Engine). Any ideas? I could get rid of it if I could be able to replicate Lunatic damage effects and other effects like element absorbiption, etc. Maybe I could do that with HIME's scripts? If yes, I failed to see how.
Thanks everyone.
In my game skills are not acquired by leveling up: instead they are all bounds to piece of equipment (weapons, armors, etc...). An actor has and can use a skill as long as he is equipping the piece of gear that provides it. This is handled really well by RPG Maker, since every item comes with the "Add Skill" feature.
Now, among active, usable-in-battle skills, gear provides "passive skills" that I want to use to make checks around the game when needed. For example, an accessory can provide the "Improved Dodge" passive skill: if an actor with that skill uses the "Dodge" skill, the game handles what happens differently (for istance, using HIME's Conditional Effects I could make "Dodge" applying different type of "dodge statuses" based on conditionals).
The problem comes with the fact that AFAIK for RPG Maker a skill is "learned" only when the actor gets it by levelling up, as a class feature. If I create an accessory that "Add Skill" -> "Dodge", a Conditional Branch "If Actor has Dodge learned" will always return FALSE.
Considering that my entire skill engine revolved around checking for skills, this is forcing me to find a solution or scrap everything and move the check to statuses (using scripts like Yanfly's Passive State). I don't like the latter, I prefer working with dummy skills to use as arguments to check conditionals.
I am a complete noob when comes to scripting, but I am sure that it should exist a script call that returns TRUE or FALSE if an actor HAS a skill, that is different that having that skill LEARNED.
On a side note, I tried using Neon Black's Passive Skill to entirely skip certain checks and sanitize the workflow of my game, but I completely gave up trying to make it works with Yanfly's stuff (especially Lunatic Engine). Any ideas? I could get rid of it if I could be able to replicate Lunatic damage effects and other effects like element absorbiption, etc. Maybe I could do that with HIME's scripts? If yes, I failed to see how.
Thanks everyone.