Hello,
I'm making a battle tutorial and have all the text boxes and everything working as long as the player follows the directions given.
Is it possible to restrict the options so the player doesn't just use attack or other skills and get out of synch with the text?
I'm using VX ACE and using a few Yanfly scripts.
Thanks for any help.
Restricting the player option during combat can be a bit tricky, you'll need to experiment with different solutions depending on what you want the actor to have available.
First, I would make an actor specifically for the battle tutorial who has no skills set up in class or actor - that will give you a zero skill base (but doesn't do anything for attack or guard)
Second, you'll be using either states or equipment to add skills to the actor depending on the turn of the tutorial battle - and use event commands to change that equipment or the state when other skills should be tested. If you're using equipment, you'll probably be using several weapons which have all the same name to hide that changing from the player - make sure that you didn't mix them up by first naming them "turn 1 sword", "turn 2 sword" etc and only change the names to "Basic sword" after everything works.
Third, to change or disable attack and guard you'll need a script - either a command manager script or some scriplet to let you set the basic attack and guard skills dynamically.
There are several available, you'll have to check which would work best for you. Most probably you won't be able to dynamically "vanish" the attack command from the actor (unless you'll completely remove it for all combat) because most of the command scripts only allow a fixed setting per actor that will be used in the entire game.
However, what is possible is to change the skill that will be triggered by the attack command - that's something I've already done.
And then you need two "attack"-skills - the regular attack and a tutorial attack that does no damage but triggers a script telling the player "please do not use attack, go back and follow the tutorials instructions".
You'll probably want a counter to check which part of the tutorial the battlecurrently is in, if you set the changes in state or equipment by absolute turn numbers, then a player might still break the tutorial by attack spamming, because a tutorial attack like described above would still use up a turn.
You can add/remove skills during battle, and have the skills you don't wanna use ONLY usable in the menu so it appears blackedout. Then you remove that skill and add the normal one when you want them to do that. As for Attack and Guard idk...
Thank you for the replies.
I was given a script that does everything I needed.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.