Enemy Vanish/Reappear?

Is there any way to allow a boss to "vanish" for a turn, then reappear? I found a suggestion that involved transforming it into a copy of the enemy minus the sprite, but considering that the letter on the enemy name kept changing and the fact that no matter how much damage I did it wasn't enough to kill it, I'm guessing that transforming an enemy resets its health. Any suggestions on how to do this?
For something like Pokemon's Fly/Dig skill or Final Fantasy's Jump (which I think you're asking) there's a script for it here! I hope it's what you're looking for!
https://forums.rpgmakerweb.com/index.php?threads/ve-leap-attack.7649/
Hmm, I use Victor Engine for puzzle stuff, but the battle scripts conflict like crazy with Yanfly's stuff (which I use for almost everything else). Besides, that one looks like it makes the sprite in question go up as if, well, "Leaping" (which would almost CERTAINLY conflict with YF's stuff, like all VE battle scripts that involve animations do), and what I want is for the enemy to "ninja vanish" for a turn or two. Is there any other way to have this happen?
I think either this script https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/ or https://forums.rpgmakerweb.com/index.php?threads/state-add-remove-commands.18593/ will do the trick. You'd have to set up a common event somehow with it though.

There's also this script in which you can create a "state" where the user is vanished.
http://cobbtocs.co.uk/wp/?p=172

Hope these help out!
That third script sounds promising, but as transforming simply reset the health (which made the enemy literally impossible to kill) I worry that it won't be the right solution.

I don't see how either of those first two will make the battler disappear. Could you maybe explain your reasoning a bit, perhaps tell me a way to do it with those scripts?
Sorry for the bump, but I still need help on this.
I'm still learning RPG Maker, but based on still frames that I've seen of people's projects, I think that placing a graphic temporarily over an enemy could make it effectively vanish from view. Overlaying an image identical to the background (or part of it) would be a way to do it instead of actually doing something to the enemy image itself.
Maybe you could ask for a script conversion of this.
http://www.gdunlimited.net/forums/topic/8216-make-enemy-un-selectable/
If your using Victors Engine, you can use his state change script - all you'd have to do is make a sprite that is just a blank image, and name it the same as the enemy's sprite with [vanish] at the end of the name.

Then make a state and add this in the comment box:
<state graphic extension: [vanish]>

And have the skill that makes him disappear add that state for as long as the move lasts.
For bonus effect - you can have the state raise its evasion super high so all attacks will miss it.
If your using Victors Engine, you can use his state change script - all you'd have to do is make a sprite that is just a blank image, and name it the same as the enemy's sprite with [vanish] at the end of the name.

Then make a state and add this in the comment box:
<state graphic extension: [vanish]>

And have the skill that makes him disappear add that state for as long as the move lasts.
For bonus effect - you can have the state raise its evasion super high so all attacks will miss it.

Just tried this, and got this error:

Script 'VE State Graphics' line 221:NameError occurred.
undefined local variable or method 'actor_battler_name' for
#<Game_Actor:0xe8b4878>

I bet it's a conflict with one of my Yanfly scripts, which are essential to my game. I have plenty of Victor Engine scripts and they work fine with Yanfly so long as they don't involve battle for the most part.
Oh. I forgot to mention something. In your battler's note tag you have to add: <battler name: *name of the sprite it uses*>.
Maybe that should fix it.
Nope. That didn't fix it.
That's weird. I guess it has to be a compatibility thing. Though I'm assuming you have Victors Core engine, and the state change beneath it.

I'd ask for screenshots to double check if things look right - but if you made sure the battler, and state all have the right note tags then I guess this might not work for you with the scripts your using.
Yeah, VE battle scripts aren't compatible with Yanfly's battle scripts. In almost all other aspects they're fine together, but battle scripts seem to conflict like crazy. Is there any way besides a VE script to do this? Or should I just give up on the idea altogether?
Maybe not rely on a script but do it by eventing instead? I don't have much time atm, so I can't test this out in detail, but in broad brush terms:-

Create an enemy. Give it the same name as the enemy you want to vanish. Create a blank battler sprite. Assign it to this enemy. If you need to give that enemy stats, then do so.
Create a 'marker' state that does nothing but act as an identifier, so no name, no icon (though put something in the note box so that you don't accidentally use it for something else). Set it to last for one turn.

In the troop event, set the page condition like this, so that it checks every turn
upload_2018-4-18_11-53-36.png


Set a variable to the particular enemy's HP. Set other variables to pick up any other stat that you want to carry over
Set your conditional branch to whatever condition it is that you want to trigger the vanishing.
Nested conditional: is the enemy marker state inflicted?
If 'yes' (i.e. it was inflicted the previous turn), transform the dummy back to the enemy.
The enemy might have received damage during the turn it was invisible, so set the now visible enemy's HP to the variable.
Jump to label 'end' (or whatever). This label must be after the whole of the conditional so that it doesn't re-inflict the state etc.
In the 'Else' branch, use the transform enemy command to change the real enemy to the dummy (invisible) enemy.
Use the variables to give the dummy the same stats as the real enemy.
Inflict the marker state on it.
Put in a jump to label. That label must be after the whole conditional, as you do not want the state removed in the same turn.

I think that takes care of everything, but like I said, I haven't got time to test.
That sounds mostly okay (in theory), but I need the enemy to be impossible to hit while vanished, and for it to change back after a set number of turns as well. How do I do the latter?
For impossible to hit give the dummy enemy 100% EVA. Set the marker state to the number of turns you want the endmy to be invisible
Tested it out. The problem with the enemy's HP being restored upon transformation is still there. I'm somewhat sure that I did the HP variables thing right, but I'm not 100% sure. Could you maybe explain that part in a little more detail?
So google searching found me this
https://www.rpgmakercentral.com/topic/23503-hiding-enemies/

Using
$game_troop.members[1].hide # hides the second enemy

$game_troop.members[1].appear # shows the second enemy

Has one issue, if you hide an enemy and it was the only enemy there or you kill all the other enemies, then the battle is over.

I placed those scripts into the troop page and set it to run at a specific turn. Tested and works.
Has one issue, if you hide an enemy and it was the only enemy there or you kill all the other enemies, then the battle is over.

This is where that solution falls apart. This is a boss battle with only one enemy, so using that script will end the battle.

EDIT: This is seriously starting to piss me off. Every time it transforms its health is reset, essentially making it invincible. How do I carry over the damage already dealt across transformations?

Original thread: https://forums.rpgmakerweb.com/threads/enemy-vanish-reappear.93789/