Hi Lyberodoggy,
I have just created a tutorial that shows how to make something happen only on the frames where the plugin is enabled.
You will find it at the following URL:
http://www.adventuremaker.com/phpBB2/vi ... php?t=3615
Note: If it does not answer your question because you also want the code entered under the "Startup" tab of the Plugin Properties to know if the plugin is enabled in the current frame or not, follow these steps:
1) From the "Variables" tab of the Plugin Properties, create a global integer variable. Let's call it "MYVAR"
2) From the "Procedures" tab, create a procedure that sets MYVAR to 1 ("MYVAR = 1"). Let's call it "MYSUB".
3) From the "Interface" tab, create an option for the frame properties, and make it call the procedure "MYSUB" that you created at the previous step.
4) From the "Startup" tab, execute the following code every time that a frame is loaded, BEFORE the rest of the plugin code: "MYVAR = 0"
5) Still from the "Startup" tab, execute the following code every time that a frame is loaded, AFTER the rest of the plugin code:
- Code: Select all
if MYVAR = 0 then MsgBox "the plugin is not enabled on this frame" else MsgBox "the plugin is enabled on this frame"
Regards,
GM-Support