Status
Not open for further replies.

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,720
Reaction score
5,759
First Language
Dutch
Primarily Uses
RMXP
Hello, I want to use ForeverZer0's journal script in my game.

It's pretty much perfect for what I need, except that it categorizes the Journal into People/Locations/etc.
I don't want to use categories at all, so I've removed all except one from the LIST_ORDER. Only issue is that the player still needs to select that category first, before they're able to see all the entries.

Does anyone know what to edit/remove from this script, so it skips the category window and immediately shows the journal entries?

Thanks in advance.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,192
Reaction score
722
First Language
English
Primarily Uses
RMVXA
Ruby:
#===============================================================================
# ** Scene_Journal
#===============================================================================

class Scene_Journal
#-------------------------------------------------------------------------------
  def main
    # Create lists of the entries for each Journal content type.
    @entry_lists, @index = [], 0
    # Create list of entry titles.
    Journal::LIST_ORDER.each {|key|
      next unless $game_system.journal.has_key?(key)
      window = Window_Command.new(Journal::LIST_WIDTH, $game_system.journal_entries(key))
      window.visible = window.active = false
      window.height = 480
      @entry_lists.push(window)
    }
    # Create window.
    @journal_window = Window_Journal.new
    @windows = @entry_lists + [@journal_window]#, @command_window, @dummy_window]
    # Transition and start main loop for the scene.
    Graphics.transition
    loop {Graphics.update; Input.update; update; break if $scene != self}
    # Dispose all windows and prepare for transition.
    Graphics.freeze
    @windows.each {|window| window.dispose}
  end
#-------------------------------------------------------------------------------
  def update
    # Update all the windows.
    @windows.each {|window| window.update }
    # Branch update method depending on what window is active.
    update_command
    update_entry_selection
  end
#-------------------------------------------------------------------------------
  def update_command
      @entry_lists[@index].active = true
      @entry_lists[@index].active = @entry_lists[@index].visible = true     
      @journal_window.visible = true
  end
#-------------------------------------------------------------------------------
  def update_entry_selection
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      # Deactivate entry list and make command window active.
      @entry_lists[@index].active = false
      @journal_window.visible = false
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      @journal_window.visible = true
      $game_system.se_play($data_system.decision_se)
      type = Journal::LIST_ORDER[@index]
      # Set the type and id variables for the journal window and refresh.
      @journal_window.type = type
      @journal_window.id = $game_system.journal[type][@entry_lists[@index].index]
    end
  end
end
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,720
Reaction score
5,759
First Language
Dutch
Primarily Uses
RMXP
Thank you so much. That works :D

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I've decided to try and be more social and less nervous about engaging. I'm always over thinking things - from now on when I'm worried or don't get something I'll just ask.
Sometimes a mechanic that is meant to add challenge is just annoying. Even the Final Fantasy games did not completely escape this pitfall of design. (FF8 draw system I'm looking at you - grrrr)
starting working on the sprites for one of my games major antagonists finally. here's the first frame of his chanting motion in battle.
Have spent too much time hammering out with a friend just how to make a reoccurring enemy that permanently learns skills you use against her.
I know what I want in a loose sense. Maybe I should just make a post asking for opinions and suggestions.

Forum statistics

Threads
113,737
Messages
1,077,089
Members
147,766
Latest member
imfayzer
Top