MZ Looking for an MZ-alternative to SRdude's Common Event Battle Intro


I'm currently in the process of getting accustomed to MZ I would like to spruce up my Battle Intros in the future, and am not a huge fan of the whole "flash white, zoom in" thing for anything more than random encounters. Is there possibly an MZ-alternative to this plugin, or at least something similar? I tested the MV-Plugin out in MZ. To my surprise, it kiiiinda works in MZ, but due to MZs way of using plugin commands, I can't exactly use the plugin commands included, and since I would like to do a Pokemon Gen 4 Gym-leader style intro with busts that fade in, I would need to change the battle intro for each boss. Sure, I could use a conditional branch, but that seems a bit complicated.

Any help?
I found a temporary solution in this plugin, that can disable the default battle transition: https://forums.rpgmakerweb.com/index.php?threads/dynamic-encounter-effect-mv-mz-4-0-mz.94160/

Sadly it's not quite the same and I'll need to script a transition effect for every battle, but at least I don't have the distracting white flash with the zoom anymore.
Moved to: Plugin Requests

Double-post notice: @Dimensional13

I'm currently in the process of getting accustomed to MZ I would like to spruce up my Battle Intros in the future, and am not a huge fan of the whole "flash white, zoom in" thing for anything more than random encounters. Is there possibly an MZ-alternative to this plugin, or at least something similar? I tested the MV-Plugin out in MZ. To my surprise, it kiiiinda works in MZ, but due to MZs way of using plugin commands, I can't exactly use the plugin commands included, and since I would like to do a Pokemon Gen 4 Gym-leader style intro with busts that fade in, I would need to change the battle intro for each boss. Sure, I could use a conditional branch, but that seems a bit complicated.

Any help?
Hi there!
You can use script calls instead of the plugin commands in MZ. Below is an equivalent script call for every plugin command:

Set Common Event Battle Intro
Replace 10 with any common event id.
$gameSystem.setCommonEventBattleIntroId(10);

Reset Common Event Battle Intro
$gameSystem.resetCommonEventBattleIntroId();

Enable/Disable Common Event Battle Intro
JavaScript:
$gameMap.isCEBattleIntroDisabled = true; // Enable
$gameMap.isCEBattleIntroDisabled = false; // Disable

Battle Intro Transition
JavaScript:
BattleManager.playBattleBgm();
SceneManager._scene.startFadeOut(this.fadeSpeed());

Start Normal Battle Intro
SceneManager._scene._encounterEffectDuration = _.duration;
Moved to: Plugin Requests

Double-post notice: @Dimensional13
Whoops! Sorry, won't happen again!

Hi there!
You can use script calls instead of the plugin commands in MZ. Below is an equivalent script call for every plugin command:

Set Common Event Battle Intro
Replace 10 with any common event id.
$gameSystem.setCommonEventBattleIntroId(10);

Reset Common Event Battle Intro
$gameSystem.resetCommonEventBattleIntroId();

Enable/Disable Common Event Battle Intro
JavaScript:
$gameMap.isCEBattleIntroDisabled = true; // Enable
$gameMap.isCEBattleIntroDisabled = false; // Disable

Battle Intro Transition
JavaScript:
BattleManager.playBattleBgm();
SceneManager._scene.startFadeOut(this.fadeSpeed());

Start Normal Battle Intro
SceneManager._scene._encounterEffectDuration = _.duration;
Ah! Thanks for that! To my untrained eye, this seems a bit clunky, but heck, I have no idea about Javascript, so what do I know? I assume this just does what the Plugin Commands do anyway, right? So thanks for that! 😀 Maybe I should just study up some javascript myself, haha

I'll have to see wether I use SRdudes plugin now, or use the dynamic encounter effect plugin i found. No matter what my choice is, the help is dearly appreciated! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-an-mz-alternative-to-srdudes-common-event-battle-intro.143390/