Status
Not open for further replies.

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,706
Reaction score
5,754
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,191
Reaction score
721
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,706
Reaction score
5,754
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

In the past hour I've both joined and left the RPG Maker subreddit. So many memories were made. Power to the gam mak!
So the number one complaint I get so far is the levels are simply too large. What's funny is in testing I deemed levels taking too long and actually shortened them. Figuring I could beat them in 5-6 minutes so players would be able to do so in probably double that. I was apparently very mistaken, only one player has mentioned even reaching the second area. Let alone the first boss. :kaoswt:
I don't believe it. I actually did some proofreading in my game - and fixed some grammar errors! I feel so accomplished, knowing I can actually proofread my own writing!
...I've had a bad day, okay? Bad enough for me to want to proofread stuff. :yswt2:
Ughhh, July is not my month. Thankfully, it's nearly done.
mercba30 wrote on Jesse - PVGames's profile.
How do I get the new version of the character creator? Thank you in advance!

I fixed the lips and noses for MZ! The files have been updated.
qQwgk8C.png

Everything below!

Forum statistics

Threads
113,675
Messages
1,076,591
Members
147,695
Latest member
GirlintheToilet
Top