Escape Skill

I created a Skill for one of my rogue classes and labeled it Smokebomb.

It is a no-cost skill that can only be used in battle and its only Effect is Special Effect>Escape

I hear the running sound effect, but then this message pops up and locks my game:

Type Error
Cannot read property 'index' of undefined


What the H am I doing wrong?
We need a screen shot of your skill tab. Use Alt+PrtSc so that we don't get your whole desktop.
How are you doing the running sound? How is it integrated into the use of the skill?
What plugins are you using that might affect this?
Special effect Escape is only meant to be used for monsters, not players. If you use it, you can run into unexpected effects with plug-ins, which is probably what happened to you.

Also, there is another issue you will run into, though it may take a while to find. If say you have a party of 4 and one of them is KO'd the escape effect will only hit the 3 that are standing, then you will get a Game Over, as the only person left in the battle is dead.

So to do an escape effect for a player you'll need something else, either cute work with common events (which if you had the item call a common event which just did abort battle it might work), or a plug-in.
Thank you guys for fast responses. Will probably nix the skill then.

GEA
A better way to do this skill, is attach a common event called smoke bomb. Amd in the commkn event use the event command "abort battle", and the battle will end, as if you'd escaped.
A better way to do this skill, is attach a common event called smoke bomb. Amd in the commkn event use the event command "abort battle", and the battle will end, as if you'd escaped.

Good idea. TY, Zarsla.

Original thread: https://forums.rpgmakerweb.com/threads/escape-skill.82780/