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.

Scrolling problem....

Ok first of all im no scripter, i just wanted to create a simple edit to the skills/items window in battle to make them look better for my project.

I simply changed the size, position and opasity to make them fit my project, however it wont scroll down when i have more then 8 skills (only 8 skills fit in the window)

here is a pic to show you better what i mean:
http://img164.imageshack.us/img164/197/w00tnx1.th.png[/img]

So my question is this: how do you make it scroll down when you hit the bottom of the window?

Here is the edited code:

Code:
# Skills Menu
class Window_Skill < Window_Selectable
  def initialize(actor)
    super(0, 128, 640, 352)
    @actor = actor
    @column_max = 2
    refresh
    self.index = 0
    if $game_temp.in_battle
      self.y = 320
      self.height = 160
      self.back_opacity = 255
      self.z=225
    end
  end
end
# Items Menu
class Window_Item < Window_Selectable
  def initialize
    super(0, 64, 640, 416)
    @column_max = 2
    refresh
    self.index = 0
    if $game_temp.in_battle
      self.y = 320
      self.height = 160
      self.back_opacity = 255
      self.z=225
    end
  end
end

Again i have to say i know nothing about scripting, i only know how to edit very few things, so any help on this would be awesome!

P.S i did search and looked through several topics without any luck!

EDIT: Oh and i forgot to mention that the item menu works fine, it scrolls when it gets to the bottom its just the skills menu that wont.
 

khmp

Sponsor

The reason it wouldn't scroll is because those are the only items that go into those windows. The reason it wouldn't look like it could scroll would be the window skin is missing the section with the four way arrow. My guess is the first suggestion. Those are the only items being added to those windows. Have you done tests where the player has more than 4 skills? If you hit down does the select window disappear?
 
No i dont mean the arrow is missing.. i mean it just cant scroll down to the other skills... in that pic i added i have 11 skills but i cant get past the first 8 because it wont scroll when i get to the bottom.
 

khmp

Sponsor

Alright I tested that script and it worked on mine without mysteriously removing skills. This leaves me to believe that the skills that don't show up for that character have not been learned. Are you sure these skills are on a level less than or equal to that of the character trying to use said skills? I'm really stumped.
 
HAHA LOL your right OMG i cant believe i made a mistake like that SERIOUSLY! 2 of those 10 skills i had was learned on level 2 so of course the first 8 was the only once showing up! im sorry for all this trouble for nothing >.<
 

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