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
SpoilerWhen attacking behind enemies...
This will happen.
When the enemies attack behind you...
This will happen.
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.
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.