Checking if a specific skill is used during battle

theweirdnerd

Villager
Member
Joined
Oct 9, 2020
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMMV
There is a very particular thing I want to do during a skill tutorial sequence. Basically, I want to set up a conditional branch that sees if the player has used a specific skill and only that specific skill, afterwards dialogue is triggered and the tutorial ends.

Another thing I thought of trying is setting up a conditional branch or a condition that checks if the player's health is over a specific amount (in battle, their health can be checked if it's a percentage or lower) I want to check if the health is a percentage or higher.

Either way is a way to accomplish what I want but figuring it out is tricky. Any advice is helpful!

Edits: I know the event editor has ways of checking if a party member has a skill, but I want to check if a certain party member used a skill. I.e. If you have Hotdog, burger, or steak. Check if hotdog used ketchup.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
1,785
Reaction score
913
First Language
English
Primarily Uses
RMMV
Attach a common event to the skill that sets a switch when it's used. Then make a battle event with the condition of that switch being on.

As for the health...well, they're going to start with their health being that high in the tutorial, right? So I'm not sure what you're going for. If you're teaching them how to heal or something, just do it the same as above, set a switch with the healing item/skill.
 

theweirdnerd

Villager
Member
Joined
Oct 9, 2020
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMMV
Attach a common event to the skill that sets a switch when it's used. Then make a battle event with the condition of that switch being on.

As for the health...well, they're going to start with their health being that high in the tutorial, right? So I'm not sure what you're going for. If you're teaching them how to heal or something, just do it the same as above, set a switch with the healing item/skill
I created a variable then set it to that party members HP. Then set up a conditional branch that checks if that party members HP is over a specific amount, then trigger the dialogue.

The scene is this: This party member is injured and is put at 1 health. But their TP is set to 100. They have a skill that turns 100 TP into 100 HP. So once they use that skill, the tutorial ends. The HP variable way is more just assuming that the player used the skill. So I'll try both ways, see what works.
 

theweirdnerd

Villager
Member
Joined
Oct 9, 2020
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMMV
Attaching a common event to the desired skill works! Thank you for the help!
 

Latest Threads

Latest Posts

Latest Profile Posts

 …I think I might need to switch from standard ATK/DEF up/down buffs to parameter altering states. I just had an actor whose usual attack against an enemy does ~25 do a buffed attack against a debuffed enemy for ~600…
just saw that titan quest is free on steam until the 23rd
Zombie status is now complete. I didn't have to do much in the way of changing how healing is applied to undead targets, was just a simple 3 line code. I thought I had to overhaul Game_Action lol. Everything else was doable by events. So.. Zombie: You turn undead. Your element changes to darkness. You're weak to light, you're strong to physical attacks and healing hurts you and revival items will kill you.
My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...

Forum statistics

Threads
115,225
Messages
1,088,213
Members
149,815
Latest member
MaeBski
Top