Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,734
First Language
English
Primarily Uses
RMVXA
I want to restrict Escape to the use of a skill, rather than something from the battle command menu. I have the skill call a common event with 'Abort Battle' command. However, obviously I don't want this to be usable for a boss battle, so need a way of restricting this if necessary.

However, I've drawn a blank on how to do this. It's probably something obvious to everyone else, but not to me.

Can anyone help me out?
Thanks.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,871
Reaction score
4,815
First Language
English
Primarily Uses
RMMZ
Maybe create a switch that enables/disables escape and use it as a condition for a successful escape in your common event. You can always activate/deactivate that switch just before entering a boss battle.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,170
Reaction score
7,377
First Language
Indonesian
Primarily Uses
RMVXA
https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/
use a notetag
Code:
<restrict if switch: x>
then flip the switch to disable the skill
(disclaimer, I never use this feature from the script)

An alternative would be a condition check on your common event if the switch is ON, then don't abort. But I guess that you don't want the skill to be usable at all from the menu.
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,734
First Language
English
Primarily Uses
RMVXA
@MushroomCake28 That has the merit of great simplicity. I knew it would be something obvious (obvious, that is, to other people, not to me).

@TheoAllen I'm not sure what using this script (which I'm using for other purposes, so it's already installed) would add to MushroomCake28's suggestion. Could you explain? As for not using the skill from the Menu, if it is set to Battle only, then that shouldn't be a problem, unless I've overlooked something?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,170
Reaction score
7,377
First Language
Indonesian
Primarily Uses
RMVXA
@Kes the difference with my solution and mushcake's one is, if you use the common event route, the skill is actually used then it calls a common event. If you go with my route, the skill is grayed out, effectively disabled it when the switch is flipped. Also by the menu, I mean, when you select the skill from the skill menu window during battle.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,789
Reaction score
14,589
First Language
English
Primarily Uses
RMVXA
One thing to be careful of here. I had an escape skill originally in The Book of Shadows, but I did notice a strange quirk. If you used it to escape and an actor was KO'd, you'd get a game over instead of running away. May want to test and see if that occurs for you as well.

Though Abort Battle might get around this, as I was using the feature Escape command when I did it. Still may want to give it a test to be sure.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,734
First Language
English
Primarily Uses
RMVXA
@bgillisp Just for the sake of absolute clarity (because my brain feels fried atm) do you mean if any actor was ko'd? Obviously it can't be the actor with the skill, because if they are ko'd, then they can't use the skill.

Having had a look at BattleManager, I think I'm correct in saying that Abort battle takes no notice of who is alive and who is not, but perhaps someone with greater understanding of the core scripts could advise on that.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,789
Reaction score
14,589
First Language
English
Primarily Uses
RMVXA
It was if anyone was kod but I think that's also due to how escape feature works. I've had no issue with abort battle though so I imagine you'll have no issue
 

Latest Threads

Latest Posts

Latest Profile Posts

Two NPCs blinking animations in VNMaker and two to go. Some progress!
Fun Fact: My last two projects (Fursona and A Postmortem Nation) were released before I could do post-completion playtesting because I got so excited and happy I released them on the spot. Sometimes I have rubbish impulse control. smh
Circle, circle, dot, dot... I got my first COVID shot! And I barely felt it, which shocked me. Usually having Autism causes my sense of touch to be amplified! I go for my second dose in June.
Another update, this time on moving. I got the keys to my apartment today, but it was poorly cleaned/repaired. They're working on it, don't worry!
:kaojoy:I just saw 2 players reached 10 hours.
The game is totally not for cult recruitment. As of yet, we have not summoned Cthulhu.
Unfortunately, besides that, many issues still need to be fixed for more common fellows.
To at least pretend everything is normal here. :kaoswt2:

Forum statistics

Threads
111,308
Messages
1,060,087
Members
144,630
Latest member
thanatos626
Top