MV Timed Attacks and Action Sequences on enemy

Hi ! I hope this is the right channel to post that ^^'

It's been a while that I've been using and messing with the SRD's Timed attacks pluggins and Yanfly Action sequences pluggin but I found myself struggling to do one thing with them.

What I want to do is that when an enemy attacks a character, a timed attack pops, if it's fail, the character takes full damage and if it's win, the character takes less or zero damage.

I tried a lot of things but I really can't do it and don't know what I'm supposed to do ^^'

I tried :
- Making a common event with the "force skill" inside, making the player "hurt themself" to emulate the enemy attacking them but the Common event plays 2 times when doing that, I saw that it might be a feature of Yanfly's action sequences ?
- Using a script like this one : BattleManager._action.setSkill(3); instead of the "Force skill" but it doesn't work (Timed attacks doesn't happen)
- Using the skill ID call in my action sequence like SRD's help file suggest but it doesn't show the Timed attack neither (Only the skill's effects and animation)
- Using SRD's sequence input pluggin. I see how it can be useful because now I can fight back the enemy when pressing a button but still, the Timed attack doesn't show.

I have the feeling it might be because the SRD Timed attack pluggin is only meant to work when a character attacks and not an enemy but I really want to use this mechanic and I'm a little lost on how to do it.


Any suggestion about how to achieve that ? (Maybe there's a similar pluggin that only plays when the enemy attacks but I looked for one of this kind and didn't find it)


(Sorry for the spelling mistakes, english is not my first language)
It's hard to tell you what might be wrong when you don't show any of the action sequences that you tried. Also, please provide links to the plugins you're asking about so people helping you can read the instructions.

Are you using the plugin to give action sequence commands for timed attacks?

And then using the Timed Attack command?

Trying to turn enemy attacks into actor skills via force action is...really convoluted.
I'm using http://sumrndm.site/sequence-input/ for my timed inputs. The way it works is that you start a "timer" with the action sequence command provided by this plugin. It'll count up a variable every frame while your action sequence keeps going, until you use the end sequence input command. After that you can use a conditional branch in your sequence to determine whether or not the player has hit the button during the time window.

So you'd go like:

start sequence input: "button to press", "Variable ID"
Stuff
Stuff
Stuff
end sequence input
if $gameVariables.value(x) > y
block (You can either just have no action effect here, so no damage or effect will take place. If you still want chip damage, you can finaggle something in the damage formula, or go other routes)
else
take damage

So let's say your enemy is dashing towards the player, it takes 15 frames. You'd go and do something like:
move user: target, front, 15
wait: 10
start sequence input: "button to press", "Variable ID"
wait: 5
motion swing: user
wait: 12
end sequence input
if $gameVariables.value(x) > 5
block
else
take damage

this would make it so the "timer" starts mid enemy dash, and the condition for the variable having to be higher than 5 means the player can't just button mash. Of course this is just a very rough outline, but that's how I'm using it.

Here's an example. When the player hits the button during the flash of the character, a second hit will occur, else the combo stops:
1734535858821.gif
It's hard to tell you what might be wrong when you don't show any of the action sequences that you tried. Also, please provide links to the plugins you're asking about so people helping you can read the instructions.

Are you using the plugin to give action sequence commands for timed attacks?

And then using the Timed Attack command?

Trying to turn enemy attacks into actor skills via force action is...really convoluted.
Okay sorry I didn't give enough details at all TT

So I'm using
- Yanfly Battle Engine Core (And the three actions sequences packs) http://www.yanfly.moe/wiki/Battle_Engine_Core_(YEP)
- SRD Timed attack Core http://sumrndm.site/timed-attack-core/#comment-65568
- SRD Times attack : Action sequences http://sumrndm.site/timed-attack-action-sequences/
- SRD Sequence input http://sumrndm.site/sequence-input/

At first, I though I could simply implement a Timed attack whithin an enemy action sequence skill like that :

<Use Timed Attack Action Sequences>
<Timed attack : default>

<target action>
start sequence input: ok, 1
move user: target, front, 30
wait for movement
end sequence input

motion swing: user
perform action
motion wait: user



if $gameVariables.value(1) < 25
action animation: target
wait for animation
action effect: target
death break
else
timed attack
motion swing: target
perform action
motion wait: target
action animation: user
wait for animation
action effect: user
death break
end

wait: 8
</target action>
<End timed attack>



I'm using the SRD sequence input to give the player the oportunity to reply to an attack by pressing enter, z or space, then the timed attack should occur, but it doesnt

That's why I though of doing a common event linked to each enemy skills so I could manage the damage it would do to the player as well while being sure the Timed attack append but as I said, with this method it does the timed attack one time (like it's written in the action sequence) then another time at the end of the sequence...And that was my notetag for that :

