Select Item Description - Scripter needed?

I would like to have the Item description shown in the Eventcommand Menu "Select Item".
In the following Thread a Solution is posted, but something is missing.
https://forums.rpgmakerweb.com/inde...for-hovered-items-in-select-item-event.85583/

The Description Window does not automaticly adjust when a textbox +Select Item Command is shown ("top of the screen" or "bottom of the Screen", that it doesnt work if a Textbox is shown in the middle, i could life with).
If the "Select Box" is at upper Screen, the Info Box should be below it.
If the "Select Box" is at lower Screen, the Info Box should be above it.
At the moment its outside the Screen in one of the two cases. The Script only allows to have one of both. I dont know how to condition both cases, because iam not a Scripter and got no clue about the Syntax.
Moved to: Javascript/Plugin Support
Thank you, but i have the feeling noone will see it here nor reply.
Because this is no real Plugin. But its also more than a Script snippet.
Iam doomed.....if i just could use the VX-Ace Version in MV, thatone is working perfectly in any situation.
If you can provide screenshots with the text box and select item box in all the possible locations and indicate where you want the help window to be, I might be able to give you a mod for that plugin.

Where does the select item box appear if there's no text box with it? And where do you want the help window in that case?
MV Standard is:
1. Item Select always appears on the lower Screen when its alone.
In that case the box should directly be over it and both boxes should nearly touch each other.

2. If you put a "Textbox" command before the "Item Select", than the "Item Select" position changes. This is standard in mv and works awesome.
a. If Text Box lower Screen, the Item Select is appearing on Top of the Screen.
For a. Description Window need to be below "Item Select"

b. If Text Box upper Screen, the Item Select is appearing at the lower end of the Screen.
For b. Description Window need to be above "Item Select"

c. If the Textbox is shown in the middle of the Screen, than theSelect Item is shown at the lower Screen(iam aware that a item description would not work properly in this case).
For C i dont need a Item description, it would not be shown properly anyways, and its good to have 1 possibility without description. If its broken in this case, than its sad but i can life with.

3. I can make drawings and upload the Pictures if realy needed.

4. The linked Script(Plugin) can be Edited to do a or b, but iam missing the syntax to have 2 or all 3 cases conditioned.
This is where you could come into play =)

5.
This.Y is used in the Plugin, it contains the Y of the "ItemSelect", it helps to show the "Helpwindow"properly.
Could you somehow use This.Y to make conditions to see where it is? And depending on that show the "Item Description" accordingly?
Or maybe there is even another better way to do this?

Edit:
Hopethisenough.png
Here you go. I've just made the changes in Ossra's plugin as there were a couple of lines to change. Credit Ossra. No need to credit me.

Code:
var Ossra = Ossra || {};

Ossra.Window_EventItem_updatePlacement = Window_EventItem.prototype.updatePlacement;

Window_EventItem.prototype.updatePlacement = function() {
    Ossra.Window_EventItem_updatePlacement.call(this);

    if (this._helpWindow) {
      if (this.y === 0) {
        this._helpWindow.y = this.y + this.windowHeight();
      } else {
        this._helpWindow.y = this.y - this._helpWindow.height;
      }
    }
};

Window_EventItem.prototype.setHelpWindow = function(helpWindow) {
    Window_ItemList.prototype.setHelpWindow.call(this, helpWindow);
    if (this._helpWindow) {
      this._helpWindow.hide();
      this._helpWindow.close();
    }
};

Window_EventItem.prototype.open = function() {
    Window_ItemList.prototype.open.call(this);
    if (this._helpWindow && (!this._messageWindow.isOpen() || this._messageWindow._positionType !== 1)) {
      this._helpWindow.show();
      this._helpWindow.open();
    }
};

Window_EventItem.prototype.close = function() {
    Window_ItemList.prototype.close.call(this);
    if (this._helpWindow) {
      this._helpWindow.hide();
      this._helpWindow.close();
    }
};

Ossra.Window_Message_subWindows = Window_Message.prototype.subWindows;

