- Joined
- May 30, 2015
- Messages
- 816
- Reaction score
- 826
- First Language
- English
- Primarily Uses
Touch Surprise Battles v1.4
By DreamX
Introduction/Features
Events labeled with <enemy:1> will use their direction and the player's direction to decide whether their battle processing command results in a preemptive, surprise, or normal battle. You can also force the next evented battle to be preemptive, surprise or normal.
Patch Notes
v1.4a (1/23/16): Fixed compatibility for Orange Custom Events.
v1.4 (1/23/16): Added compatibility for Orange Custom Events.
v1.3 (1/16/16): Added parameters for back preemptive/surprise battles chance.
v1.2 (1/14/16): Plugin commands now apply to touch <enemy:1> events.
v.1.1 1/12/16: Fixed bug with maps that don't have all events sequentially ordered (for example, if you delete an event) and added compatibility for Sanshiro's Map Generator.
How to Use
Right click the script link and select save link as.
Make sure to set the switches in the parameters or the script won't do anything.
Put <enemy:1> into an event so that when the player and it touches, it'll set the next battle type depending on how they touched (you touch their back = preemptive, they touch your back = surprise, otherwise = normal). In addition, surprise battles may occur when the enemy touches the player from the side or preemptive battles if vice versa. Set the chance of this occuring in the parameters.
The following plugin commands do not apply to random battle encounters you get from walking around on the map (it does apply to battle processing event commands that are "same as random encounter," though).
Plugin Commands:
ForceSurpriseBattle - Forces the next battle to be surprise.
ForcePreemptiveBattle - Forces the next battle to be preemptive.
ForceNormalBattle - Forces the next battle to be normal.
ResetBattleType - Removes the forced state. If the event is labeled <enemy:1>, the battle type will be decided by direction again.
Script
Credit and Thanks
- DreamX
Script portions used, modified or referenced in this plugin: Jeneeus Guruman - Preemptive-Surprise Event Battle:
Jene.gameInterpreterCommand301
Jene.gameCharacterBaseSetDirection
Game_Interpreter.prototype.preemptiveOrSurprise
Author's Notes/Terms of Use
Free to use and modify for commercial and noncommercial games, with credit.
You should credit Jeneeus Guruman for the referenced script.
By DreamX
Introduction/Features
Events labeled with <enemy:1> will use their direction and the player's direction to decide whether their battle processing command results in a preemptive, surprise, or normal battle. You can also force the next evented battle to be preemptive, surprise or normal.
Patch Notes
v1.4a (1/23/16): Fixed compatibility for Orange Custom Events.
v1.4 (1/23/16): Added compatibility for Orange Custom Events.
v1.3 (1/16/16): Added parameters for back preemptive/surprise battles chance.
v1.2 (1/14/16): Plugin commands now apply to touch <enemy:1> events.
v.1.1 1/12/16: Fixed bug with maps that don't have all events sequentially ordered (for example, if you delete an event) and added compatibility for Sanshiro's Map Generator.
How to Use
Right click the script link and select save link as.
Make sure to set the switches in the parameters or the script won't do anything.
Put <enemy:1> into an event so that when the player and it touches, it'll set the next battle type depending on how they touched (you touch their back = preemptive, they touch your back = surprise, otherwise = normal). In addition, surprise battles may occur when the enemy touches the player from the side or preemptive battles if vice versa. Set the chance of this occuring in the parameters.
The following plugin commands do not apply to random battle encounters you get from walking around on the map (it does apply to battle processing event commands that are "same as random encounter," though).
Plugin Commands:
ForceSurpriseBattle - Forces the next battle to be surprise.
ForcePreemptiveBattle - Forces the next battle to be preemptive.
ForceNormalBattle - Forces the next battle to be normal.
ResetBattleType - Removes the forced state. If the event is labeled <enemy:1>, the battle type will be decided by direction again.
Script
Credit and Thanks
- DreamX
Script portions used, modified or referenced in this plugin: Jeneeus Guruman - Preemptive-Surprise Event Battle:
Jene.gameInterpreterCommand301
Jene.gameCharacterBaseSetDirection
Game_Interpreter.prototype.preemptiveOrSurprise
Author's Notes/Terms of Use
Free to use and modify for commercial and noncommercial games, with credit.
You should credit Jeneeus Guruman for the referenced script.
Last edited by a moderator:


