MV Trying to modify Yanfly_PartySystem to show skills

I am using Yanfly_PartySystem Plugin. And I am using a BeastBook Plugin. The BeastBook Plugin lists the skills in a very pleasant way. So my Idea is to replace the Yanfly_Party System Equipment description with the BeastBook skill-list.

following picture is the desired output (actually just the 7 skillicons and names).
desired output.png

following picture shows where the skill-list is supposed to be:

Yanfly partysystem equip desc.png

Any help is appreciated! 🙂
If you copy Window_MonsterInfo over to Window_PartyDetail, those
are 2 different function.

keep in mind, even if you change it Window_Monster to Window_PartyDetail,
rect will be undefined.

so you need to adjust more to make it readable and correctly.
Hi there!
Unfortunately this is not how it works. You cannot simply copy paste a plugin code into another and hope it works.
I suggest you start learning JavaScript first. A tons of free tutorials on internet
Hi there!
Unfortunately this is not how it works. You cannot simply copy paste a plugin code into another and hope it works.
I suggest you start learning JavaScript first. A tons of free tutorials on internet
Isn't a call supposed to copy another method from another object?
Isn't a call supposed to copy another method from another object?
Not exactly like that. That is why I give you the latest answer.
Code:
Window_PartyDetail.prototype.drawActorEquipsList = function(equips) {
var actor = $dataActors[this._actorId];

        var attacks = [];
        var note = actor.note.split(/[\r\n]+/);  //error note is undefined

        for (var i = 0; i < note.length; i++)
        {
            var regex = /<attack:[ ]*(\d+)>/i;
            var match = regex.exec(note[i]);
            if (!match) continue;
            attacks.push(Number(match[1]));
        }

        this.makeFontBigger();
        this.drawText(attacksText, rect.x+5, rect.y+5, rect.width);
        this.makeFontSmaller();

        for (var i = 0; i < attacks.length; i++)
        {
            attack = $dataSkills[attacks[i]];
            var x = rect.x + 26;
            var h = rect.y+60+this.lineHeight()*i;
            var w = rect.width;
            this.drawIcon(attack.iconIndex, x, h);
            this.drawText(attack.name, x + 38, h, w, 'left');
        }
};

following picture is the desired output.
desired output.png

This picture shows the actor notetags that I try to acces, but the code listed above gives me the "note is undefined" error.
notetag input.png
you also missing a point, 1 function like that doesn't show all!

it is called in serveral functions, so you need to find them all,
alternate them all, and place it, it need probably a few new functions
as well, as Eliaquim said, "you cannot simply copy paste code from one to another".

there is more behind the code if you cannot read JS though or understand how
it works.
If copying does not work at all, I would try to do it like this:
1. Create a list of all 6 Notetags of the actor.
2. draw the icons and skillnames.
It probably shouldn't be too complex.
My javascript guess is: Create an array of values of the notetags by looping through all of them.
get the $dataSkills matching the notetag values.
Somehow draw the Icons and strings of the 6 $dataSkills.
Somehow Refresh the window whenever the player hovers over another actor.

It would be awesome if any1 could help me with this. 🙂
A .call does not work here, because the Beastbook-Plugin is an IIFE and IIFE's are not accessible from outside.
Hi there!
Unfortunately this is not how it works. You cannot simply copy paste a plugin code into another and hope it works.
I suggest you start learning JavaScript first. A tons of free tutorials on internet
I did it guys. No need to start learning Javascript 😉.
i motherfcking did id fck the h8ers.png



I only needed to change these 2 words from "equips" to "skills".
i motherfcking did id fck the h8ersss.png

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/trying-to-modify-yanfly_partysystem-to-show-skills.150202/