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,870
Reaction score
4,814
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,168
Reaction score
7,374
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,168
Reaction score
7,374
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,788
Reaction score
14,586
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,788
Reaction score
14,586
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 Profile Posts

I miss my friends from the work experience program... maybe once I move, I'll have a little party with them. I'll even show them my games and perhaps my puppets. Did you know I make working puppets?
Episode 18 is here. We're still making a game in RPG Maker MZ. This week, let's make that cliff map look awesome with the new tiles we made last week! Join us live, now!

I just watched the CG movie HARLOCK: Space Pirate, a retelling of the anime Harlock story. It was pretty awesome, and has given me some inspiration for my space game, at least for parts of it.
How comes, when you are fearful to log anywhere, that somebody close passed from COVID and you learn too late, you suddenly are mortified that others who almost share BDay dates didn't answer the art you made for them?
unknown.png
Trying to make some horror "Corpse Party" style tileset.

Forum statistics

Threads
111,218
Messages
1,059,343
Members
144,474
Latest member
ElDanto
Top