Window_Message.prototype.subWindows = function() {
  var tmpWindows = Ossra.Window_Message_subWindows.call(this);
  tmpWindows.push(this._helpWindow)
  return tmpWindows;
};

Ossra.Window_Message_createSubWindows = Window_Message.prototype.createSubWindows;

Window_Message.prototype.createSubWindows = function() {
    Ossra.Window_Message_createSubWindows.call(this);

    this._helpWindow = new Window_Help();
    this._itemWindow.setHelpWindow(this._helpWindow);
};
Thank you for your Time, testing this brought up a problem.
When only the command "Select Item" is used without any Textbox, its not appearing on the lower Screen with box above it.
Its appearing upper screen with box below it.

EDIT1: Strange when i talk a second time to the NPC than it appears correctly, but the first time it does not. very strange. (I had multiple textboxes and select items command to test all possibilities)
Edit2: I recreated the Event, the behavior explained stoped, now its always ontop if no textbox is used and only select item. (I only used the one command to test it)

Edit3: I found a way to reproduce the bug of edit1, i have to see if it is also appearing in a new fresh project.
because if i got item select at the start of the event, and a textbox way at the end of my event, this textbox will influence the position of the select item at the start of the event , in case its retriggered/reused. That is something that should definatly not happen. will now test in a new project if this is an RMMV Bug or a Plugin Bug.

FINAL Edit:
1. MY FAULT -The standard Select Item Position is the Top of the Screen, not the Bottom.
So thats my fault.

2. That the last Textbox in Event will influence the next position of Item Select when Event is clicked with action button next time, seems to be very strange and maybe a RMMV Bug or hidden useful thing we dont understand yet. ??? Whats your opinion....my head is smoking...i thought this would be easy...
Directors cut edit: =)
But i will test further, maybe it can stay like this....was just shocked about the not expected behavior. Thank you very much for this.
When I tested, I used a text box at the top, one in the middle, and one at the bottom, each with the select item immediately after, then I tested one with no text box at all. A text box should not influence the position of the select item box, unless they're both shown on the screen at the same time. Try putting a Wait 5 frames after the final text box to see if still causes a problem.

Actually there may be something I can improve there. You want it displayed at the bottom when there's no message box?
I deactivated the Plugin, and the Error is still happaning. Here a Picture of the Event to reproduce the Error.
If this is realy a RMMV Bug, could you report it and let me know, i believe you could explain it better.

The first Time you press Action Button on the Event, the Item Window will be ontop the Screen, the 2nd time it will be on the lower Screen.
I doubt that this is wanted, its not a real problem and easy worked around, but still we found it =).
Your Plugin seems to work fine, i will give it another test tomorrow. Thank you for the help.
rmmv_bug_le_strange.PNG


Edit: If the standard behavior is "Item Box" at upper Screen, than that is absolutly ok for me, and i can workaround it with invisible textbox infront of "itembox" to change the position to where i want it. so it does not need to be changed. Hope this answered your Question, i nearly overread it. But the Bug in the above picture is still strange. Iam using RMMV Version 1.62
The logic is that if the message window is in the lower half of the screen, the item selection box will be placed at the top, otherwise it will go to the bottom. There is no check to see if the message window is actually showing. So if you have a message that's at the bottom, then you do something else, then you show the item selection, it will go to the top, but if you have a message that's at the top, then you do something else, then you show the item selection, it will go to the bottom. In both cases, the position is based on where the message window last appeared, and does not cater for the possibility that the message window isn't actually showing at the moment.

It would be a pretty easy change to move it to a preferred position when there's no message window, so if you want me to do that, just say so 🙂
Thanks for the offer, but no i dont want that, i would not need it, not sure how it would be useful.
I was just a little to suprised over this for me unknown/new behavior in MV. It does no harm and all still works like it should, so no worrys.

EDIT: @Shaz i retested it and it works perfectly fine. Thank you very much for this.
This could be used for Adventure or Horror Games like the Witches House. Thank you, this was very helpful.

Original thread: https://forums.rpgmakerweb.com/threads/select-item-description-scripter-needed.105299/