Galv's MV Layer Graphics

Hi,

I was wondering if anyone knew how to apply the layer graphics for Galv's layer graphic plugins during battle?

I'm making a skill in my game that adds a dust/mist over the battle scene but can't seem to figure out how to do it. I've tried Soul_MV's battle Layer which just isn't compatible with my existing scripts but Galv's MV Layer Graphics is.

Basically when the player/enemy uses the dust/mist skill the dust/mist layer appears over the battlefield/layer rather than the battle start out with fog. Is there anyway to do this with this plugin? or is there a plugin that allows me to do this?

Link to the plugin
https://galvs-scripts.com/2015/10/30/mv-layer-graphics/

Thanks to anyone's help in advance.
A link to the plugin's page would be helpful.

Do you know for a fact that it can be used during battle?

Why not just attach the skill to a common event that does a Show Picture command? You would have to make sure the picture gets erased at the end of battle, or whenever is appropriate (after X turns, for instance). You might need a plugin for that - I think someone wrote one that lets you set up a "dummy" troop and all of its event tabs will be applied to every battle, so you don't have to do it for each one. There might also be a plugin that allows you to run a battle event at the end of battle, which you might be able to combine with the other.
A link to the plugin's page would be helpful.

Do you know for a fact that it can be used during battle?

Why not just attach the skill to a common event that does a Show Picture command? You would have to make sure the picture gets erased at the end of battle, or whenever is appropriate (after X turns, for instance). You might need a plugin for that - I think someone wrote one that lets you set up a "dummy" troop and all of its event tabs will be applied to every battle, so you don't have to do it for each one. There might also be a plugin that allows you to run a battle event at the end of battle, which you might be able to combine with the other.
Link to the plugin
https://galvs-scripts.com/2015/10/30/mv-layer-graphics/

Yes, I know for a fact it can be used during battle. Except the plugin/script commands that set the graphics -- from the examples provided with the plugin are set before the battle processing.
It looks like the battle layers must be set before the battle begins, so you would either need a way to redraw the layers during battle, or have a mod done to the plugin to allow layers to be added/removed as a battle progresses.

I'll give you something to try, but I don't know if it'll work or cause errors, and I'm really not sure if calling this method more than once is a good idea ...

From the common event attached to your skill, add the script call to add the new layer (this is shown in the plugin help section), and then add the following either to the same script call, or another script call immediately after:
Code:
SceneManager._scene._spriteset.createLayerGraphics();

And do the same again when you remove the layer.
It looks like the battle layers must be set before the battle begins, so you would either need a way to redraw the layers during battle, or have a mod done to the plugin to allow layers to be added/removed as a battle progresses.

I'll give you something to try, but I don't know if it'll work or cause errors, and I'm really not sure if calling this method more than once is a good idea ...

From the common event attached to your skill, add the script call to add the new layer (this is shown in the plugin help section), and then add the following either to the same script call, or another script call immediately after:
Code:
SceneManager._scene._spriteset.createLayerGraphics();

And do the same again when you remove the layer.
Works like a charm! Thanks so much, hopefully no issues arise in the future with it but right now it works perfect.
dDcgaSZ.png
yIXp3Nc.png
M1T6bLp.png
Moved to: JavaScript/Plugin Support
Also
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/galvs-mv-layer-graphics.84807/