Status
Not open for further replies.

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,483
Reaction score
5,604
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,141
Reaction score
709
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,483
Reaction score
5,604
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 Profile Posts

Figured I would start posting what I am working on here. Anyways, a quest system plugin I have been working on:
20mgjmZ.png


What features would yall like to see in a quest system?
Playing my game to improve my game. (Totally not procrastinating)
Hope he recovers fast :|
Looks like it's functional:

Forum statistics

Threads
112,500
Messages
1,068,731
Members
146,176
Latest member
Spooky_frog
Top