ovate

tale
Veteran
Joined
Dec 16, 2016
Messages
1,049
Reaction score
1,730
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
xNF25Ln.png


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
591
Reaction score
470
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
4,482
Reaction score
1,248
First Language
English
Primarily Uses
RMVXA

Tw0Face

Master Strategist
Veteran
Joined
Nov 12, 2018
Messages
591
Reaction score
470
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
4,482
Reaction score
1,248
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
591
Reaction score
470
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
591
Reaction score
470
First Language
German
Primarily Uses
RMVXA

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
695
Reaction score
452
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
23,078
Reaction score
12,636
First Language
English
Primarily Uses
RMMZ
@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

You know your room is too tiny for how much stuff you have when it gives you literal insomnia. I just cleared a bunch of stuff out and man it feels good!
1670381555475.png
Meet the Kernel. You encounter him in cyberspace. He's important!
I released a test version of my game on itch.io. If anyone wants to check it out, here's the link (for now in Brazilian Portuguese only, sorry).

https://rafael-lobo.itch.io/insolita
Back up your project.
When you open MV to check something while answering a question and accidentally leave it running for 10 hours...yes, that is absolutely time I spent working on my project. >_>

Forum statistics

Threads
127,082
Messages
1,183,796
Members
166,987
Latest member
DeltaBurst
Top