Expanded Skill Description Plugin

Back then, i was using Expanded Skill Description script by Soulpour777 in Vx Ace which gave me a new-looking skill scene and i could write more descriptions as Notetags rather than just 2 default lines. Here is the script in Vx Ace: http://rmrk.net/index.php?topic=49209.0

I'm wondering if there is any plugin similar to this in MV. Really love to see one because most of my skills have lots of effects which i want to let players know.
Here is a quick plugin.
PHP:
Window_Help.prototype.initialize = function(numLines) {
    var width = Graphics.boxWidth;
    //var height = this.fittingHeight(numLines || 2);
    var height = this.fittingHeight(6);//six lines
    Window_Base.prototype.initialize.call(this, 0, 0, width, height);
    this._text = '';
};
Window_Help.prototype.setText = function(text) {
    if (this._text !== text) {
        this._text = text.replace(/\\n/g,"\n");
        this.refresh();
    }
};
I added two small things to these default functions.

This increases description up to six lines. Edit it down if you don't need that many.
The second function is to re-stripSlashes for newlines because I think somewhere in that thing it adds slashes to description newlines.
Because the editor only allows 2 lines, I had to add newlines as \n
Code:
this is line one\nthis is line two\nthis is line three\nthis is line four\nthis is line five\nthis is line six

Screen%20Shot%202017-03-24%20at%206.45.02%20AM.png
Thanks @mogwai i will give it a try! I might even need more than 6 😀

Edited: However, it takes too much space during battle and i can hardly select my targets :blink:
It appears I bit off more than I can chew with this one. It looks like I got a project. I'll start right away and keep you posted.
First a question: Would you be opposed to a one-line scrolling marquee?
It would also be nice for line scrolling. I used to have a script like that in Vx Ace. The two default lines can be scrolled horizontally till the end then back to the beginning.
As a game player, a two line horizontal scrolling text would trigger my dyslexia and I wouldn't know which line to focus on. I think it would be easier for the script and the player to just do one line.

I have another idea I'm a little afraid to attempt, but how would you feel about a context menu
  • use
  • info
on every item and skill? This will be harder for me to achieve than the scrolling marquee, but I'm feeling up for an adventure.
I will be grateful for everything better than 2 default lines, but shouldn't affect much to the battle scene. I think your idea is quite a promised one and i would love to see it come to life 😀
scrolltext.gif


I did the easy way first. I'll do it the other way if you don't like it.
You can modify the numbers too of course, to fit your liking.
PHP:
Window_Help.prototype.initialize = function(numLines) {
    var width = Graphics.boxWidth;
    var height = this.fittingHeight(numLines || 1);
    Window_Base.prototype.initialize.call(this, 0, 0, width, height);
    this._text = '';
};
Window_Help.prototype.close = function() {
    if (!this.isClosed()) {
        this._closing = true;
    }
    clearInterval(this._offputScroller || 0);
    this._opening = false;
};
Window_Help.prototype.setText = function(text) {
    if (this._text !== text) {
       this._text = text;
       this._scrollPause = 40; // scroll pause
       this._offputScroll = this._scrollPause;
       if(this.textWidth(this._text) < this.contentsWidth()){
           this.refresh(false);
       }else{
           clearInterval(this._offputScroller || 0);
           var _this = this;
           this._offputScroller = setInterval(function(){
               _this.refresh(true);
           }, 10);
       }
    }
};
Window_Help.prototype.refresh = function(doubleLen) {
   var space = "                      "; // space between repeats
    this.contents.clear();
    this.drawTextEx(
       this._text + (doubleLen ? space + this._text : ''),
       (this._offputScroll < 0 ? this._offputScroll : 0), //x
       0 // y
    );
   this._offputScroll -= 1.5; // scroll speed
   if(Math.abs(this._offputScroll) >= this.textWidth(this._text + space))
       this._offputScroll = this._scrollPause;
};
Wow that was fast. Thank you so much i will give it a try 😀

Edited: It did its job well, but outside battle. However, it also had a problem in battle. After choosing a skill with long description and then selecting target, my target's name appeared in a blink then disappeared right away. It looked like this after all:
1_zps5n9clavc.png


Besides, i'm using the pre-bundled SimpleMsgSideView plugin (provided by Kadokawa along with MV). After the steps above, the actions' names are not shown when used anymore (like "Attack" or "Skill Name"). Did try to put your plugin above or below it but there is no difference.
I can't seem to be able to reproduce this error using SimpleMsgSideView. Is there another plugin doing Window_Help.prototype?

If this is not conflict related, my guess is the repetitive fillText is overwhelmed by 6 lines of description.

For what it's worth, since you have over 6 lines of description, a scrolling marquee might be too tedious for the player anyway. Might I interest you in my other plugin for a dictionary/codex of sorts?
https://forums.rpgmakerweb.com/index.php?threads/tooltip-on-text.76447/#post-718562
It's a work in progress.
That also looks interesting. I have already found the place to use it in my project ☺️
scrolltext.gif


@mogwai This is a very cool snippet! But when I implemented it in my project, for some reason the description text gets cut off before finishing rotating and resets 🙁 Isn't there a way to make it loop seamless indefinitely regardless of text font/size used? Some fix maybe?
I don't know your particular project so you might have to tinker with the javascript.

The rapid fillText and clearRect kinda makes this scrolling one a bit resource heavy anyway.

I recommend you look at the other two plugins for big item descriptions.

Original thread: https://forums.rpgmakerweb.com/threads/expanded-skill-description-plugin.76291/