Variable Window (for menu screen)

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
638
Reaction score
1,081
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

Chief Executive Officer
Veteran
Joined
Nov 12, 2018
Messages
363
Reaction score
341
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,339
Reaction score
483
First Language
English
Primarily Uses
RMVXA

Tw0Face

Chief Executive Officer
Veteran
Joined
Nov 12, 2018
Messages
363
Reaction score
341
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,339
Reaction score
483
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

Chief Executive Officer
Veteran
Joined
Nov 12, 2018
Messages
363
Reaction score
341
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

Chief Executive Officer
Veteran
Joined
Nov 12, 2018
Messages
363
Reaction score
341
First Language
German
Primarily Uses
RMVXA

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
640
Reaction score
416
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,008
Reaction score
11,345
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 Profile Posts

2 things... engine wise, some of these MZ updates seem pretty dope and I'm not even a plugin creator lol. and second, my friend is officially a boss character in my game lol... drew him a few days ago and dropped him into the game today lol.
Well, It is 4:23 here! Time to sleep!
Good night y'all! <3 :rock-right:
Anybody else ready for MZ Ace?
For scrolling of large maps... Minimap, or very small zoom?

Forum statistics

Threads
99,580
Messages
966,957
Members
131,247
Latest member
jaryubibig
Top