Hi all,
maybe I'm complicating this, but I've checked the maker, forums, google, etc., and I can't seem to find a way to do what I want: I'm trying to create a skill that allows the next 3 attacks to completely ignore the target's DEF. My initial thought was to do this with a state, but I wasn't able to find anything that did that there.
How would you go about doing this?
Thanks in advance.
edit: I should add, just for clarity, that this skill would affect the user's next 3 attacks, whatever the attacks may be.
For clarity:
When you say "the next 3 attacks" does that mean the 3 turns subsequent to the turn in which the conditions are created? (I put it as vague as that for the time being.)
That it doesn't matter if the next 3 attacks are physical or magic skills?
That this only applies to the user's attacks and not to attacks from other members of the party?
Yes, the subsequent 3 turns. I have a melee class actor and I'd like him to use this skill, then for the next 3 turns have his attacks ignore his target's defense (though 100% may be too much). This actor doesn't use magic, but does use special attacks. And I'd like him to be able to switch targets and keep the effect until the 3 turns are over. As I said, I thought I could just have the skill apply a state to him, but I didn't see anything that did that (that I know of).
Okay, working through this logically.
You need to create a state which does nothing, but is set to scope "User" and lasts 4 turns i.e. the turn when it is inflicted and the 3 subsequent. for the sake of the example, its ID is 39. This is cast in the first turn.
You need a formula which will have to go into the damage formula box for every skill for that actor. That formula will check if the state is present, and if it is then it will do one damage formula. If it is not, then it will do the normal one.
if a.state?(39); damage formula 1; else; damage formula 2; end
so for example
if a.state?(39); a.atk * 4; else; a.atk * 4 - b.def * 2; end
EDIT
If you want his ordinary attack to have this as well as his specific skills, then you will have to use something like Vlue's Set Guard/Attack script which enables you to have a different attack from skill #1 (which is the default given to all actors for when you just select 'Attack' from the battle commands).
The only way I can think of to do this would require that actor to use specific skills that are not available to anyone else. That is because the skill's damage formula determines the amount of damage done, including the amount of def substracted.
You'll make a state that does nothing, only as a marker that lasts three turns.
And then in every skill that the actor can use, you enter an if sequence checking for that state into the damage formula.
If that state is on the actor, the formula is used without b.def substracting, if that state is not present the formula substracts b.def with whatever a multiplicator.
EDIT: ninja'd
Aha, so I wasn't really complicating things, it's actually just a bit more complicated.
Thanks and herzlichen Dank for the info, guys. I'll try this then.