[RPGMMV] STV_Beastbook customization

Hello,

I'm using the STV_Beastbook alongside YEP_ExtraEnemyDrops and YEP_JobPoints (all links below)


Is it possible to custom the Beastbook so we can see the extra enemy drops and the JP earned in the monster description?

Since we're using the following notetags in the enemy database :
Code:
<JP: x>
and
Code:
<Item x: y%>
<Weapon x: y%>
<Armor x: y%>

I thought it could be possible to add a line for the JP earned by taking the information from the JP notetag and same thing for the item drops.
If anyone think it's possible to do it, i'll be very gratefull.
If anyone as a simpler idea to add these features, i take it too.

Thanks a lot.
See you later 🙂

PLUEVNR
Bump

any idea ?
I found how to write the JP earned by monsters writing this code

Code:
    Window_BeastBook_Info.prototype.contentDrawJP = function() {
        y = this.lineHeight();
      
        this.contents.paintOpacity = stv_BeastBook_bbOpacity;
        this.contents.fillRect(0, (this.contents.height - y*2) - stv_BeastBook_padding, this.contents.width, y, this.gaugeBackColor());
        this.contents.paintOpacity = 255;
      
        this.drawIcon(stv_BeastBook_JPIcon, this.contents.width - 32, this.contents.height - y*2 + 2 - stv_BeastBook_padding);
        this.drawText("Job Points:", 0, this.contents.height - y*2 - stv_BeastBook_padding);
        this.drawText(this._beast.meta.JP, this.contents.width - 32 - this.textWidth(32) - stv_BeastBook_padding, this.contents.height - y*2 - stv_BeastBook_padding);

    };

1585088184546.png




I still don't find about the items. If anyone has done it, I'd be glad if you could help me please.
It seems to be around this code but I don't understand much :

Code:
    Window_BeastBook_Info.prototype.contentDrawItems = function() {
        var y = this.lineHeight();
        var maxLength = ((this.contents.width/2) - stv_BeastBook_padding*2 - this.textWidth("100%"));
      
        this.contents.fillRect(0, y-5, (this.contents.width/2) - stv_BeastBook_padding, 1, this.normalColor());
        this.drawText(stv_BeastBook_dropsText, 0, 0);
      
        for (var j = 0; j < 3; j++) {
            var di = this._beast.dropItems[j];
            if (di.kind > 0) {
                if ($beastBook.beasts[this._beast.id] && $beastBook.beasts[this._beast.id].discoveredItems[j]) {
                    var item = Game_Enemy.prototype.itemObject(di.kind, di.dataId);
                    var successRate = Math.round((1/this._beast.dropItems[j].denominator)*100);
                    this.changeTextColor(this.textColor(stv_BeastBook_dropsSuccessColor));
                    this.drawText(successRate + "%", 0, y);
                    this.changeTextColor(this.normalColor());
                    this.drawItemName(item, this.textWidth("100%") + stv_BeastBook_padding, y, maxLength);
                } else {
                    this.changeTextColor(this.textColor(stv_BeastBook_unknownColor));
                    this.drawText(stv_BeastBook_unknownData, 0, y, maxLength);
                    this.changeTextColor(this.normalColor());
                }
                y += this.lineHeight();
            }
        }
 
        if (!this._beast.dropItems[0].kind && !this._beast.dropItems[1].kind && !this._beast.dropItems[2].kind) {
            this.changeTextColor(this.textColor(stv_BeastBook_unknownColor));
            this.drawText(stv_BeastBook_noData, 0, y);
            this.changeTextColor(this.normalColor());
        }   
    };
I dont know if someone will care about this anymore, but if you delete the 'if' and the 'else' and change the '3' in for "(var j = 0; j < 3; j++) {"
to a bigger number, it recognizes drops from Yanfly Extra Drops.
Ignore the post above, is just clownery, changing the 3 for "this._beast.dropItems.length" seems to do it without any crash:
Code:
Window_BeastBook_Info.prototype.contentDrawItems = function() {
        var y = this.lineHeight();
        var maxLength = ((this.contents.width/2) - stv_BeastBook_padding*2 - this.textWidth("100%"));
      
        this.contents.fillRect(0, y-5, (this.contents.width/2) - stv_BeastBook_padding, 1, this.normalColor());
        this.drawText(stv_BeastBook_dropsText, 0, 0);
      
        for (var j = 0; j < this._beast.dropItems.length; j++) {
            var di = this._beast.dropItems[j];
            if (di.kind > 0) {
                
                    var item = Game_Enemy.prototype.itemObject(di.kind, di.dataId);
                    var successRate = Math.round((1/this._beast.dropItems[j].denominator)*100);
                    this.changeTextColor(this.textColor(stv_BeastBook_dropsSuccessColor));
                    this.drawText(successRate + "%", 0, y);
                    this.changeTextColor(this.normalColor());
                    this.drawItemName(item, this.textWidth("100%") + stv_BeastBook_padding, y, maxLength);
                
                y += this.lineHeight();
            }
        }
    };
4 items

3.png

Original thread: https://forums.rpgmakerweb.com/threads/rpgmmv-stv_beastbook-customization.118552/