Script call for enemy appear and "enemy is; appeared" condition

I need a script call for "enemy appear" command, and "enemy is; appeared" condition.
there should be a list of the script equivalents of all event commands pinned in the ace forums.

however can you explain why you think you would need that? I can think of no real scenario where those commands would be needed in script form, the event commands are usually enough.
and that means there is a chance that you plan to do something the wrong way...
Oh okay, I thought that context would be needed, sorry.

I have a summoning system in my project that should work like this:

1. At the begging of battle with summoning foes, troop event sets a bunch of variables 1,2,3 etc. that determine index numbers of summoned enemies

2. Enemy uses skill that sets variable to determine type of summon (some summon 1 foe max, other max 3 but only one at a time, other 2 at the same time, etc.) and runs common event

3. All types use "enemy; is appeared" script call, with index number replaced with $game_variables[1], if enemy in index 1 isn't present, it runs "enemy appear" call (that also had his index number replaced with variable), if they are present, checks index 2, and so on, and so forth.

The summoners are meant to appear alongside other enemies in rather large number of varied troops that can't afford fixed indexes for summons, a flexible, system that can handle them all at once is necessary.
I already made a bunch of similar systems, they all work, all I need is these two script calls and this one will also work.

I looked and found this list. I will look for it there, but if someone has it already, please post it here.
Edit:
Checked, no respect for troop.members. Oh well, I hope I'm just blind.
If I remember correctly, there is or was a problem with using one index multiple times for enemies.

it might be a better solution to use a dedicated script for this summoning:
I used this one once, and I got incompatibility with more important thing(?)(Long time ago, probably mixed it with different summon script).
This script also copies only enemies, not event pages associated with them, which is a problem.
I'd would rather like getting missing piece of something that I know will work instead of adding another script to my already too big heap of scripts and making more complicated method. This isn't anything urgent, so I'll wait.

The "enemy appear" command is handled in normal scripts (Game_BattlerBase etc.), yes? If I knew where it's located, maybe I could use it as a reference?

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-enemy-appear-and-enemy-is-appeared-condition.144596/