MZ Visustella MZ Message Core: Using Text Code Replacements in <Custom Status Info>

What do I want to do?

Currently, I try to configure my Custom Status Info Screen for my Items. Specifically, there is an item which is a template for other items (done with Database Inheritance), in which I put the <Custom Status Info Screen> Notetag. The idea is that this allows every item that inherits from the template item also to use the <Custom Status Info Screen>. Now, the notetags has the following 3 Keys:


HP Heal: \HpHeal[1]
MP Heal: \MpHeal[parseInt(this.item().id)]
HP Regeneration: $dataItems[this.item().id].meta.HpRegen + " over " + $dataItems[this.item().id].meta.HpRegenTurns + " Turns"

The Second and the Third of these keys is a different version of my tries to achive what I want, namely that the value is dependent on the item that is currently looked at. The first key is the manual version, which doesn't work for my purposes, so it not a solution here. The other versions suffer from the problem, that the values i gave them are interpreted not as code which returns a number, but are just put onto the screen without going first through the code behind the text code. Now the problem is that I have no clue how to give the text code the ID of the item without at least some kind of code, so I think I need to add an eval() inside the plugin Parameters in order to make it work, but I wonder if there is a better solution to that problem then what I try to do.

Code of the Text Code:

let database = $dataItems;
let item = database[parseInt(arguments[1])];
return item.meta.MpHeal;

Original thread: https://forums.rpgmakerweb.com/threads/visustella-mz-message-core-using-text-code-replacements-in-custom-status-info.155603/