I have a part in one of my projects where you are driving a car, and when you hit certain things someone else comments. The text box popping up and stopping all movement is really annoying, and breaking the flow. Is it possible to make movement work with the textbox?
Text box that doesn't stop movement
RGSS3 Script Requestshttps://galvs-scripts.com/galvs-event-pop-ups/
You could use this and have proxy items with the same name as the text you want to pop up. Just be sure to remove them once the event is done so people don't see the exposed wiring of this solution
You could use this and have proxy items with the same name as the text you want to pop up. Just be sure to remove them once the event is done so people don't see the exposed wiring of this solution
http://www.yanfly.moe/wiki/Gab_Window_(YEP) Yanfly's Gab Window is also an option.
Except vx ace doesn't use java script
Haha sorry I didn't notice the version. Forget all that I said. :hswt:
Yanfly has a gab window for Ace too 🙂
I can't seem to get the ace version of the Gab script to work. I've read the instructions like 10 times and just keeps giving me NameError occurred.
It will be more informative if you just post the screenshot of the error and what you actually did than saying that you have read the instruction.
Here's a screenshot I took with the console, and a test event.
Can you show your script editor showing the Gab window script?
Screenshot of the editor:
Here's the entire script.
Here's the entire script.
#==============================================================================
#
# ▼ Yanfly Engine Ace - Gab Window v1.00
# -- Last Updated: 2012.01.23
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$imported["YEA-GabWindow"] = true
#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2012.01.23 - Started Script and Finished.
#
#==============================================================================
# ▼ Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Sometimes there's random jibber jabber that does not warrant a message box.
# The Gab Window fulfills that jibber jabber by placing such text outside of
# the message window box and at the corner of the screen. The gab text will
# appear briefly and then disappear, not showing up again until the gab text is
# updated with something else.
#
#==============================================================================
# ▼ Instructions
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# To install this script, open up your script editor and copy/paste this script
# to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
#
# -----------------------------------------------------------------------------
# Script Calls - These commands are used with script calls.
# -----------------------------------------------------------------------------
# These script calls can only be used from a map. The Gab Window will not
# appear in battle or anywhere else.
#
# gab(string)
# This will cause the Gab Window to appear with the string shown. Text codes
# can be used inside the string. When using text codes, remember to use "\\"
# for a single slash.
#
# gab(string, actor_id)
# This will cause the Gab Window to appear with the string and the actor's
# sprite. Text codes can be used inside the string. When using text codes,
# remember to use "\\" for a single slash. There are special ID's that
# can be used in place of the actor_id:
# 0 - Party Leader
# -1 - 1st non-leader member.
# -2 - 2nd non-leader member. So on.
#
# gab(string, char_name, char_index)
# This will cause the Gab Window to appear with the string shown and a sprite
# using char_name as the filename of the character sprite and char_index as the
# index of the character sprite. Text codes can be used inside the string. When
# using text codes, remember to use "\\" for a single slash.
#
# clear_gab
# This will cause the gab window to clear itself and immediately go invisible.
# This will also allow a previously used gab prior to the clearing to reappear
# immediately if followed up by another gab.
#
#==============================================================================
# ▼ Compatibility
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
# it will run with RPG Maker VX without adjusting.
#
# This script is compatible with Yanfly Engine Ace - Ace Message System v1.04+.
# The positioning of these two scripts relative to each other does not matter.
#
#==============================================================================
module YEA
module GAB_WINDOW
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# - Gab Settings -
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# These are the general settings used involving the Gab Window. Here, you
# can change the Y location of the window (remember, it's two lines tall),
# default font size, the position of the character sprites, and the amount
# of time the Gab Window will remain fully visible before fading.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Y_LOCATION = 36 # This sets the Y location of the gab window.
FONT_SIZE = 18 # This is the font size used for the gab window.
CHAR_X_POS = 24 # This sets the X location of the character shown.
CHAR_Y_POS = 40 # This sets the Y location of the character shown.
BASE_TIME = 60 # Minimum frames the window will stay visible for.
TIME_PER_TEXT = 4 # Frames added per text character.
HIDE_SWITCH = 25 # If switch is ON, Gab Window will not appear.
end # GAB_WINDOW
end # YEA
#==============================================================================
# ▼ Editting anything past this point may potentially result in causing
# computer damage, incontinence, explosion of user's head, coma, death, and/or
# halitosis so edit at your own risk.
#==============================================================================
#==============================================================================
# ■ Switch
#==============================================================================
module Switch
#--------------------------------------------------------------------------
# self.hide_gab_window
#--------------------------------------------------------------------------
def self.hide_gab_window
return false if YEA::GAB_WINDOW::HIDE_SWITCH <= 0
return $game_switches[YEA::GAB_WINDOW::HIDE_SWITCH]
end
end # Switch
#==============================================================================
# ■ Game_Interpreter
#==============================================================================
class Game_Interpreter
#--------------------------------------------------------------------------
# new method: gab
#--------------------------------------------------------------------------
def gab(text, case1 = nil, case2 = nil)
return unless SceneManager.scene_is?(Scene_Map)
if case1.is_a?(Integer)
case1 = $game_party.members[case1.abs].id if case1 <= 0
actor = $game_actors[case1]
if !actor.nil?
case1 = actor.character_name
case2 = actor.character_index
end
elsif case1.is_a?(String)
case2 = 0 if case2.nil?
end
SceneManager.scene.setup_gab_window(text, case1, case2)
end
#--------------------------------------------------------------------------
# new method: clear_gab
#--------------------------------------------------------------------------
def clear_gab
return unless SceneManager.scene_is?(Scene_Map)
SceneManager.scene.clear_gab
end
end # Game_Interpreter
#==============================================================================
# ■ Window_Gab
#==============================================================================
class Window_Gab < Window_Base
#--------------------------------------------------------------------------
# initialize
#--------------------------------------------------------------------------
def initialize
dx = -standard_padding
dy = YEA::GAB_WINDOW::Y_LOCATION
super(dx, dy, Graphics.width + standard_padding, fitting_height(2))
setup_message_font if $imported["YEA-MessageSystem"]
clear
end
#--------------------------------------------------------------------------
# clear
#--------------------------------------------------------------------------
def clear
self.opacity = 0
self.contents_opacity = 0
@opacity_timer = 0
clear_settings
end
#--------------------------------------------------------------------------
# clear_settings
#--------------------------------------------------------------------------
def clear_settings
@text = ""
@graphic = nil
@index = nil
end
#--------------------------------------------------------------------------
# reset_font_settings
#--------------------------------------------------------------------------
def reset_font_settings
super
contents.font.size = YEA::GAB_WINDOW::FONT_SIZE
end
#--------------------------------------------------------------------------
# setup
#--------------------------------------------------------------------------
def setup(text, graphic, index)
return if settings_match?(text, graphic, index)
@text = text
@graphic = graphic
@index = index
@opacity_timer = YEA::GAB_WINDOW::BASE_TIME
@opacity_timer += YEA::GAB_WINDOW::TIME_PER_TEXT * @text.size
refresh
end
#--------------------------------------------------------------------------
# settings_match?
#--------------------------------------------------------------------------
def settings_match?(text, graphic, index)
return false if @text != text
return false if @graphic != graphic
return false if @index != index
return true
end
#--------------------------------------------------------------------------
# update
#--------------------------------------------------------------------------
def update
super
self.visible = show_window?
update_contents_opacity
end
#--------------------------------------------------------------------------
# show_window?
#--------------------------------------------------------------------------
def show_window?
return false if $game_message.visible && $game_message.position == 0
return !Switch.hide_gab_window
end
#--------------------------------------------------------------------------
# update_contents_opacity
#--------------------------------------------------------------------------
def update_contents_opacity
if @opacity_timer > 0 && self.contents_opacity >= 255
return @opacity_timer -= 1
end
self.contents_opacity += @opacity_timer > 0 ? 16 : -4
end
#--------------------------------------------------------------------------
# refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_background_colour
draw_graphic
draw_text_ex(48, line_height / 2, @text)
end
#--------------------------------------------------------------------------
# draw_background_colour
#--------------------------------------------------------------------------
def draw_background_colour
temp_rect = contents.rect.clone
temp_rect.width *= 0.667
back_colour1 = Color.new(0, 0, 0, 192)
back_colour2 = Color.new(0, 0, 0, 0)
contents.gradient_fill_rect(temp_rect, back_colour1, back_colour2)
end
#--------------------------------------------------------------------------
# draw_graphic
#--------------------------------------------------------------------------
def draw_graphic
char_name = @graphic
char_index = @index
dx = YEA::GAB_WINDOW::CHAR_X_POS
dy = YEA::GAB_WINDOW::CHAR_Y_POS
draw_character(char_name, char_index, dx, dy)
end
end # Window_Gab
#==============================================================================
# ■ Scene_Map
#==============================================================================
class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
# alias method: create_all_windows
#--------------------------------------------------------------------------
alias scene_map_create_all_windows_gab create_all_windows
def create_all_windows
scene_map_create_all_windows_gab
create_gab_window
end
#--------------------------------------------------------------------------
# new method: create_gab_window
#--------------------------------------------------------------------------
def create_gab_window
@gab_window = Window_Gab.new
end
#--------------------------------------------------------------------------
# new method: setup_gab_window
#--------------------------------------------------------------------------
def setup_gab_window(text, graphic = nil, index = nil)
@gab_window.setup(text, graphic, index)
end
#--------------------------------------------------------------------------
# new method: clear_gab
#--------------------------------------------------------------------------
def clear_gab
@gab_window.clear
end
#--------------------------------------------------------------------------
# alias method: pre_transfer
#--------------------------------------------------------------------------
alias scene_map_pre_transfer_gab pre_transfer
def pre_transfer
scene_map_pre_transfer_gab
clear_gab
end
end # Scene_Map
#==============================================================================
#
# ▼ End of File
#
#==============================================================================
#
# ▼ Yanfly Engine Ace - Gab Window v1.00
# -- Last Updated: 2012.01.23
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$imported["YEA-GabWindow"] = true
#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2012.01.23 - Started Script and Finished.
#
#==============================================================================
# ▼ Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Sometimes there's random jibber jabber that does not warrant a message box.
# The Gab Window fulfills that jibber jabber by placing such text outside of
# the message window box and at the corner of the screen. The gab text will
# appear briefly and then disappear, not showing up again until the gab text is
# updated with something else.
#
#==============================================================================
# ▼ Instructions
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# To install this script, open up your script editor and copy/paste this script
# to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
#
# -----------------------------------------------------------------------------
# Script Calls - These commands are used with script calls.
# -----------------------------------------------------------------------------
# These script calls can only be used from a map. The Gab Window will not
# appear in battle or anywhere else.
#
# gab(string)
# This will cause the Gab Window to appear with the string shown. Text codes
# can be used inside the string. When using text codes, remember to use "\\"
# for a single slash.
#
# gab(string, actor_id)
# This will cause the Gab Window to appear with the string and the actor's
# sprite. Text codes can be used inside the string. When using text codes,
# remember to use "\\" for a single slash. There are special ID's that
# can be used in place of the actor_id:
# 0 - Party Leader
# -1 - 1st non-leader member.
# -2 - 2nd non-leader member. So on.
#
# gab(string, char_name, char_index)
# This will cause the Gab Window to appear with the string shown and a sprite
# using char_name as the filename of the character sprite and char_index as the
# index of the character sprite. Text codes can be used inside the string. When
# using text codes, remember to use "\\" for a single slash.
#
# clear_gab
# This will cause the gab window to clear itself and immediately go invisible.
# This will also allow a previously used gab prior to the clearing to reappear
# immediately if followed up by another gab.
#
#==============================================================================
# ▼ Compatibility
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
# it will run with RPG Maker VX without adjusting.
#
# This script is compatible with Yanfly Engine Ace - Ace Message System v1.04+.
# The positioning of these two scripts relative to each other does not matter.
#
#==============================================================================
module YEA
module GAB_WINDOW
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# - Gab Settings -
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# These are the general settings used involving the Gab Window. Here, you
# can change the Y location of the window (remember, it's two lines tall),
# default font size, the position of the character sprites, and the amount
# of time the Gab Window will remain fully visible before fading.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Y_LOCATION = 36 # This sets the Y location of the gab window.
FONT_SIZE = 18 # This is the font size used for the gab window.
CHAR_X_POS = 24 # This sets the X location of the character shown.
CHAR_Y_POS = 40 # This sets the Y location of the character shown.
BASE_TIME = 60 # Minimum frames the window will stay visible for.
TIME_PER_TEXT = 4 # Frames added per text character.
HIDE_SWITCH = 25 # If switch is ON, Gab Window will not appear.
end # GAB_WINDOW
end # YEA
#==============================================================================
# ▼ Editting anything past this point may potentially result in causing
# computer damage, incontinence, explosion of user's head, coma, death, and/or
# halitosis so edit at your own risk.
#==============================================================================
#==============================================================================
# ■ Switch
#==============================================================================
module Switch
#--------------------------------------------------------------------------
# self.hide_gab_window
#--------------------------------------------------------------------------
def self.hide_gab_window
return false if YEA::GAB_WINDOW::HIDE_SWITCH <= 0
return $game_switches[YEA::GAB_WINDOW::HIDE_SWITCH]
end
end # Switch
#==============================================================================
# ■ Game_Interpreter
#==============================================================================
class Game_Interpreter
#--------------------------------------------------------------------------
# new method: gab
#--------------------------------------------------------------------------
def gab(text, case1 = nil, case2 = nil)
return unless SceneManager.scene_is?(Scene_Map)
if case1.is_a?(Integer)
case1 = $game_party.members[case1.abs].id if case1 <= 0
actor = $game_actors[case1]
if !actor.nil?
case1 = actor.character_name
case2 = actor.character_index
end
elsif case1.is_a?(String)
case2 = 0 if case2.nil?
end
SceneManager.scene.setup_gab_window(text, case1, case2)
end
#--------------------------------------------------------------------------
# new method: clear_gab
#--------------------------------------------------------------------------
def clear_gab
return unless SceneManager.scene_is?(Scene_Map)
SceneManager.scene.clear_gab
end
end # Game_Interpreter
#==============================================================================
# ■ Window_Gab
#==============================================================================
class Window_Gab < Window_Base
#--------------------------------------------------------------------------
# initialize
#--------------------------------------------------------------------------
def initialize
dx = -standard_padding
dy = YEA::GAB_WINDOW::Y_LOCATION
super(dx, dy, Graphics.width + standard_padding, fitting_height(2))
setup_message_font if $imported["YEA-MessageSystem"]
clear
end
#--------------------------------------------------------------------------
# clear
#--------------------------------------------------------------------------
def clear
self.opacity = 0
self.contents_opacity = 0
@opacity_timer = 0
clear_settings
end
#--------------------------------------------------------------------------
# clear_settings
#--------------------------------------------------------------------------
def clear_settings
@text = ""
@graphic = nil
@index = nil
end
#--------------------------------------------------------------------------
# reset_font_settings
#--------------------------------------------------------------------------
def reset_font_settings
super
contents.font.size = YEA::GAB_WINDOW::FONT_SIZE
end
#--------------------------------------------------------------------------
# setup
#--------------------------------------------------------------------------
def setup(text, graphic, index)
return if settings_match?(text, graphic, index)
@text = text
@graphic = graphic
@index = index
@opacity_timer = YEA::GAB_WINDOW::BASE_TIME
@opacity_timer += YEA::GAB_WINDOW::TIME_PER_TEXT * @text.size
refresh
end
#--------------------------------------------------------------------------
# settings_match?
#--------------------------------------------------------------------------
def settings_match?(text, graphic, index)
return false if @text != text
return false if @graphic != graphic
return false if @index != index
return true
end
#--------------------------------------------------------------------------
# update
#--------------------------------------------------------------------------
def update
super
self.visible = show_window?
update_contents_opacity
end
#--------------------------------------------------------------------------
# show_window?
#--------------------------------------------------------------------------
def show_window?
return false if $game_message.visible && $game_message.position == 0
return !Switch.hide_gab_window
end
#--------------------------------------------------------------------------
# update_contents_opacity
#--------------------------------------------------------------------------
def update_contents_opacity
if @opacity_timer > 0 && self.contents_opacity >= 255
return @opacity_timer -= 1
end
self.contents_opacity += @opacity_timer > 0 ? 16 : -4
end
#--------------------------------------------------------------------------
# refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_background_colour
draw_graphic
draw_text_ex(48, line_height / 2, @text)
end
#--------------------------------------------------------------------------
# draw_background_colour
#--------------------------------------------------------------------------
def draw_background_colour
temp_rect = contents.rect.clone
temp_rect.width *= 0.667
back_colour1 = Color.new(0, 0, 0, 192)
back_colour2 = Color.new(0, 0, 0, 0)
contents.gradient_fill_rect(temp_rect, back_colour1, back_colour2)
end
#--------------------------------------------------------------------------
# draw_graphic
#--------------------------------------------------------------------------
def draw_graphic
char_name = @graphic
char_index = @index
dx = YEA::GAB_WINDOW::CHAR_X_POS
dy = YEA::GAB_WINDOW::CHAR_Y_POS
draw_character(char_name, char_index, dx, dy)
end
end # Window_Gab
#==============================================================================
# ■ Scene_Map
#==============================================================================
class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
# alias method: create_all_windows
#--------------------------------------------------------------------------
alias scene_map_create_all_windows_gab create_all_windows
def create_all_windows
scene_map_create_all_windows_gab
create_gab_window
end
#--------------------------------------------------------------------------
# new method: create_gab_window
#--------------------------------------------------------------------------
def create_gab_window
@gab_window = Window_Gab.new
end
#--------------------------------------------------------------------------
# new method: setup_gab_window
#--------------------------------------------------------------------------
def setup_gab_window(text, graphic = nil, index = nil)
@gab_window.setup(text, graphic, index)
end
#--------------------------------------------------------------------------
# new method: clear_gab
#--------------------------------------------------------------------------
def clear_gab
@gab_window.clear
end
#--------------------------------------------------------------------------
# alias method: pre_transfer
#--------------------------------------------------------------------------
alias scene_map_pre_transfer_gab pre_transfer
def pre_transfer
scene_map_pre_transfer_gab
clear_gab
end
end # Scene_Map
#==============================================================================
#
# ▼ End of File
#
#==============================================================================
For future note use code tags for pasting code.
I threw this into a test project and it works fine.
You must have compatibility issues. Move the script to the bottom of your script list and try
EDIT: Moving it to the top makes it work somehow. I'll keep messing around with it and come back here if I have any problems. Thanks for the help!
how would i use the gab script (Script posted above )to have the text constantly show?
You are hijacking the thread and you are necroposting.
If you want text to be on the screen (map) all the time, then use a different script.
Perhaps text over events script, there are a few of those.
But if you want the text to be like a conversation windows (gab) then no this script will not do that. I don't believe any script would do that. defeats the purpose of message windows and would just clutter the screen when you have a few showing.
@UndeadGamez, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.
Please make a new thread in the future.
Original thread: https://forums.rpgmakerweb.com/threads/text-box-that-doesnt-stop-movement.114482/