MZ Adding a "Type" class to actors

Hi guys my game has many creature actors with their own classes which covers all their stats, hp etc

But I need to set a custom Type for them, there are 3 = (Data, Vacciene, Virus)

These types dont affect their stats but will affect access to certain areas in the game in the future.

I have looked around but only found custom parameters but that didnt work for me.
1707062632957.png

And you can access that data with a script call that looks roughly like user.currentClass().meta.Type which with the example above should return "Data"
This should work on MV and MZ
View attachment 294059
And you can access that data with a script call that looks roughly like user.currentClass().meta.Type which with the example above should return "Data"
This should work on MV and MZ
Would this not affect his stats? they already have a class with all there stats setup. I just wanted a simple text line under his name in the party menu or in the status screen with the "Type" he is
Would this not affect his stats? they already have a class with all there stats setup. I just wanted a simple text line under his name in the party menu or in the status screen with the "Type" he is
It doesn't do anything to their stats, it just creates a new variable stored on an item from the classes database.

A plugin that adds new text to the status window might look something like this. I haven't tested this but this is just to see what the programming looks like
Code:
//Override
Window_StatusBase.prototype.drawActorSimpleStatus = function(actor, x, y) {
    const lineHeight = this.lineHeight();
    const x2 = x + 180;
    this.drawActorName(actor, x, y);
    this.drawActorType(actor, x, y + lineHeight * 1)
    this.drawActorLevel(actor, x, y + lineHeight * 2);
    this.drawActorIcons(actor, x, y + lineHeight * 3);
    this.drawActorClass(actor, x2, y);
    this.placeBasicGauges(actor, x2, y + lineHeight);
};

Window_StatusBase.prototype.drawActorType = function(actor, x, y, width) {
    width = width || 168;
    this.resetTextColor();
    this.drawText('Type: ' + actor.currentClass().meta.Type || 'None', x, y, width);
};

Original thread: https://forums.rpgmakerweb.com/threads/adding-a-type-class-to-actors.165448/