I am curious because I have MDF-based saving throws planned for my first project, and am getting into skills development now, so I have only just begun to try and implement them.
I have a couple of thoughts of my own, but I am running into a few snags.
The first is to adapt this YouTube tutorial on roll-to-hit mechanics, which creates two separate skills (and several separate common events) for ability checks and effects, but as I had discovered prior to posting this older thread, as far as the roll-to-hit example goes, when an enemy is reduced to 0 HP and a new enemy is autotargeted on that turn, the new enemy’s ID comes up as 1 and its Armor Class is either 0 or whatever default AC has been specified.
(Some screenshots from the Roll-to-Hit tutorial.)
That is to say, it works for VisuStella's STB system, where attacks happen one by one, but it won't work in an Active Battle System (or even in the default Turn Based System). In the case of saving throws, this would mean an automatic failed saving throw on the part of an autotargeted creature whenever the player had targeted a creature which was KO’d before the spell could take effect.
Since I decided to use @ATT_Turan's much more elegant custom hit formula plugin, which doesn't seem to be compatible with VS STB, I am back at square one with my initial question in that thread, which was, "How do I make it so that the battle system can check a target variable ... on the fly"? Or more precisely, how do I check the MDF of an autotargeted foe?
@Archeia and @caethyril's Script Calls spreadsheet has the following to say about the matter:
"MZ offers Control Variables > Game Data > Last for some action-related data. This might not update early enough, e.g. target index updates immediately after the action is applied (damage/heal) after the animation."
I have an intuition that this can be handled with VisuStella’s <JS Pre-Damage>, etc. notetags, so if this needs to be moved from MZ Support to Plugin Support on that basis, my apologies.
I understand much more about Troop events now, and the Battle System, but I am still not sure how to proceed. My second thought is to replace MDF with Magic Evasion (MEV), but won't that only work for spell attacks (a different breed from saving throw mechanics)?
I am just thinking very generally about how other users would approach the problem of spells which target one or several targets, which would require the targets to make a saving throw to avoid or mitigate the effects of the spell, such as damage. How would you approach the issue?
I have a couple of thoughts of my own, but I am running into a few snags.
The first is to adapt this YouTube tutorial on roll-to-hit mechanics, which creates two separate skills (and several separate common events) for ability checks and effects, but as I had discovered prior to posting this older thread, as far as the roll-to-hit example goes, when an enemy is reduced to 0 HP and a new enemy is autotargeted on that turn, the new enemy’s ID comes up as 1 and its Armor Class is either 0 or whatever default AC has been specified.
(Some screenshots from the Roll-to-Hit tutorial.)
That is to say, it works for VisuStella's STB system, where attacks happen one by one, but it won't work in an Active Battle System (or even in the default Turn Based System). In the case of saving throws, this would mean an automatic failed saving throw on the part of an autotargeted creature whenever the player had targeted a creature which was KO’d before the spell could take effect.
Since I decided to use @ATT_Turan's much more elegant custom hit formula plugin, which doesn't seem to be compatible with VS STB, I am back at square one with my initial question in that thread, which was, "How do I make it so that the battle system can check a target variable ... on the fly"? Or more precisely, how do I check the MDF of an autotargeted foe?
@Archeia and @caethyril's Script Calls spreadsheet has the following to say about the matter:
"MZ offers Control Variables > Game Data > Last for some action-related data. This might not update early enough, e.g. target index updates immediately after the action is applied (damage/heal) after the animation."
I have an intuition that this can be handled with VisuStella’s <JS Pre-Damage>, etc. notetags, so if this needs to be moved from MZ Support to Plugin Support on that basis, my apologies.
I understand much more about Troop events now, and the Battle System, but I am still not sure how to proceed. My second thought is to replace MDF with Magic Evasion (MEV), but won't that only work for spell attacks (a different breed from saving throw mechanics)?
I am just thinking very generally about how other users would approach the problem of spells which target one or several targets, which would require the targets to make a saving throw to avoid or mitigate the effects of the spell, such as damage. How would you approach the issue?
