RPG Maker Forums

I'm making a custom scene with three custom windows. One is a command window that lists nine options for factions to ally with, and then a basic window lists off some information about a faction that has been selected from the command window. I want the player to select two factions, then select some bonus options from both factions. For (supposed) simplicity, I want to use the same command and display windows for each of these options.

Throughout this process, the command window has 9, 8, 4, and then 4 items in it. I want that window to resize itself after each choice. I found an archived thread that offered this snippet:

self.height = fitting_height(@list.size)
create_contents

The first line is supposed to resize the menu, but has the side-effect of emptying the contents. The second line refills it. However, when I try to run it myself, I get an error at the first line mentioning a "disposed window." I'm not entirely sure why this is, since nothing is being disposed - at least as far as I understand it.

Why doesn't this work? Is there a different method for resizing a command window?

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top