Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Mr.Mo ABS Game Log Window
#1
Mr. Mo Abs Game Log Window
version 1.0

INTRODUCTION:

This system is a new add-on for MrMo's ABS Ultimate that lets you display a log of five seperate messages depending on events that occur, whether they be the obtaining of loot, a quest achievement unlocked... All with a simple script call...

$newmessage = "Obtained the [Ebon Key]!"


In addition, the system was designed to work with the common event script that comes after each monster defeat that you configure, which could allow for multitudes of different loot options, and more! simply place that script call in any common event that you are lijnking to a monster death!

Code:
#==============================================================================
# ** JayRay's ABS GameLog
#------------------------------------------------------------------------------
#    version 1.0
#    by JayRay
#    10-29-2012
#    RGSS / RPGMaker XP
#------------------------------------------------------------------------------
#  
#  INTRODUCTION:
#  =============
#
#  This system is a new add-on for MrMo's ABS Ultimate that lets you display
#  a log of five seperate messages depending on events that occur, whether they
#  be the obtaining of loot, a quest achievement unlocked... All with a simple
#  script call...
#   $newmessage = "Obtained the [Ebon Key]!"
#  
#    
#
#  In addition, the system was designed to work with the common event script that
#  comes after each monster defeat that you configure, which could allow for
#  multitudes of different loot options, and more!
#------------------------------------------------------------------------------
#  
#  INSTALLATION:
#  =============
#
#  This script can be placed anywhere within the Support Scripts section, maybe
#  underneath Mr.Mo's Hud
#  
#
#------------------------------------------------------------------------------
#
#  CREDITS AND THANKS:
#  ===================
#
#  JayRay for putting this gamelog window together, and thanks to DerVVulfman
#  and to MrMo for the ABS system that this script is a support script for.
#  
#==============================================================================
module Gamelog_Window
  # Default hide status of the window (true = hidden, false = visible)
  DEFAULT_HIDE = false
  
  @hide = DEFAULT_HIDE
  def self.hidden?
    return @hide
  end
  def self.hide
    @hide = !@hide
  end
end
#==============================================================================
# ** Window_Gamelog_HUD
#------------------------------------------------------------------------------
#  This window displays amount of gold.
#==============================================================================
class Window_Gamelog_HUD < Window_Base
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :text_opacity                                  # Text opacity
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
super(180,370,300,110)
    self.contents = Bitmap.new(width, height)
    self.back_opacity = 255
    self.opacity = 255
    self.z = 280
    @text_opacity = Gamelog_Window.hidden? ? 0 : 255
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
          def refresh
  
          if $newmessage != nil
            $fifthholdmessage = $fourtholdmessage
            $fourtholdmessage = $thirdoldmessage
            $thirdoldmessage = $secondoldmessage
            $secondoldmessage = $firstoldmessage
            $firstoldmessage = $newmessage
            $newmessage = nil
          end
          self.contents.clear
          self.contents.font.size = 12
          self.contents.font.color = Color.new(255, 255, 255, 255)
          self.contents.draw_text(4,0,200,12,""+ $fifthholdmessage.to_s + "")
          self.contents.draw_text(4,16,200,12,""+ $fourtholdmessage.to_s + "")
          self.contents.draw_text(4,32,200,12,""+ $thirdoldmessage.to_s + "")
          self.contents.draw_text(4,48,200,12,""+ $secondoldmessage.to_s + "")
          self.contents.draw_text(4,64,200,12,""+ $firstoldmessage.to_s + "")

          end

          end

#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs map screen processing.
#==============================================================================
class Scene_Map
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  alias gamelog_hud_main main
  def main
    @gamelog_window = Window_Gamelog_HUD.new
    @gamelog_window.opacity = Gamelog_Window.hidden? ? 0 : 255
    @gamelog_window.text_opacity = Gamelog_Window.hidden? ? 0 : 255
    gamelog_hud_main
    @gamelog_window.dispose    
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias gamelog_hud_update update
  def update
    @gamelog_window.refresh
    @gamelog_window.opacity = Gamelog_Window.hidden? ? 0 : 255
    @gamelog_window.text_opacity = Gamelog_Window.hidden? ? 0 : 255
    gamelog_hud_update
  end
end


Thanks to DerVVulfman, Mr. Mo, and myself...
[Image: yy7iKKb.png]

ITCH: jayray.itch.io
Currently working on Goblin Gulch (MV)
Currently working on JayVinci Resurrection
Currently working on Bakin ABS (BAKIN)
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Name Game Switch & Variable RG kyonides 0 522 06-27-2023, 09:17 PM
Last Post: kyonides
Photo  Map Tileset Changer during the game Narzew 1 5,702 05-06-2013, 09:18 PM
Last Post: Narzew
   DerVVulfman's Game Data Sneak DerVVulfman 2 6,584 04-04-2013, 03:50 AM
Last Post: DerVVulfman
   Battle Report Script Window style mageone 4 15,480 03-20-2013, 10:51 PM
Last Post: KasperKalamity
   Limit Breaker - breaks game limits Narzew 1 5,690 10-09-2012, 10:35 AM
Last Post: MetalRenard
   In game Tone change ! Grimimi 1 4,647 10-09-2012, 01:31 AM
Last Post: Samven
   Semi Ace Window System XP kyonides 0 5,153 10-01-2012, 11:25 PM
Last Post: kyonides
   Skip Party Command Window Helladen 0 4,355 07-27-2012, 06:43 AM
Last Post: Helladen
   Naramura Window System Kirito 2 9,746 05-06-2012, 05:40 AM
Last Post: Kirito
   Advanced Shop Status Window RPG Advocate 4 11,064 08-21-2011, 05:12 AM
Last Post: DerVVulfman



Users browsing this thread: