Trying out the Triacotane's "PictureCallCommon" plugin but I have no idea on how to use it.

the plugin: https://triacontane.blogspot.com/search?q=picturecallcommon

this was in the help section of the plugin:
Code:
When clicked picture, call common event.

Plugin Command

 P_CALL_CE [Picture number] [Common event ID] [Trigger] [TransparentConsideration]:
     When picture was clicked, assign common event id.
   Trigger are As below(if omit, It is specified to 1)
     1  : Left click
     2  : Right click
     3  : Long click
     4  : Mouse over
     5  : Mouse out
     6  : Mouse release
     7  : Mouse repeat click
     8  : Mouse press
     9  : Wheel click
     10 : Double click
     11 : Mouse move
     12 : Mouse move and press

 P_CALL_CE_REMOVE [Picture number] :
     break relation from picture to common event.

 - Script
 $gameScreen.isPointerInnerPicture([ID]);

 If mouse pointer inner the picture, return true.

 ex:$gameScreen.isPointerInnerPicture(5);

 This plugin is released under the MIT License.

my event
Spoiler: my event
1689024903208.png

common event
Spoiler: common event
1689025021225.png


if anyone could provide a tutorial/example on how to use it, that would be appreciated. thanks!
please
@affable , please refrain from bumping threads before 72 hours has passed. An hourish on a Monday evening ain’t too shabby a wait.
@affable , please refrain from bumping threads before 72 hours has passed. An hourish on a Monday evening ain’t too shabby a wait.

Sorry, I'm new to this website and forums in general. Did I bump it by replying or editing the post too much? Sorry again.
No harm done! A bump is when you reply after having been the most recent poster. Most people don’t mean poorly by it but there have been members in the past that use it as a way to keep their threads visible at all times. I know you didn’t meant it that way, though. Just a formality. 😍
I'm not 100% sure about this plugin, but one thing that looks odd to me is that the event is running as an Autorun - and an Autorun with no wait frames!

I doubt the plugin requires that you use an Autorun since the game is going to wait until the Autorun finishes running (and if you never apply an end to the event, that means it will just loop indefinitely)
Likely instead it might want a parallel event; a parallel event will run while the game continues to run normally. However, just like autoruns, you need to define an end to the parallel event otherwise it will loop infinitely, and also without a wait frame, it will be looping those commands every single frame of the the game, which is quite taxing on the system, especially when nothing is really being updated or changed between each time it cycles. So at the end make sure to add a "wait" for maybe 1, 2, or 3 frames. The longer the wait, the more efficient. But I also wonder if the plugin command is waiting for a mouse click, in which case the longer the wait time, the less responsive the player's input is going to be.

I'm also wondering, since it's looping and you have the show picture command in the same loop if that could cause problems as well - not sure since I have never used the plugin. But basically, at this point you are refreshing the exact same picture every frame which might cause problems (maybe, I don't know). I would call the picture somewhere else, and then put the plugin command into a separate loop. You can either have a single, player-triggered event call the picture and have the plugin command running in a parallel event (don't forget the wait frames!), or you can create a loop within a parallel event.
So at the start of the parallel event, call the picture, then use the "loop" event command and place the plugin command there. Make sure to put wait frames inside the loop, since the loop is just like a parallel/autorun event in the way that it will repeat the processing every frame.

Give this a try. At the very least, if it doesn't fix it, you've at least learned an important thing about optimizing.
I'm not 100% sure about this plugin, but one thing that looks odd to me is that the event is running as an Autorun - and an Autorun with no wait frames!

I doubt the plugin requires that you use an Autorun since the game is going to wait until the Autorun finishes running (and if you never apply an end to the event, that means it will just loop indefinitely)
Likely instead it might want a parallel event; a parallel event will run while the game continues to run normally. However, just like autoruns, you need to define an end to the parallel event otherwise it will loop infinitely, and also without a wait frame, it will be looping those commands every single frame of the the game, which is quite taxing on the system, especially when nothing is really being updated or changed between each time it cycles. So at the end make sure to add a "wait" for maybe 1, 2, or 3 frames. The longer the wait, the more efficient. But I also wonder if the plugin command is waiting for a mouse click, in which case the longer the wait time, the less responsive the player's input is going to be.

