EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
557
Reaction score
353
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

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,624
Reaction score
2,002
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
557
Reaction score
353
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

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,624
Reaction score
2,002
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 Posts

Latest Profile Posts

Lee Sang wrote on Bandito's profile.
Hi, I've just tried your plugin "Game is Active" and when I tested it on Android, it gave me an error, something about "Cannot read property 'underfined' of underfined.
With my project, I want the player to have access to all the tools they need to get from New Game to Credits as soon as possible; I want the player's progress to only be impeded by the player not knowing how to use the tools the game provides.
Just a little close up shot...
w2xZocX.jpg
finally drew the last member of "team outcast" for my game. since my game has a lot fighting game elements in it, there's bosses in teams of three like King of Fighters.
What do you guys think about Survival mechanics in games (Hunger, thirst, etc.)?
Do you find them to be an enjoyable obstacle or a bit of a nuisance?

Asking for a friend... :stickytongue:

Forum statistics

Threads
113,855
Messages
1,077,971
Members
147,943
Latest member
dmarco1802
Top