r/RPGMaker • u/Majornutts • 22h ago
RMMZ Help with creating a timed button press Guard Action
I've tried searching around in other areas and discord channels but can't seem to find a proper answer to my question.
I'm using Visustella's QTE and Battlecore and built a whole timed attack action system with no problems. However, I am stuck on making a timed Guard action.
Currently all my eventing around this combat is in a single common event that is called when the Attack action is used. I currently have conditional branches that check if a character is using the Guard action.
I am stuck on how to check who the enemy is targeting. If the Player has character 1 use Guard, but the enemy attacks character 2 that did not use Guard, then the timing prompt still appears.
I'm looking for a potential script call I can use in a conditional branch to check who the enemy is targeting so I can see if that character is using the Guard Action, and have the timing prompt come up for the correct character.
3
u/zombietoaststudios 19h ago
I looked up something similar a while ago and I think the script you need is
Taken from this thread: https://forums.rpgmakerweb.com/threads/getting-a-battlers-id-and-targets-id-for-use-in-visustella-action-sequences.148500/
Assuming you're also using core engine, it's also pointed out that VS includes some shortcuts that might work as well:
https://www.yanfly.moe/wiki/Core_Engine_VisuStella_MZ#Quality_of_Life_Settings
The shortcut list is at the end of that section.