MV Using a help window in a command window

Hello, how to setup a help window that show different text when chossing a command in a command window?
Example images:
1681407085239.png

1681407115881.png

1681407151510.png
You might find it easiest to look at how RPG Maker already does this.

For example, check out Window_ItemList, when it calls updateHelp(), and follow the trail through Window_Selectable.setHelpWindowItem() and Window_Help.setItem()

If you inherit from those, it's expecting your list to be objects with certain member properties. If you're not doing that (it's just text and you want other text to display when selecting them), you'll rewrite it at some level, but you can probably still take instruction from the updateHelp() and setHelpWindowItem() methods.

Original thread: https://forums.rpgmakerweb.com/threads/using-a-help-window-in-a-command-window.156638/