Execute expression within comment ? Yep Event Mini Label

Is it possible to use expressions within comments ?

Because, in my project, I wish to use yanfly Minilabels to popup the players name above the events that represent them in other client's games. For this, the player sends its name to the server upon connection, and the server broadcast to everyone else "hey, spawn an event under the same ID(If doesn't exist already) as the new player, and set variable 100+PlayerID(So it won't impact other variables i'm using) to be its name". Then I need to, within a comment in that event, read the value of the variable 100+That event ID

I tried using the following, but didn't work:
<Mini Label: \V[${$gameVariables.value(100+this.eventId())}]>
(Usually ${Some variable, expression or whatever} within a string is transformed to be the value of that expression. Instead of a name, it displayed "${$gameVariables.value(100+this.eventId())}" ).


Anyone know if It is possible to execute an expression within a comment? And if yes, how to?
You would have to execute the expression beforehand, that plugin will only read through comments in that fashion by using an integer for the variable ID, it won't do the formula on the fly.

Comments can have code in them, you'd want to use eval() to read them.

The event object has a property where the comment is stored (probably called comment), but I'm away from my PC right now .

With the Yanfly Mini Label, the \V[ ] call can only contain the integer ID of the variable, if used as is.

Does any of that answer anything for you?
BTW, I'm sure you know but eval() can read the comment property of the event, not necessarily comments in your JavaScript. But it can read code from strings, which is part of how Mini Label works to begin with
So I tried the Idea of creating an Eval to execute the code instead(If I understood, that was your idea right?)... But doesn't seem to work

https://i71.servimg.com/u/f71/15/27/47/75/114.png
Code:
Code:
var variableid=100+this.eventId()
eval("/* <Mini Label: \\V["+variableid+"]>")

edit:
Trying to add a comment with " eval("<Mini Label: \\V["+eval(100+this.eventId())+"]>") " also doesn't work.
It displays ["+eval(100+this.eventId())+"] above the event

EDIT2:
Solved. I had to do the so called "jeitinho brasileiro", but it worked.

So, I'm storing the names on variables from ID 101 to 200. Before a new event representing a player is spawned, I set the variable ID 99 to be the same value as the variable ID [100 + the player that will be spawned ID(Which starts at 1)]. Since yanfly's plugin will only read the comment value once per page change, even with a hundred players spawning one after the other, each will have their own name.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/execute-expression-within-comment-yep-event-mini-label.106174/