A downloadable tool

Download NowName your own price

This plugin is supported on both RPG Maker MV and MZ.

Replicating frequent event through your game can be quite time consuming, specially if you find yourself in need of updating all of them. Be it a visual encounter, a chest, an item or NPC, this kind of work can become quite time consuming, but reflecting in little to no progress in a project.

This is a utility plugin. It has two main features:

  • The ability to set an event to automatically copy another (which serves as a template), so that if you ever need to change that chest behavior you can just alter the template. Wherever that template is referenced will be automatically updated the next time you start your game;
  • The ability to transform an event into a template. This feature lets you organize your events with less pages and care for your game's progress in a more organized way. Or even change how an event from another map behaves completely without being limited to switches and variables.

----------------
Terms of use

-----------------

Any plugins developed by taaspider are free for use for both commercial and noncommercial RPG Maker games, unless specified otherwise. Just remember to credit "taaspider".

Redistribution of parts or the whole of taaspider plugins is forbidden (which also includes reposting), unless it comes from this page. You are allowed to edit and change the plugin code for your own use (as long as I'm credited for the original), but you're definitely not allowed to sell or reuse any part of the code as your own. Although not required to use my plugins, a free copy of your game would be nice!

Download

Download NowName your own price

Click download now to get access to the following files:

TAA_EventTemplates.js v1.0.1 33 kB

Development log

Comments

Log in with itch.io to leave a comment.

(1 edit)

Running into an issue with trying to initialize this with existing save files. I keep getting an error of

```

TypeError

Cannot read property '22' of undefined

```
However, the number changes each time.

Can you post a print of the console whenever the error occurs?

It should have a exception stack trace which can help me understand what is going on. It seems the plugin is trying to access an object that is not correctly initialized... I'll need the stack trace to know which one exactly.

(1 edit)

Seems the plugin crashes if there are other events with an unrelated notetag...

 I'm currently using Speech Bubbles by Nolonar,  (https://github.com/Nolonar/RM_Plugins-SpeechBubbles)

which requires a notetag like this "<bubble:[text]>" for a speech bubble to appear over that event. But it looks like the Event Templates plugin has an issue with that because it ends up pulling this error: 

rmmz_managers.js:2032 TypeError: Cannot use 'in' operator to search for 'bubble' in undefined

Is there any way to keep this plugin from freaking out if it encounters an event with a notetag it doesn't recognize?

Hello there!

In theory there should not be any conflict with other notetags, as the only thing the plugin does is run a regular expression on them to check if there is a template tag present. I'll take a look at it over the weekend to figure out what is happening.

Just a question though... the bubble tag is set in the template event, or in the source event that references the template with note tags?
I'll need that info to try and replicate the issue properly! :)

Funny enough, I haven't tried using the speech bubbles on the events that will be event template-ed! The mere presence of seperate/other npc events on the map with the speechbubbles will cause a crash.

I did some experimenting on a fresh project and I figured out that weirdly, it seems to be an odd case where the presence of the EventTemplate Plugin causes something within the SpeechBubble plugin to fail to read itself. 

Here's video1 of it working without the speechbubble:

https://tempclip.com/XQZCRoUtrtrG2s6/watch

And here's video2 of the speechbubble enabled causing a crash:

https://tempclip.com/OwMCHh6UghRZop4/watch

Although! Recently I figured out that commenting out this part of the SpeechBubble plugin's code:

return !!event && NOTETAG_BUBBLE in event.meta;

prevents it from crashing but I end up losing the ability to use the two bottom example event speech bubble commands...

Here's the simple test project on a temp upload thing:

https://fex.net/s/2oms4ly

Hello! Huge thanks for the test project!

So, I figured out what was going on and just released version 1.0.1 with a fix. I used your test project to check if everything was working as expected and it was all 100%, but please try it yourself as well and let me know how it goes! =D

Hot damn! That's incredibly amazing!

I'm curious as to what the problem was, if you're interested in sharing the basics?

I'm so psyched to be able to use both the Gab Window Plugin and your event template, which is an absolute life-saver!

Thank you so much for all your hard work, and long live plugins that use notetags!! 

Sure, it was a rather simple thing actually. The engine has a feature which automatically parses note tags into an object inside the event called "meta". The SpeechBubble plugin didn't look for the note tag itself, it looks for the tags in this meta object.

The problem was that the way my EventTemplates plugin used to load the template event into memory skipped this automatic parse that creates the meta object, so when the SpeechBubble plugin looked for it in the event which loaded a template it wouldn't find the object and crash. What I did was make sure the templates had the meta object properly set when they are loaded into memory! =)