Variable Window (for menu screen)

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
534
Reaction score
868
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
305
Reaction score
326
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
1,853
Reaction score
408
First Language
English
Primarily Uses
RMVXA

Tw0Face

Chief Executive Officer
Veteran
Joined
Nov 12, 2018
Messages
305
Reaction score
326
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
1,853
Reaction score
408
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
305
Reaction score
326
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
305
Reaction score
326
First Language
German
Primarily Uses
RMVXA

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
544
Reaction score
382
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

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,426
Reaction score
10,849
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

Succesfully finished a quest of saving my kitty who fell from a wall!

+25XP

MrKiwi leveled up!
MrKiwi learned how to save his kitty!
Final sprint for me, although a long one. If everything goes well, I'll graduate by the end of the year. Then I'll have to take the Bar classes and exams (4 months), then I'm off to practicing law (as an intern for 6 months, paid of course, then I'll be a full fledged attorney).
I think there is something wrong with my cat. He is acting CATatonic.
Want to find a quick answer? Say the wrong one and SOMEONE will fall all over themselves to correct you.
Back after almost two years! O_O"
It's time to get back to my unfinished character sprite attempt AND JS/plugin making learning! :D

Forum statistics

Threads
93,572
Messages
913,573
Members
123,101
Latest member
Churlesc
Top