Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Battle menu scrolls?

kkxkn

Member

Ok, quite a simple one (I hope)... but I dunno how to do it myself...

You know how in the battle system (default one), it has four options, Attack, Skill, Defend, Item?
I've already worked out how to add extra options, but what I'm after is a script to make this menu scroll, so that instead of the window size increasing when there's more than four items, it scrolls up and down. Kinda like on the save game screen.

It's probably out there somewhere but I can't seem to find it...

EDIT: Forgot to mention. XP, not VX.
 

Zeriab

Sponsor

It is luckily fairly easy ^_^
Go to line 31-32 in Scene_Battle 1 and insert this:
Code:
    @actor_command_window.height = 160

The section should afterwards look something like this: (Except the added commands)
Code:
    s4 = $data_system.words.item
    @actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])
    @actor_command_window.y = 160
    @actor_command_window.height = 160
    @actor_command_window.back_opacity = 160
    @actor_command_window.active = false
    @actor_command_window.visible = false

*hugs*
- Zeriab
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top