As the title above says, What is the code to be able to take a common event name and have it become a string inside the comment box so that I can template easier.
MV Displaying a common event name as a string inside comment JS
Javascript/Plugin Supportperhaps you should describe what you want to do instead of how you want to do it, because your sentence does not make any sense.
you simply can't change the inside of a comment while the engine is running, everything you want to enter there has to come from outside.
you simply can't change the inside of a comment while the engine is running, everything you want to enter there has to come from outside.
Sorry so I am using Yanflys plugin called common event menu and she uses the comments to add JavaScript her plugins. The thing I want to do is use JavaScript to call the common event name that I am currently using for the menu.
So get the common event name and turn it into a string so I can use it in text within the game.
OK, it is obvious that you don't know how programmer's describe what they do - because you can't call a name (in the programmer's sense), only display it somewhere.
Is that what you want? Then where do you want to display the name of the common event?
Is that what you want? Then where do you want to display the name of the common event?
Ummm so inside one of the fields for the common event menu I want to display the common event name.
<Help Description>
Select "COMMON EVENT NAME" ?
</Help Description>
When the menu opens Help description is a text field inside a box that displays the middle text. I shouldnt have used the word call , I just mean I want to turn the common event name im using for the plugin into a string so it can display in the help description.
<Help Description>
Select "COMMON EVENT NAME" ?
</Help Description>
When the menu opens Help description is a text field inside a box that displays the middle text. I shouldnt have used the word call , I just mean I want to turn the common event name im using for the plugin into a string so it can display in the help description.
Theoretically possible, but not the way you're assuming.
you'll need a plugin modification on the plugin that uses that help description, and force it to eval code instead of just displaying a description.
on top of that, I don't know if the name of the common event is even accessable from the engine by default - it is possible that the name is stored in an editor file because the name itself is not used anywhere in the engine, only the event ID. If it is editor-only you'll also need a plugin to open and load that data.
So for the first you'll need to give a link to the plugin that is processing that "Help Description" and check if the original programmer allowed edits to the plugin.
you'll need a plugin modification on the plugin that uses that help description, and force it to eval code instead of just displaying a description.
on top of that, I don't know if the name of the common event is even accessable from the engine by default - it is possible that the name is stored in an editor file because the name itself is not used anywhere in the engine, only the event ID. If it is editor-only you'll also need a plugin to open and load that data.
So for the first you'll need to give a link to the plugin that is processing that "Help Description" and check if the original programmer allowed edits to the plugin.
So if you just have a little scroll down it will be there. http://www.yanfly.moe/wiki/Common_Event_Menu_(YEP)
Original thread: https://forums.rpgmakerweb.com/threads/displaying-a-common-event-name-as-a-string-inside-comment-js.140291/