Once more, I have returned with yet another mechanic on my to-do list: Spellsteal.
(Edit: I May have forgotten to write a reminder of which plugins I am using. I have purchased the full collection of the Yanfly Engine.)
By definition, "Spellsteal" Involves the act of "Stealing a Spell"-or in simpler words, "Taking a Spell from someone for yourself". It has been done in many variants, in many different franchises-but I would dare say the most notorious ones hail from Dungeons&Dragons and World of Warcraft; The both of which, I am attempting to replicate to some extent. (And miraculously succeeded to replicate one of the two, awkwardly enough.)
Now, Yanfly does have a Tips&Tricks page on yanfly.moe that performs Spellstealing to an extent: Spell Siphon. To prevent frustrations with the Blue Mage I am working on, I am using Spell Siphoning already(No Shenaniganry à la FFVI. No Sketch/Control.) but that is simply not enough for a completely different character. My intention is to allow said character to perform Spellstealing in both of its Dungeons&Dragons and World of Warcraft Variants, so allow me to describe how each Variant works. (And how I replicated one of the two Spellsteal Variants, for anyone wondering how that was possible.)
Dungeons&Dragons:
An Arcane Trickster Rogue can utilise this feature to intercept a Spell being cast that would target the Rogue or include them in its Area of Effect. When successful, the Spell's Effects are completely negated for the Rogue and the Caster is prevented from being able to cast that same spell-by virtue of its knowledge being transferred from the Caster to the Rogue, who is then able to utilise the Spell as though it were their own. This effect, however, is not permanent, and the Rogue cannot utilise this feature more than once per Long Rest. (For those unfamiliar with Dungeons&Dragons, one Long Rest has a minimum duration of eight hours.)
Through the Spell Siphon Tips&Tricks, this can be achieved. However, I would like for the Spell being Stolen to be sealed for as long as the effect is in place, and for said Spell to be lost once the effect expires. Sealing Skills through the Database is easy-sealing them through a reference from a different Skill, this I am not certain as to "How" to do. Adding them through a state, perhaps, may be easier... This I know not.
World of Warcraft:
This Variant of Spellstealing is much more different, and is available only to the Arcane Specialization of the Mage Class.
In simpler words, this variant of Spellsteal targets only certain Beneficial Effects, removes them from the Target and Grants the Caster that same Effect with either a duration equal to its current, or two minutes if the current duration happened to be longer than that.
This specific Variant was strangely easier done than said, for Yanfly's Spell Siphon is so versatile, you may more than modify it to include a variety of other effects instead of simply "Stealing" Skills. The Notetags I have used for this specific variant are as follows. (Yell at me if something about this code is odd or could have potentially been better-implemented.)
Knowing the default behavior for States being applied(Or Re-Applied) is to Reset the Duration, I find the latter part of Spellsteal slightly redundant, and as such, I have found to need no further action on that front.
My only conundrum remains the former: How to reference the Skill being stolen in the earlier variant so that a state may add it, and remove it when the effect of Spellsteal expires and seal the target's through a different state.
Thank you for taking a few minutes of your time to read one more of my Game Development conundrums. I appreciate it as well as any assistance given.
~Noel Ardiens
(Edit: I May have forgotten to write a reminder of which plugins I am using. I have purchased the full collection of the Yanfly Engine.)
By definition, "Spellsteal" Involves the act of "Stealing a Spell"-or in simpler words, "Taking a Spell from someone for yourself". It has been done in many variants, in many different franchises-but I would dare say the most notorious ones hail from Dungeons&Dragons and World of Warcraft; The both of which, I am attempting to replicate to some extent. (And miraculously succeeded to replicate one of the two, awkwardly enough.)
Now, Yanfly does have a Tips&Tricks page on yanfly.moe that performs Spellstealing to an extent: Spell Siphon. To prevent frustrations with the Blue Mage I am working on, I am using Spell Siphoning already(No Shenaniganry à la FFVI. No Sketch/Control.) but that is simply not enough for a completely different character. My intention is to allow said character to perform Spellstealing in both of its Dungeons&Dragons and World of Warcraft Variants, so allow me to describe how each Variant works. (And how I replicated one of the two Spellsteal Variants, for anyone wondering how that was possible.)
Dungeons&Dragons:
An Arcane Trickster Rogue can utilise this feature to intercept a Spell being cast that would target the Rogue or include them in its Area of Effect. When successful, the Spell's Effects are completely negated for the Rogue and the Caster is prevented from being able to cast that same spell-by virtue of its knowledge being transferred from the Caster to the Rogue, who is then able to utilise the Spell as though it were their own. This effect, however, is not permanent, and the Rogue cannot utilise this feature more than once per Long Rest. (For those unfamiliar with Dungeons&Dragons, one Long Rest has a minimum duration of eight hours.)
Through the Spell Siphon Tips&Tricks, this can be achieved. However, I would like for the Spell being Stolen to be sealed for as long as the effect is in place, and for said Spell to be lost once the effect expires. Sealing Skills through the Database is easy-sealing them through a reference from a different Skill, this I am not certain as to "How" to do. Adding them through a state, perhaps, may be easier... This I know not.
World of Warcraft:
This Variant of Spellstealing is much more different, and is available only to the Arcane Specialization of the Mage Class.
In simpler words, this variant of Spellsteal targets only certain Beneficial Effects, removes them from the Target and Grants the Caster that same Effect with either a duration equal to its current, or two minutes if the current duration happened to be longer than that.
This specific Variant was strangely easier done than said, for Yanfly's Spell Siphon is so versatile, you may more than modify it to include a variety of other effects instead of simply "Stealing" Skills. The Notetags I have used for this specific variant are as follows. (Yell at me if something about this code is odd or could have potentially been better-implemented.)
JavaScript:
<Before Eval>
if (user.isActor()) {
var stealable = [];
stealable.push(17, 18, 19, 21);
var states = target.states();
for (var i = 0; i < states.length; ++i) {
var state = states[i];
if (state && stealable.contains(state.id)) {
user.addState(state.id);
target.removeState(state.id);
user.startAnimation(53);
}
}
}
</Before Eval>
Knowing the default behavior for States being applied(Or Re-Applied) is to Reset the Duration, I find the latter part of Spellsteal slightly redundant, and as such, I have found to need no further action on that front.
My only conundrum remains the former: How to reference the Skill being stolen in the earlier variant so that a state may add it, and remove it when the effect of Spellsteal expires and seal the target's through a different state.
Thank you for taking a few minutes of your time to read one more of my Game Development conundrums. I appreciate it as well as any assistance given.
~Noel Ardiens