EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
561
Reaction score
354
First Language
English
Primarily Uses
RMMV
Hopefully someone else has had to do this.

I use the TitleCommonEvent plugin by Jorel Mayer to put an option on my title menu (the option, incidentally, is a common event that can delete saves and reset game progress, in case the user wants to do this).

I would like to add a second option, which would go to another common event (this 2nd event would take the user to some "password" functionality, that would allow them to unlock certain things if they know the correct password).

However, the plugin only supports adding one option, and duplicating it doesn't work (it just uses whichever version of the plugin is higher in the list).

Is there a straightforward way to make this possible?

The plugin is here; I would ask the creator themselves but they've been "away" since 2017.


The plugin basically loads a specified map and carries out the common event. My events immediately return-to-title afterwards.
 
Last edited:

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,743
Reaction score
2,095
First Language
EN
Primarily Uses
RMMZ
I think you'd need to edit the plugin code and parameters for what you're asking. A simple solution would be:
  • Make a copy of the plugin with a different name (e.g. title_common_event2.js)
  • Replace the name of the plugin in this line with the new name:
    JavaScript:
    var params = PluginManager.parameters('title_common_event')
Then you should be able to use that for a second "common event" command.

Alternatively, I happen to have a similar plugin for adding multiple customisable "New Game" commands. Here's a link in case you're interested:
v1.5.0+ of the editor is strongly recommended, otherwise the New Commands parameter will be very awkward to edit. There's no event bind, but you can do that via an Autorun map event~
 

EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
561
Reaction score
354
First Language
English
Primarily Uses
RMMV
I think you'd need to edit the plugin code and parameters for what you're asking. A simple solution would be:
  • Make a copy of the plugin with a different name (e.g. title_common_event2.js)
  • Replace the name of the plugin in this line with the new name:
    JavaScript:
    var params = PluginManager.parameters('title_common_event')
Then you should be able to use that for a second "common event" command.

Unfortunately, this approach yields an error.

1623527361174.png

I guess it's just not designed to be used in this way; I think it might be a bigger job.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,743
Reaction score
2,095
First Language
EN
Primarily Uses
RMMZ
Ah, yep, I had a closer look at that plugin and it seems it defines everything globally. It means you'd also have to rename most of the variables for that to work. :kaoslp:
 

Latest Threads

Latest Profile Posts

I couldn't help myself, so I edited the tiles a bit and made a birdhouse :LZSsmile: I hope I will finish the town today!Screenshot 2021-09-17 134349.png
How do I find the threads I have watched? It's been so long I've forgotten :kaoswt:
So far, this is how the wall tileset its looking in-editor. :kaoswt2:
1631863283853.png
Still thinking on details to add.
Added a plugin to RMMV Plugin Releases with all relevant info but it looks like the topic wasn't approved for whatever reason. Cool.
Working in the IT industry:
- "How long does it take?".
- "It takes 1 month".
- "What if we add more people to the project?".
- "It would take 2 months".

Forum statistics

Threads
115,129
Messages
1,087,449
Members
149,630
Latest member
Unit435
Top