<target action>
start sequence input: ok, 1
move user: target, front, 30
wait for movement
end sequence input

motion swing: user
perform action
motion wait: user


if $gameVariables.value(1) < 25
action animation: target
wait for animation
action effect: target
death break
else
common event
motion swing: target
perform action
motion wait: target
action animation: user
wait for animation
action effect: user
death break
end

wait: 8
</target action>

With my common event looking like that :
◆If:Parry is OFF
◆Control Switches:#0004 Parry_InProgress = ON
◆Control Variables:#0002 Player_ATK = Attack of Elliot
◆Control Variables:#0004 Enemy_ATK = Attack of #1
◆Force Action:Elliot, Parry, Last Target
◆Control Switches:#0004 Parry = OFF
◆
:End

(I know I messed up the variables, but that was a test to see if the Timed attack could work like that and like I said it doesn't exactly work like intended)

I'm SURE I'm doing something wrong with these pluggins to be honest but I don't really know what ^^'

I'm using http://sumrndm.site/sequence-input/ for my timed inputs. The way it works is that you start a "timer" with the action sequence command provided by this plugin. It'll count up a variable every frame while your action sequence keeps going, until you use the end sequence input command. After that you can use a conditional branch in your sequence to determine whether or not the player has hit the button during the time window.

So you'd go like:

start sequence input: "button to press", "Variable ID"
Stuff
Stuff
Stuff
end sequence input
if $gameVariables.value(x) > y
block (You can either just have no action effect here, so no damage or effect will take place. If you still want chip damage, you can finaggle something in the damage formula, or go other routes)
else
take damage

So let's say your enemy is dashing towards the player, it takes 15 frames. You'd go and do something like:
move user: target, front, 15
wait: 10
start sequence input: "button to press", "Variable ID"
wait: 5
motion swing: user
wait: 12
end sequence input
if $gameVariables.value(x) > 5
block
else
take damage

this would make it so the "timer" starts mid enemy dash, and the condition for the variable having to be higher than 5 means the player can't just button mash. Of course this is just a very rough outline, but that's how I'm using it.

Here's an example. When the player hits the button during the flash of the character, a second hit will occur, else the combo stops:
View attachment 326127
Hi !
Thanks for the explanations !
Though I think I'm already doing something similar to that and...It doesn't really work for me TT
I mean, everything is working except the Timed attack that doesn't occur...I answered to ATT_Turan with my action sequences to try and give more details on what I was trying to do

I'm thinking that maybe what I want to do is just not possible with these pluggins tho x')
Well, a problem in your first one is you can never nest notetags, and you have to use the syntax provided by the plugin.

The
<Timed attack>
<End timed attack>
gives you specific properties for that timed attack (color, speed, etc.) that you can put in between those notetags. Putting an entire other set of notetags with action sequence commands in them (and none of the expected properties) does nothing.

Have you tried that method using the correct syntax per the instructions of the Timed Attack Core?

The second one...just doesn't try to do what you're talking about.

1 - There's nothing in it to bring up the timed attack graphics. That's not what sequence input does.
2 - Again, you're trying to nest things - put stuff inside of each other. You can't force another action during a first action and then go back to it after.

Ultimately, as far as I can see, the SRD timed attack plugins are not intended to display for the player when it's the enemy's turn.

You could call a common event from the action sequence and make your own version using Show/Move Picture and Conditional Branch for the button input inside of a Loop.

Or you could check this out, it seems to do exactly what you want if it's worth a few dollars to you.

the Timed attack that doesn't occur
What does that mean? I don't know if trying to use 2 different timed input plugins at once in the same sequence is messing something up, but the way I described it works 100%(Sequence input doesn't require timed attack core or the other one). Of course it doesn't come with any visuals. You'll have to do them yourself (Like I did with the flash animation)

Now if you want a quick time event like the one turan linked, then you'll want to not use sequence input and use one of the others instead. They're ultimately 2 different timed input systems, and just throwing in some notetags isn't going to work.
Well, a problem in your first one is you can never nest notetags, and you have to use the syntax provided by the plugin.

The
<Timed attack>
<End timed attack>
gives you specific properties for that timed attack (color, speed, etc.) that you can put in between those notetags. Putting an entire other set of notetags with action sequence commands in them (and none of the expected properties) does nothing.

Have you tried that method using the correct syntax per the instructions of the Timed Attack Core?

The second one...just doesn't try to do what you're talking about.

