Picture/Image masking plugin, simple graphic effect.

Of course, it has worked for me. A simple example in the description would have been nice:

Updated with a example, thanks 🙂
It's the plugin we've been hoping for!
It works just fine in MZ!
Thank you!
Thanks for the very cool plugin!

I wanted to spread this plugin to Japan, so I made a tutorial video in Japanese.

I think this only works for MZ, yeah? cause I've tried a hundred ways to setmask on this dang picture and I keep getting errors on screen.

oxk3kGd.png

sNMGay0.png



and yes, I DID try it using the basic directories... like THIS


grr3.png
I think this only works for MZ, yeah? cause I've tried a hundred ways to setmask on this dang picture and I keep getting errors on screen.
I implemented this in RPG Maker MV.
I am able to mask as intended in my environment.1673947489547.pngスクリーンショット 2023-01-17 182632.png
I implemented this in RPG Maker MV.
I am able to mask as intended in my environment.View attachment 250878View attachment 250879
would you create a basic demo that does this? because just, something is NOT working right in my project.
@jayray he isn't around from sept 2020, but in MV it's easy.

while it would work in MZ, the plugin commands arent there,
which I might add as I'm upgrading it a bit as well for my own purpose.

you place a simple 2 images to load and place the plugin command and it
does the work for you.

you can add more settings to the pictures for the effect.

MZ has a different way for plugin commands which arent added, so the scriptcall
doesn't work, but I think calling the picture name should have worked though.
Yes, my frustrations were eased...

Yanfly Core Engine works fine under the masking plugin, but when it's above it, the Masking plugin will NOT work. It works now, and I am...

Euphoric!!! Exstatic!!! WOW!!!!

(Also, just for note. one mask will ALSO work on multiple pictures, meaning the same mask picture can be the child of all of them...

SETMASK 1 5
SETMASK 2 5
SETMASK 3 5
SETMASK 4 5

I love this plugin, hands down exactly what I was looking for!
@jayray
multiple mask is something I didn't know, as it has children container.
so does the mask stay if you remove the picture on the other pictures?
Looks like it.

AS each picture independantly takes its mask from the picture layer that's acting like a mask, if you say take picture 1 away, pictures 2 3 and 4 still look to 5 for its mask information.
nice finding, as setmask 1 2 and remove mask 1 it remove picture 2
as well, but if its still bounds, it expends possibilities.

I can't get around on the MZ plugin commands as I dont have MZ,
making the drop down menu is easy, making it work, trouble some.

but I try to create scriptcalls otherwise as it would be compitable with MZ
at least.

as I might do that later on or rewrite the plugin to use scriptcalls
and plugin command to call the scriptcall function, so both can be used.

EDIT:
@jayray there is also a bug in the plugin which needs to be checked,
I need a work around to make scriptcalls working somehow instead
of plugin commands.

even while it work, the bug in there (if used) if you go in battle, win, lose
or escape it, the masking doesn't work, unless re-applied.

I try to find my work around this.

the scriptcall might be usefull if it might work for MZ users as well,
but I dont know how to add a "re-apply" effect when you won/escape
the battle, as this break the effect.
I can't seem to get this to work on MZ.
@Renkai141 it does work in MZ in a different way, but the plugin commands
arent made for MZ, but I dont get how it's done.

also the bug for battle are still there, and I hope I can make it work for both.
(specially scriptcall instead of of plugin commands (scriptcalls for MZ).

but while I have more knowledge, I still need more, as this is a really usefull plugin.

Edit:
I removed the Plugin Commands (MV) and changed them to scriptcall
as there was 2 ways, I took the save way.

$gameScreen.setMask(mask, picture) and $gameScreen.removeMask(picture)

this should work in MZ as well, but the removing picture doesn't seem to work
correctly (unlike the plugin commands as before) as you need to remove the pictureID
as well.

Known issue is that the picture doesn't apply after battle (you can work around this
by re-activating the event or refresh methode).

when I got time, I try to implement this after battle ends.
but you can use it in MZ as well hopefull using the scriptcall (same for MV).

I try to update this to make it fully work (everywhere and anytime).
Here is the MZ version.
I extended what you have, and made it work into MZ.
Both work, I just wanted to see if I could do it.
(edited the file more to handle errors)(Although I doubt i can make it have multiple masks on multiple objects, so thats something I should do)

Please let me know what you think.(got both functions working on adding and removing the mask)
To use plug-in commands for MV in MZ, use the plugin EventCommandByCode.
You can mask the picture from the plugin command by setting it up as shown in the image.
EventCommandByCode.js is bundled with MZ as an official plug-in, I believe.

The specification that the mask is cut off by fighting or opening and closing menus may be avoided with a plugin called OcRam_Parallels_EX. This plugin is for MV, but it is worth a try to see if it works in MZ.

Translation of Pictures
ピクチャの表示 = Show Picture
プラグインコマンド = Plug-in command
コマンドコード = Command code
パラメータ = Parameters

1696293823076.png
To use plug-in commands for MV in MZ, use the plugin EventCommandByCode.
You can mask the picture from the plugin command by setting it up as shown in the image.
EventCommandByCode.js is bundled with MZ as an official plug-in, I believe.

The specification that the mask is cut off by fighting or opening and closing menus may be avoided with a plugin called OcRam_Parallels_EX. This plugin is for MV, but it is worth a try to see if it works in MZ.

Translation of Pictures
ピクチャの表示 = Show Picture
プラグインコマンド = Plug-in command
コマンドコード = Command code
パラメータ = Parameters

View attachment 278794
I was able to make it work, this is for MZ.
I updated the helpfile (except for MZ as those commands works differently, but almost equal)
I also updated with the plugin Commands + 1 new 1, same for MZ plugin command.

removeMask remove the mask + picture together
removePictureMask now only remove the mask from the affected Image

as it really depends what you need, only mask removing or both, so the choice are theirs.

I still find a way to "re-apply" the picture after battle to retain the current state + some more.
The plugin Helpfile is restructured as well for the function around it.
it has some small issues in the previous once as the version is 1.6 currently.
I made it more stable and picture Mask retain after exit the menu/battle scenes.

MZ users has plugin commands and MV does NOT, but both MV and MZ can
use scriptcalls provided in the helpfile.

if there is any issues, please let me know, and I see what I can do to fix it.
This plugin is rewritten from the ground up (old scriptcalls, MZ plugin commands should still work)
MV also has it plugin commands.

[Moved to Page 3]

I only tested the basic functionality in MV so not extensive, so if there is issues, let me know.

ShadowDragon​

this is a real lifesaver and it works well, but is there any way I can make sure the resulting masked image stays under the player and all events?

Original thread: https://forums.rpgmakerweb.com/threads/picture-image-masking-plugin-simple-graphic-effect.119767/