As I wrote, that is just an example.
And you must define a refresh method (or name it however you want) which will redraw the contents of the window yourself too, and call that refresh method from the scene, like the example shows.
The args are examples too, there can be more or even none, depends on your refresh method.
Checked your code...
First, is there any reason you inherited from Window_Command instead of Window_Base for your Window_SaveStatus? Because the way I see it, Window_Base is enough. Change that. Make sure to change the initialization method too, WIndow_Base needs 4 arguments for it's super call (x, y, width and height).
Next, remove the update method from Window_SaveStatus. That method would clear and redraw the window in every single frame, which kills your FPS. Also would draw the same stuff over and over.
There is no @command_windowsave variable anywhere in that window either, so it will give you errors for sure. This is the very reason why I suggested that you do the update in the scene class itself, and not in the window class.
And since you will need to pass the index of the command window to that status window, you will have to add an argument for the refresh method inside Window_SaveStatus, name it 'index', for example.
I see that you don't use brackets for your arguments in that refresh method... Fix that.
In the end your refresh method should look like this:
Spoiler
def refresh(index) contents.clear return if index.nil? draw_party_characters(index,150,50) draw_playtime(index, 250, 50, 100, 1) end
I added the index argument where it is needed. Make sure to add it for the two method calls used too! Also change the @command_windowsave.index in those two methods to index.
When this is done, get to the scene class, and paste this code:
Spoiler
def update super update_other_windowsenddef update_other_windows @old_index = @command_windowsave.index if @old_index.nil? if @old_index != @command_windowsave.index @window_save_status.refresh(@command_windowsave.index) @old_index = @command_windowsave.index endend
And this should make it update itself automatically.
Note that I did not test this, but if you did everything right with your drawing methods, it should work.
Also you should take your time to look up on some coding tutorials. There are quite a lot tutorials about window and scene making, those could help you out a lot!