1 - There's nothing in it to bring up the timed attack graphics. That's not what sequence input does.
2 - Again, you're trying to nest things - put stuff inside of each other. You can't force another action during a first action and then go back to it after.

Ultimately, as far as I can see, the SRD timed attack plugins are not intended to display for the player when it's the enemy's turn.

You could call a common event from the action sequence and make your own version using Show/Move Picture and Conditional Branch for the button input inside of a Loop.

Or you could check this out, it seems to do exactly what you want if it's worth a few dollars to you.

I have used the right syntax multiple times, and in my exemple it's the right syntax too. As it's said in the help file.
If I put <Time attack><End Timed attack> At the very top of my notetag, the action sequence will not append and only the timed attack will append during player's turn.
And for this exemple I didn't write propreties because I only wanted to see if the default propreties would work (and if it's just the default one I don't have to write it)
Yes as you said I don't think SRD pluggins are made to be used in the enemy turn ^^' That's why I was trying desperatly to do it with the common event but yeah...

But the pluggin you're suggesting me is very very interesting, and it's worth the few dollars so thanks to have looking for it !!

What does that mean? I don't know if trying to use 2 different timed input plugins at once in the same sequence is messing something up, but the way I described it works 100%(Sequence input doesn't require timed attack core or the other one). Of course it doesn't come with any visuals. You'll have to do them yourself (Like I did with the flash animation)

Now if you want a quick time event like the one turan linked, then you'll want to not use sequence input and use one of the others instead. They're ultimately 2 different timed input systems, and just throwing in some notetags isn't going to work.
Sorry I think my english is not as good as I thought ;-; What I wanted to say was that the action plays as if there was no Timed attack (The SRD timed attack I mean). But yes I understand that mixing 3 differents systems like that is not going to work, I was a bit delusonial ^^'

But I can do it as you write it before ! I'll definitely need it if I want a dynamic combat system so thanks for the help !!
Sorry I think my english is not as good as I thought ;-; What I wanted to say was that the action plays as if there was no Timed attack (The SRD timed attack I mean). But yes I understand that mixing 3 differents systems like that is not going to work, I was a bit delusonial ^^'

But I can do it as you write it before ! I'll definitely need it if I want a dynamic combat system so thanks for the help !!
It depends on what you need. The sequence input plugin does not use a gauge or any other visual effects. You'd have to make the visual effects yourself. If you want a gauge or anything similar, you're better off using the plugin turan linked.
I have used the right syntax multiple times, and in my exemple it's the right syntax too. As it's said in the help file.
If I put <Time attack><End Timed attack>
No, it's not. You have <time attack> and <end timed attack> with other notetags in them. That is not the right syntax.

But as I said - I haven't looked into the code, but I don't think the timed attack will display from an enemy action at all.
Hi ! I hope this is the right channel to post that ^^'

It's been a while that I've been using and messing with the SRD's Timed attacks pluggins and Yanfly Action sequences pluggin but I found myself struggling to do one thing with them.

What I want to do is that when an enemy attacks a character, a timed attack pops, if it's fail, the character takes full damage and if it's win, the character takes less or zero damage.

I tried a lot of things but I really can't do it and don't know what I'm supposed to do ^^'

I tried :
- Making a common event with the "force skill" inside, making the player "hurt themself" to emulate the enemy attacking them but the Common event plays 2 times when doing that, I saw that it might be a feature of Yanfly's action sequences ?
- Using a script like this one : BattleManager._action.setSkill(3); instead of the "Force skill" but it doesn't work (Timed attacks doesn't happen)
- Using the skill ID call in my action sequence like SRD's help file suggest but it doesn't show the Timed attack neither (Only the skill's effects and animation)
- Using SRD's sequence input pluggin. I see how it can be useful because now I can fight back the enemy when pressing a button but still, the Timed attack doesn't show.

I have the feeling it might be because the SRD Timed attack pluggin is only meant to work when a character attacks and not an enemy but I really want to use this mechanic and I'm a little lost on how to do it.


Any suggestion about how to achieve that ? (Maybe there's a similar pluggin that only plays when the enemy attacks but I looked for one of this kind and didn't find it)


(Sorry for the spelling mistakes, english is not my first language)
Hello! I don't know if you're still looking for this or if you already solved your problem, but in this forum a user shared an ''attache'' for the srd plugin. I have tried it and it has worked for me, but I don't have any plugin that modifies the battle system besides that, you can still test if it is compatible with the plugins you have, I don't see why it wouldn't be. I hope it helps you!

Original thread: https://forums.rpgmakerweb.com/threads/timed-attacks-and-action-sequences-on-enemy.173994/