Variable Window (for menu screen)

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
809
Reaction score
1,360
First Language
English
Primarily Uses
N/A
Variable Window (menu screen addon) - 2012.12.06 (Ver1.00)

Creator name:
prico​

Overview

Adds a window that can display variable.

Features
- Switch number to show variable window (0, already displayed by default)
- Variable window title string
- Variable window suffix: ex- ".Pt"
- Shown above the gold window in the menu screen.

Screen


Installation

Paste this script above Main.


Credit and Thanks- Prico
website: Sister's Eternal 4th(Ancient)
URL: http://pricono.whitesnow.jp/

Permission to use: Not required, but please mention in the game, Readme, etc.

Terms of Use- Free for commercial and non-commercial use.
 

Tw0Face

Master Strategist
Veteran
Joined
Nov 12, 2018
Messages
465
Reaction score
377
First Language
German
Primarily Uses
RMVXA
Pretty nice script. :wink: I want to use it but I have to ask some questions before:

- How can I make the Var_Suffix not appear in blue?
- Is there a way to display an icon before Var_Prefix? I tried to insert \i[...] and \\I[...] but both ways didn't work.
- Can "0 .pt" be displayed on the left side or centered instead of right side?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,822
Reaction score
623
First Language
English
Primarily Uses
RMVXA

Tw0Face

Master Strategist
Veteran
Joined
Nov 12, 2018
Messages
465
Reaction score
377
First Language
German
Primarily Uses
RMVXA
@Roninator2: I managed to get the left side display but I have no idea on where to write the draw_icon and how to add the change color.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,822
Reaction score
623
First Language
English
Primarily Uses
RMVXA
add the change color.
If you changed the left side display then you should have seen normal_color. Change the order... code is run from top to bottom. If change color is above the text you want to display, then the text will be the color you set.
no idea on where to write the draw_icon
I haven't been talking about multiple methods, and this script is pretty small.
You're changing info inside the window. There's initialize, refresh and update. All of the display stuff is in refresh, so...
 

Tw0Face

Master Strategist
Veteran
Joined
Nov 12, 2018
Messages
465
Reaction score
377
First Language
German
Primarily Uses
RMVXA
One more question: Is there an ability to have a pop-up-window in certain situations on either side of the screen just like when you want to visit an Inn? Example:

Unbenannt.png
 

Tw0Face

Master Strategist
Veteran
Joined
Nov 12, 2018
Messages
465
Reaction score
377
First Language
German
Primarily Uses
RMVXA

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
685
Reaction score
448
First Language
English
Primarily Uses
RMVXA
@Tw0Face This little add-on should work:
Ruby:
=begin
#==============================================================================#
#   AMN Prico Variable Display Window Add-on
#   Version   1.01
#   Author:   AMoonlessNight
#   Date:     03 Jan 2020
#   Latest:   03 Jan 2020
#==============================================================================#
#   UPDATE LOG
#------------------------------------------------------------------------------#
# 03 Jan 2020 - created the script
#==============================================================================#
#   ORIGINAL SCRIPT: http://pricono.whitesnow.jp/
#==============================================================================#
#   TERMS OF USE
#------------------------------------------------------------------------------#
# - Follow the terms and conditions of the original script
# - Please credit AMoonlessNight or A-Moonless-Night
# - Free for both commercial and non-commercial use
# - I'd love to see your game if you end up using one of my scripts
#==============================================================================#

This script is an add-on for ぷり娘 (prico) RGSS3 Variable Display Window. It
makes it so that you can open the variable window in the message window.

Use the following code in your message to open the variable window:
  \VW

=end

class Window_Message < Window_Base

  alias amn_prico_windmsg_createallwinds create_all_windows
  def create_all_windows
    amn_prico_windmsg_createallwinds
    @var_window = Window_Var.new
    @var_window.x = Graphics.width - @var_window.width
    @var_window.y = 0
    @var_window.openness = 0
  end
  
  alias amn_prico_windmsg_disposeallwinds  dispose_all_windows
  def dispose_all_windows
    @var_window.dispose
  end

  alias amn_prico_windmsg_updateallwinds  update_all_windows
  def update_all_windows
    amn_prico_windmsg_updateallwinds
    @var_window.update
    update_var_wind_pos
  end

  def update_var_wind_pos
    @var_window.y = case @gold_window.y
    when 0 then @gold_window.y + @gold_window.height
    else Graphics.height - (@gold_window.y + @gold_window.height)
    end
    @var_window.y = @gold_window.y unless @gold_window.open?
  end
  
  # OVERWRITE
  def fiber_main
    $game_message.visible = true
    update_background
    update_placement
    loop do
      process_all_text if $game_message.has_text?
      process_input
      $game_message.clear
      @gold_window.close
      @var_window.close
      Fiber.yield
      break unless text_continue?
    end
    close_and_wait
    $game_message.visible = false
    @fiber = nil
  end

  alias amn_prico_windmsg_processescchar process_escape_character
  def process_escape_character(code, text, pos)
    case code.upcase
    when 'VW'
      @var_window.open
    else
      amn_prico_windmsg_processescchar(code, text, pos)
    end
  end

end
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,718
First Language
English
Primarily Uses
RMVXA
@Tw0Face Next time you want an edit to a script, it would be better to start a thread in Script Requests, particularly in cases such as this where the OP did not write the script themselves, but translated it for our convenience.
 

Latest Threads

Latest Posts

Latest Profile Posts

Where is the "world-weary sigh" comment response when you need it? I need that one more than anything, but the closest we have is "wow" or "angry".
My apologies if it's out-of-place for my goyim-lookin' ass to be the one to say it, but the mythology of "Golems" is that they were created by Rabbis to protect Jewish villages from Anti-semetic attacks.
I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason

Forum statistics

Threads
107,775
Messages
1,032,060
Members
139,918
Latest member
Sianar
Top