I'm also wondering, since it's looping and you have the show picture command in the same loop if that could cause problems as well - not sure since I have never used the plugin. But basically, at this point you are refreshing the exact same picture every frame which might cause problems (maybe, I don't know). I would call the picture somewhere else, and then put the plugin command into a separate loop. You can either have a single, player-triggered event call the picture and have the plugin command running in a parallel event (don't forget the wait frames!), or you can create a loop within a parallel event.
So at the start of the parallel event, call the picture, then use the "loop" event command and place the plugin command there. Make sure to put wait frames inside the loop, since the loop is just like a parallel/autorun event in the way that it will repeat the processing every frame.

Give this a try. At the very least, if it doesn't fix it, you've at least learned an important thing about optimizing.
thanks for the help, i cant believe i didnt think of that. it started working once i changed it to the trigger to "parallel"! the only thing is that my picture wont disappear after the common event.


Spoiler: my event
1689044410301.png

Spoiler: common event
1689044531225.png

it keeps repeating “hello test”. if u know a workaround or a more efficient way to do this, that would be great. once again, thank you for your reply. 😀
There's a few problems here.
It seems like you ignored some of my advice I had given you in my first response. I'll try not to inundate you with information and just put it simply.
Firstly; you are turning on a self switch to a second event page. You need to share what that event page is doing. Please share a picture of it too.
Secondly; please apply a wait frame at the end of the loop, at least 1 wait frame. Things can and will go funny if there are too many processes happening at once.
Thirdly; please move the "show picture" command outside of the loop.

If you have any question abouts why I recommend these actions, please refer to my first post.
There's a few problems here.
It seems like you ignored some of my advice I had given you in my first response. I'll try not to inundate you with information and just put it simply.
Firstly; you are turning on a self switch to a second event page. You need to share what that event page is doing. Please share a picture of it too.
Secondly; please apply a wait frame at the end of the loop, at least 1 wait frame. Things can and will go funny if there are too many processes happening at once.
Thirdly; please move the "show picture" command outside of the loop.

If you have any question abouts why I recommend these actions, please refer to my first post.
i apologize for my comprehension skills. thank you for putting it into simple terms and pointing out my mistakes. 👍

i changed the code according to your advice.
i tried to make the picture disappear but it still won't work and will keep repeating "hello test"

Spoiler: my event
1689048076852.png

Spoiler: common event
1689048133350.png

once again, thank you for your replies and patience as i am newbie.
You need to apply an erase picture command somewhere in order to remove the picture. It won't just be erased automatically.

As for repeating the common event, I imagine it has to do with this plugin command mentioned in the help documentation you posted:
Code:
P_CALL_CE_REMOVE [Picture number] :
     break relation from picture to common event.
I am guess you need to place this command at the end of your common event to stop the common event from running again after completion.

Side note:
You'd also need to communicate from the common event to the parallel event that it should stop running that loop. You don't want that loop running indefinitely for the rest of your game, so you'd need to break it after it's functionality is complete.
However, I'm not gonna do all the thinking for you, I'll leave it up to you to figure that one out
:LZSwink:
I'm going to second the advice that @TheAM-Dol has given - you might want to look up and do some tutorials on events from YouTube and such. (and, of course, you can read the instructions on them in the help file)

You want to have a solid understanding of what parallel and autorun events mean and how they work (and when and how to turn them off) before you try to implement fancy things with them.
I'm going to second the advice that @TheAM-Dol has given - you might want to look up and do some tutorials on events from YouTube and such. (and, of course, you can read the instructions on them in the help file)

You want to have a solid understanding of what parallel and autorun events mean and how they work (and when and how to turn them off) before you try to implement fancy things with them.
Thanks for the advice, it's been a while since I've used the program so it would be helpful to go over the things I've forgotten.

You need to apply an erase picture command somewhere in order to remove the picture. It won't just be erased automatically.

As for repeating the common event, I imagine it has to do with this plugin command mentioned in the help documentation you posted:
Code:
P_CALL_CE_REMOVE [Picture number] :
     break relation from picture to common event.
I am guess you need to place this command at the end of your common event to stop the common event from running again after completion.

Side note:
You'd also need to communicate from the common event to the parallel event that it should stop running that loop. You don't want that loop running indefinitely for the rest of your game, so you'd need to break it after it's functionality is complete.
However, I'm not gonna do all the thinking for you, I'll leave it up to you to figure that one out
:LZSwink:

Thanks for the help! I'll try it out when I find the time.

Original thread: https://forums.rpgmakerweb.com/threads/trying-out-the-triacotanes-picturecallcommon-plugin-but-i-have-no-idea-on-how-to-use-it.159188/