Final Fantasy XIV's DoubleCast (Yanfly's FFV Dualcast)

Hello beautiful people!

Here I am trying to somehow tweak Yanfly's FFV dualcast to make it work as the FFXIV (if possible).
If you have a better way to do it i'd like to hear it.

For those unfamiliar with how the FFXIV version works, I'll explain:

  • You cast some random magic, it doesn't matter which. Whatever the magic you cast it gives you the state "Dualcast".
  • You cast another random magic, whichever you cast this time, it gets repeated.
  • You loose the "Dualcast" state now.
So basically you doublecast every two spells.


The problem with Yanfly's plugin is the following:

In order to gain a State when actioning an ability, this is what my formula for a random spell looks like.

upload_2019-9-26_22-46-44.png


Where State(68) is, of course, the double cast state.

Thing is, even if I write a line on Yanfly's plugin in order to remove that said state, when the double cast actually happens, the state gets regained. Why? Because, obviously, is written on the formula of the spell that is getting repeated.

So i'm guessing it has to be another way around for all this mess, probably with variables.

Something like making that a series of skill.ids only give the said state every 3 times. That way you won't never get the state when you are on "dualcast".

Unfortunately, I know nothing about how variables are programmed.. so if anyone can help, I'd appreciate.

Thanks in advance!
Try this?
if (a.isStateAffected(68)) a.removeState(68); a.addState(68); a.mdf*1.1
Hi, thanks for your reply!

Unfortunately, that didnt work.

The effect created here was the skill granting the state just to remove it immediately after.

We need the state to stay the first time the skill is used in order to be able to dualcast on the next turn.
The state should disappear only after the second time the skill is used.
You might be able to do this with some additional database work.

You'll need 2 versions of every spell you want dualcast to work with. The original version which applies the dualcast state, and a second version which is only available when under the dualcast state, which will also remove the dualcast state.

EX: Fire is cast and adds dualcast state. While under dualcast, normal casts are hidden and only dual cast spells become available.

If you're willing to wait a day or two, I'll actually add this to my list of action sequences and do most of the leg work you.
Hello!

Thank you for your time replying to this!

Yes, yes! That is exactly what I’ve done to make it work.

Nothing much to add to it actually.

You have described it perfectly.

I’m going to post a link so you and others can see.
Glad it worked for you.

Original thread: https://forums.rpgmakerweb.com/threads/final-fantasy-xivs-doublecast-yanflys-ffv-dualcast.113681/