RPG Maker Forums

Preface: Sorry if this is the wrong section. My coding vernacular is limited (still learning), so excuse any inaccurate terms I may use (though correcting me would be appreciated).

Hey all,

Hopefully this is a relatively easy question to answer. I'm using Switches to control the amount (and which) commands appear in Window_MenuCommand. I am also using those switches to determine the height of the Windows itself. Rather than having a handful of If statements, is there a variable that basically stores the amount of commands currently displayed? There's a large chance I overlooked it. Something like:

#-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height return fitting_height(command_size) endwould be preferred to my current:

#-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height if $game_switches[15] or if $game_switches[16] return 224 elsif $game_switches[15] and $game_switches[16] return 248 else return 200 end endAny help is appreciated, thanks!

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top