I'm back with another question about the Dualcast code. I've tried using it with the ATB system recently, and run into an interesting... bug? Feature? I don't know.
For starters, there are some times where it just doesn't seem to activate. A battler casts a spell and it only triggers once instead of twice. Not a hundred percent sure why, but it seems like this happens if the last skill used wouldn't have triggered Dualcast (use a Physical skill then a Magical skill). I've also had it happen for seemingly no reason, but it seems to happen if the spell is used on the character's first turn of combat.
When it does trigger properly is when the problem really starts. After doing the standard dualcasting, it places the actor at 100% charge, meaning they can immediately select another skill. If you pick a different skill, no issue. They go back to the beginning of the charge state and things go back to normal. But if they pick the skill that was just dualcast, it'll be dualcast again, putting them back at 100% charge. This lets them chain dualcasts and deal damage at a faster rate than normal as long as they just spam the same spell.
Normally the duration of the state would be a minor fix to the problem, along with maybe a cooldown on the skill, but I'm trying to make a passive state version of dualcast that's always active. I can't be having this problem for a version of dualcast that's always active.
Any ideas why Dualcast is acting this way in ATB? If all else fails I can swap to a different battle system, since the problem seems exclusive to ATB.
Edit: I found a solution for the chaining Dualcasts. Putting the ATB After Guage notetag at 0% on the skill solves that problem. Still no idea what's causing the effect to sometimes not trigger, though.
For starters, there are some times where it just doesn't seem to activate. A battler casts a spell and it only triggers once instead of twice. Not a hundred percent sure why, but it seems like this happens if the last skill used wouldn't have triggered Dualcast (use a Physical skill then a Magical skill). I've also had it happen for seemingly no reason, but it seems to happen if the spell is used on the character's first turn of combat.
When it does trigger properly is when the problem really starts. After doing the standard dualcasting, it places the actor at 100% charge, meaning they can immediately select another skill. If you pick a different skill, no issue. They go back to the beginning of the charge state and things go back to normal. But if they pick the skill that was just dualcast, it'll be dualcast again, putting them back at 100% charge. This lets them chain dualcasts and deal damage at a faster rate than normal as long as they just spam the same spell.
Normally the duration of the state would be a minor fix to the problem, along with maybe a cooldown on the skill, but I'm trying to make a passive state version of dualcast that's always active. I can't be having this problem for a version of dualcast that's always active.
Any ideas why Dualcast is acting this way in ATB? If all else fails I can swap to a different battle system, since the problem seems exclusive to ATB.
Edit: I found a solution for the chaining Dualcasts. Putting the ATB After Guage notetag at 0% on the skill solves that problem. Still no idea what's causing the effect to sometimes not trigger, though.