Variable Window (for menu screen)

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
709
Reaction score
1,194
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
430
Reaction score
370
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,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA

Tw0Face

Master Strategist
Veteran
Joined
Nov 12, 2018
Messages
430
Reaction score
370
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,660
Reaction score
563
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
430
Reaction score
370
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
430
Reaction score
370
First Language
German
Primarily Uses
RMVXA

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
681
Reaction score
446
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,712
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top