Enemy skill that disable escape

Well in my game i create a spider enemy and it have a spider web skill (duh!), and i would like that alongside debuffing agility, and evasion, it would be awesome if while the party is stuck in the web can't escape the battle!
So someone have some ideia if it's posible to do and how?
sealskill.PNG


You can create a "state" that has "seal skill: escape" as a parameter. This should work?
Alright i have a solution for you, to make the Player can't escape.

1. Make a common event call it "Capture Switch" or whatever you want. :LZSjoy:
2. Add a Switch "Capture" at the common event, save and leave it.
3. Go to the skills, choose your web skill and add the common event "Capture Switch" at the skill effects.
4. Now go at the troops options from your spider at "Conditions" make your switch "Capture" as condition.
5. And as last, add the script call
Code:
BattleManager._canEscape = false;
into the conditions field, done.

Hope i could help you with this solution. :ehappy:
@shairn The 'Escape' skill can only be used by enemies. Sealing it won't make it impossible for the Party to escape from the command menu.

@Blank7 Will that solution allow the _canEscape to be turned OFF (either at the end of a state, or at the end of the battle)?

It might be best combined with Yanfly's Buffs & States Core, where you set the BattleManager._canEscape property when the state is applied, and when it's removed.
@Shaim The 'Escape' skill can only be used by enemies. Sealing it won't make it impossible for the Party to escape from the command menu.

@Blank7 Will that solution allow the _canEscape to be turned OFF (either at the end of a state, or at the end of the battle)?

It might be best combined with Yanfly's Buffs & States Core, where you set the BattleManager._canEscape property when the state is applied, and when it's removed.

Oh, my mistake. I don't use combat mechanics so I just sort of glossed over it.
@Wavelength well actually you have just to turn OFF the switch "Capture", again.
You have to add a second condition then, if the enemy HP is at 0%, and turn the switch OFF as example.

Or just after battle at the event page, turn OFF the switch there and allow the escape again with
Code:
BattleManager._canEscape = true;
@Blank7 It woked! Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/enemy-skill-that-disable-escape.112680/