Question about Battle Events

Hi everyone, I'm new here -- I know, high five -- and I have a question about events in battle.

Here's what I aim to do, and to a point, I've been mildly successful. So!

I have a melee combat skill called Push Kick.

I also have another melee combat skill called Cleave.

I want Cleave to become available only after a successful Push Kick.

-- I've done this by setting Push Kick with the 'Other' effect, Learn Skill [Cleave].

I want to have Cleave go away once you've used it, so that you need to use a Push Kick again.

-- I've done this by setting Cleave to trigger a Common Event [Forget Cleave]

Now this whole thing up here? Yeah, that works. Amazing, right?

The thing is, though, what I ideally want is. . .

[Cleave] is only available on the turn immediately following a [Push Kick].

I've fiddled around with it, but I haven't had any luck.

-- I did one experiment where I gave the enemies a skill called [interrupt].

[interrupt] does minor damage, is the guaranteed next hit after the enemy

recovers from stun, and[interrupt] was set that, the only way the enemy

would use it, is if it was first affected by [Push Kick].

So the flow of events was setup like this: [Push Kick] = [Cleave] Available, Switch 001 ON = Enemy [interrupt] Available. If [interrupt] used then Common Event Forget Skill [Cleave] and Switch 001 OFF.

I thought that would work, but for some reason when it's setup like this, Push Kick never carries out the command to learn [Cleave].

So two questions.

1: Is there a way to accomplish what I'm trying for without the use of scripts?

and

2: What's up with the thing I tried not working? There's a flaw in my logic somewhere.

Thanks!

Tera
So, I've gone back and tried this a simpler way, without using a switch to activate the battle command.

I just gave a Slime the skill [interrupt] and set the condition to State: [stun].

The problem I see is this: if the [interrupt] skill is anywhere in the enemy skill list at all, [Cleave] never activates for the player.

Which is really weird to me, because the Common Event Forget Skill [Cleave] is only set to activate when the [interrupt] skill

is used, not just present in a list.

Anyway!
Welcome to the forums,

For what your asking for there are a few ways to accomplish this.

You can use the skill costs script by Neon Black http://forums.rpgmakerweb.com/index.php?/topic/3345-skill-costs/

And make Cleave require state 30 on the caster in order to use it.

-----------------------

then on push kick in the damage formula. (lets say your damage formula right now is a.str*4 -b.def*2)

lets put in the damage formula :

a.str*4-b.def*2;a.add_state(30)

this means if push kick successful hits a target, the caster will gain state30 after damage is dealt. then next turn they can now use cleave because they have state30 on them. they use cleave and it consumes state 30 after use. Also make state 30 auto remove itself after 2 turns so if they don't use cleave that turn, they lose the state and have to do push kick again in order to get the state back.

hope this helps
ODxT, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Just edit your last post and add the new information instead.


I've moved this thread to VX Ace Support (since you asked for a non-script method). Please be sure to post your threads in the correct forum next time. Thank you..


If it turns out you NEED to use scripts, I'll move this to RGSS3 Script Requests instead.


I don't know if this would affect it, but you didn't set your two skills as either skill 1 or skill 2, did you? It's very important that Attack and Guard take up the first two skill slots.

Original thread: https://forums.rpgmakerweb.com/threads/question-about-battle-events.25643/