RMMV Trying to modify Yanfly_PartySystem to show skills

Status
Not open for further replies.

HornsterLG

Veteran
Veteran
Joined
Dec 19, 2021
Messages
66
Reaction score
20
First Language
german
Primarily Uses
RMMV
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


Code:
Window_PartyDetail.prototype.getActorEquips = function() {
    var equips = [];
    for (var i = 0; i < this._actor.equips().length; ++i) {
      var equip = this._actor.equips()[i];
      if (equip) equips.push(equip);
    }
    return equips;
};

Window_PartyDetail.prototype.drawActorEquipsList = function(equips) {
   
    this._lastSlot = false;
    var max = this._linesAvailable;
    var ww = this.contents.width / 2;
    var wh = this.lineHeight();
    var wy = this.lineHeight() * 4;
    var wx = ww + 6;
    ww -= 12;
    if (this._linesAvailable >= 7) {
      max -= 1;
      wy += this.lineHeight();
    }
    if (this._linesAvailable === 4) {
      max -= 1;
      wy += this.lineHeight();
    }
    for (var i = 0; i < equips.length; ++i) {
      var equip = equips[i];
      if (!equip) break;
      if (i >= max - 1 && i < equips.length - 1) this._lastSlot = true;
      if (this._lastSlot) {
        var iconIndex = equip.iconIndex;
        this.drawIcon(iconIndex, wx + 2, wy + 2);
        wx += Window_Base._iconWidth;
        continue;
      } else if (this._lastSlot && i === equips.length - 1) {
        var iconIndex = equip.iconIndex;
        this.drawIcon(iconIndex, wx + 2, wy + 2);
        wx += Window_Base._iconWidth;
      } else {
        this.drawItemName(equip, wx, wy, ww);
      }
      wy += this.lineHeight();
    }

This is probably most of the code that needs to be modified. However I tried modifying it and I can't even seem to get any output.


Any help is appreciated! :rhappy:
 

HornsterLG

Veteran
Veteran
Joined
Dec 19, 2021
Messages
66
Reaction score
20
First Language
german
Primarily Uses
RMMV
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
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,943
Reaction score
6,304
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

So, yeah. It's there.

Clarn Hold
(No storylines)
There was a tutorial on how to draw anime eyes. Just draw Among Us. So I tried.
Screenshot_107.jpg
DamageActor3_7.png added!
index.php

Making a "characters first appearance" drawing for my game. Now I just have to finish the sprite art animation for her grand entrance.​

Forum statistics

Threads
125,540
Messages
1,171,821
Members
164,614
Latest member
guymelul
Top