Phileas's Event Label (MZ event label / label above the events)

Plugin name: Phileas's Event Label

Author: Phileas

Version: 1.4.0 for MZ

Release date:
1.0.0 - 2023.July.05
1.1.0 - 2023.July.07
1.1.1 - 2023.July.07
1.2.0 - 2023.July.18
1.2.1 - 2023.December.16
1.2.5 - 2024.May.19
1.3.0 - 2025.January.07
1.3.1 - 2025.January.08
1.4.0 - 2025.April.06

Plugin description:
The plugin adds labels above map events.

Use the note field. It is located to the right of the name field in the event editor.
There you can enter one or more of the following tags:
  • <LabelText:Name> - shows the label "Name". Standard engine control symbols are supported here.
  • <LabelFontFamily:Arial> - sets the font family for a specific label.
  • <LabelFontSize:26> - sets the font size for a specific label.
  • <LabelImage:Actor1> - displays the picture "Actor1.png" (from picture folder).
  • <LabelImagePositionLeft:yes> - if "yes", the image will be displayed to the left of the label text.
  • <LabelXOffset:0> - sets the horizontal offset for a specific label.
  • <LabelYOffset:25> - sets the vertical offset for a specific label.
  • <LabelDistance:50> - the distance beyond which the label is hidden.
  • <LabelCheckDirection:yes> - if "yes", the label is not shown if the player is not looking towards the event.
  • <LabelHideInvisible:no> - if "yes", the label will be hidden if the event is invisible.
  • <LabelOnlyOnHover:yes> - if "yes", the label will only be displayed when the cursor is hovered over.
If you are using a non-default font family (LabelFontFamily), then you need the Phileas_CustomFonts plugin.
Use the name of the font family as the value of the LabelFontFamily tag, which you have set in the Phileas_CustomFonts plugin parameters.

It is mandatory to use the <LabelText> or <LabelImage> tag (at least one of them, you can use both) if you want to display the label above the event. The other tags are optional. If you don't write them, the default values that are configured in the plugin parameters will be used.

You can assign a label to the player character via the plugin parameter or command. Use the same tags as for map events.
Plugin Commands:
  • Show all labels - displays all labels on the map.
  • Hide all labels - hides all labels on the map.
  • Redraw all labels - redraws the contents of the label windows without deleting the windows themselves.
  • Set the label text by id - changes the text of the event label to an arbitrary one.
  • Set the player label text - changes the text of the player character label to an arbitrary one.
  • Show the player label - displays the player label; if the invisible player label is hidden and the player is invisible, then you will not see the label.
  • Hide the player label - hides the player label.

How it looks like:
2023-07-06_03-52-07.png


2023-07-06_03-33-06.png


Code

License

MIT, all responsibility is on the user.

Compatibility:
If there are any problems, write to me.
Update 1.1.0!

2023-07-07_22-14-24.png

  • You can set an label to the player character via a parameter or a plugin command.
  • Using the plugin parameter or tag, you can hide the labels of invisible events (including the player character).
  • 3 new plugin commands that allow you to set the label to the player, as well as force to show or hide the label.

All the details are in the first message of the thread.

Write to me if you find any problems or have any questions. I am open to suggestions for new features.

UPD: hotfix 1.1.1, fixed bugs related to boolean parameters and plugin commands.
Upgrade to version 1.2.0!

Now you can use pictures in the labels (from the picture game folder).
2 tags have been added to customize images: LabelImage and LabelImagePositionLeft.
It is mandatory to use either LabelText or LabelImage to display the label (you can use both, but not necessarily).
The default value LabelImagePositionLeft is set in the plugin parameters.

Read more in the first message of the thread.
Thank you for the great plugin. I'm using it well
Version 1.2.1.

Fixed checking the player's direction.
1.2.2

Fixed a bug in the "Set the label text by id" plugin command
1.2.3

Now the labels set using the plugin commands are saved and restored when the map is reloaded. The reload takes place after closing the game menu, teleporting to the map and loading the save.

Feel free to write to me if you encounter problems or lack some features.
1.2.4

Fixed an issue that caused the text to be cropped at some font size values. It is also now possible to flexibly adjust the line spacing (the option affects the line height).
1.2.5

Added the LabelOnlyOnHover tag, which allows to display the label only when the cursor is hovered over an event.
Thank you! Got this working right away after having issues with a different label plugin. This works like a charm! Thanks so much!!
1.3.0
  • Added alternative plugin commands for customizing labels using command arguments (instead of tags).
  • Now the image position parameter takes 3 values: "left", "center", "right" relative to the text. You can specify the position of the image in the middle. If the label has no text, the picture will be drawn exactly in the middle above the event.
1.3.1
Fixed the rendering of centered images (they had a slight horizontal offset).
Thank you so much for making this plugin! I was previously using VisuStella's Events and Movement Core plugin but they didn't have the option to add a label to the player like yours does.

One feature I'm wondering if it's possible with your plugin would be to change the font type of the label. The VisuStella Message Core has a feature to change the font type via a text command \FontChange<FontName>.

I tried adding the text code but couldn't get it working. Is it possible to either use text codes in the labels or somehow change the font that's being used in the plugin commands?
Sarena, thank you for using the plugin! I am very glad if it turned out to be useful.

One feature I'm wondering if it's possible with your plugin would be to change the font type of the label
No, I did not add the ability to arbitrarily change the font family. I'll add this feature when I have time.
I note that the plugin supports all the control characters that the engine's default message window supports.
1.4.0
Added the ability to set different font families for labels.
You can set the default font family in the plugin settings. It is also possible to specify the font family for a specific label using a tag or a command argument.

What it looks like:
2025-04-07_01-49-20.png

2025-04-07_01-49-26.png


To use this feature, install the Phileas's Custom Fonts plugin above in the plugins menu.
Question for you about this plugin. I have been using this plugin to make Chrono Trigger style location markers for when the player stands on the event. It has been working fine, however when I made a new map to do the same it doesn't work on that map. If zone over to the first map it still works fine. Any idea what could cause it to work on one map and not another?
Question for you about this plugin. I have been using this plugin to make Chrono Trigger style location markers for when the player stands on the event. It has been working fine, however when I made a new map to do the same it doesn't work on that map. If zone over to the first map it still works fine. Any idea what could cause it to work on one map and not another?
Could you give me a test project with this bug?
I have been unable to replicate he issue outside of my project, unfortunately (I guess fortunately in your case lol). But it's fine if I copy the event and paste it functions.

Though I did want to ask how hard would it be to convert it from reading the notes to comment? I wanted to make events that are like ??? Then after you enter and leave it has a name becauseita a new page.
Though I did want to ask how hard would it be to convert it from reading the notes to comment? I wanted to make events that are like ??? Then after you enter and leave it has a name becauseita a new page.
I suppose you can use the plugin command to set a new label value.
I actually tried using that but I use an ever-changing world map. As the game progresses it adds more lands to the map and I do this by changing which map is now the world map. This causes the change using the plugin command to no be applied to the new map. ill just have to figure out something else or another way to do it.

Original thread: https://forums.rpgmakerweb.com/threads/phileass-event-label-mz-event-label-label-above-the-events.158999/