Separate state lines for buff and debuff

Cvrtis

Veteran
Veteran
Joined
Sep 9, 2013
Messages
239
Reaction score
124
First Language
Russian
Primarily Uses
For example:



The states that I note as a buff - in the one line

The states that I note as a debuff - in the another line

Not only in Menu, in battle window too.

Maybe it can be only a snippet of code?
 
Last edited by a moderator:

Cvrtis

Veteran
Veteran
Joined
Sep 9, 2013
Messages
239
Reaction score
124
First Language
Russian
Primarily Uses
Bump-bump-bump  :)
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
I will need to know if you are going to use any plugin that modifies how the status window looks, and what it is.
 

Cvrtis

Veteran
Veteran
Joined
Sep 9, 2013
Messages
239
Reaction score
124
First Language
Russian
Primarily Uses
 

I will need to know if you are going to use any plugin that modifies how the status window looks, and what it is.
Emm,. are picture in topic broken?

"What is it" - what? You need a plugin?

And for what it need to know, how the status window looks? It so principle?

Can You make a simple little script or snippet, which may then paste into any script?

Oh! And in battle window too, of cource! Not only in Menu.

I imagine it something like that:



Sorry, I'm bad in English, and sometimes I can lose a sense of what someone write.
 
Last edited by a moderator:

Cvrtis

Veteran
Veteran
Joined
Sep 9, 2013
Messages
239
Reaction score
124
First Language
Russian
Primarily Uses

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
Here is a script snippet. Let me know if you want any changes or need more. It's fine

    Window_Base.prototype.drawActorStateBuff = function (actor, x, y, width) {        var icons = [];        actor.states().forEach(function (state) {            if ($dataStates[state.id].meta.buff && $dataStates[state.id].meta.buff === '1' && state.iconIndex > 0) {                icons.push(state.iconIndex);            }        }, this);        width = width || 144;                icons = icons.slice(0, Math.floor(width / Window_Base._iconWidth));        for (var i = 0; i < icons.length; i++) {            this.drawIcon(icons, x + Window_Base._iconWidth * i, y + 2);        }    };            Window_Base.prototype.drawActorStateDebuff = function (actor, x, y, width) {        var icons = [];        actor.states().forEach(function (state) {            if ($dataStates[state.id].meta.debuff && $dataStates[state.id].meta.debuff === '1' && state.iconIndex > 0) {                icons.push(state.iconIndex);            }        }, this);        width = width || 144;                icons = icons.slice(0, Math.floor(width / Window_Base._iconWidth));        for (var i = 0; i < icons.length; i++) {            this.drawIcon(icons, x + Window_Base._iconWidth * i, y + 2);        }    };

You use them like this

        this.drawActorStateBuff(actor, x, y + lineHeight * 2);
        this.drawActorStateDebuff(actor, x, y + lineHeight * 3);

The notetags you use are <buff:1> or <debuff:1>
 

Cvrtis

Veteran
Veteran
Joined
Sep 9, 2013
Messages
239
Reaction score
124
First Language
Russian
Primarily Uses
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,472
Members
137,822
Latest member
madelbylz
Top