Preemptive-Surprise Event Battle

Preemptive-Surprise Event Battle​
Version 1.0.0​
By Jeneeus Guruman​
 ​
Introduction

    This script allows to make evented encounters have preemptive and surprise encounters.

Features

  • Having the evented encounters to have preemptive and surprise attacks.
  • Triggering the event enemy at his back will have a guaranteed preemptive attack.
  • Triggering the event enemy by having it in the character's back will have a guaranteed surprise attack.
  • Triggering the event through sides will have a chance to have preemptive or surprise attack depending on the facing and position of both the enemy and character.
  • Can be disabled them completely, exempt some enemies from this function, and set the chance on triggering the event sideways all at your own settings.
  • All events around are automatically stopped if the events are tagged to have a preemptive and surprise battles while the event is running.

Screenshots

Spoiler
When attacking behind enemies...

[IMG]http://i1071.photobucket.com/albums/u503/eujene_ugly/Preempt/SS%20Prempt%201_zps3o6efaqu.png[/IMG]

This will happen.

[IMG]http://i1071.photobucket.com/albums/u503/eujene_ugly/Preempt/SS%20Prempt%202_zpsf71jd7i3.png[/IMG]

When the enemies attack behind you...

[IMG]http://i1071.photobucket.com/albums/u503/eujene_ugly/Preempt/SS%20Surp%201_zpsouk9rfrm.png[/IMG]

This will happen.

[IMG]http://i1071.photobucket.com/albums/u503/eujene_ugly/Preempt/SS%20Surp%202_zps4w8cq7ht.png[/IMG]
How to Use

  • Place this below default and most non-aliased scripts.
  • Not compatible and has problems with 8-directional movement and pixel movement scripts.
  • Not recommended if followers are shown.
  • "Encounter Half" and "Encounter None" party abilities do not work for evented encounters but "Raise Preemptive" and "Cancel Surprise" does work.
Demo

Not needed.

Script

Preemptive-Surprise Event Battle

Known Bugs
None so far.

Author's Notes

  • This script is free to use commercially or not. If commercially, you must credit me. If not, just don't claim this as your own but not crediting me is okay if you don't want to.
The timing on this is great; not two weeks ago, I was wishing for this exact thing! 😀
Seems like this doesn't work with Yanfly Classical ATB and Battle Engine? 🙁
The timing on this is great; not two weeks ago, I was wishing for this exact thing! 😀
Good thing that I helped you. 🙂

Seems like this doesn't work with Yanfly Classical ATB and Battle Engine? 🙁
Mine perfectly works with Yanfly Battle Engine and ATB. Maybe you have there either 8-directional or pixel movement scripts? That surely will make this script incompatible if you have at least 1 of those.

Original thread: https://forums.rpgmakerweb.com/threads/preemptive-surprise-event-battle.40819/