MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
186
First Language
Meowish
Primarily Uses
Made for a request here.

This script make uses of the map name window and let you display short texts with it that fades in and out just like the map names.

So you may use it to display achievements, chapters or any other short texts you like.

[IMG]http://s13.postimg.org/mcdv678d3/quick_text.png[/IMG]

Features:

Short text that fades in and out

How to use:

[1] Paste this script below Material and above Main

[2] Use this script call to display text on screen:

quick_text("Your Text Here")Compatibility:

This script overwrites how the map name window works. If you have other custom scripts that overwrite how the map name window works, there can be conflicts.

Terms of Use:

Free for both commercial and non-commercial.

Script:

Code:
#==============================================================================# ■ Meow Face Display Quick Text#------------------------------------------------------------------------------# Display a quick text pop up in the Map window#==============================================================================# How to Use:# [1] Paste this below Material and above Main# [2] Use this script call to display the text on screen#     quick_text("your text here")#==============================================================================class Game_Map  attr_accessor :show_achievement  attr_accessor :achievement_text  alias meow_gm_achievement_init initialize  def initialize    meow_gm_achievement_init    @show_achievement = false    @achievement_text = "text"  end  def display_achievement_show    SceneManager.scene.show_achievement_text  end  alias meow_update_achievement_mn update  def update(main = false) #alias    meow_update_achievement_mn(main)     display_achievement_show if @show_achievement  endendclass Game_Interpreter  def quick_text(text)    $game_map.achievement_text = text    $game_map.show_achievement = true  endendclass Window_MapName < Window_Base  def refresh #overwrite    contents.clear    if $game_map.show_achievement == true      draw_background(contents.rect)      draw_text(contents.rect, $game_map.achievement_text, 1)      $game_map.show_achievement = false    else      unless $game_map.display_name.empty?        draw_background(contents.rect)        draw_text(contents.rect, $game_map.display_name, 1)      end    end  endendclass Scene_Map < Scene_Base  def show_achievement_text    @map_name_window.open  endend
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
156
First Language
English
Primarily Uses
Very simple and useful, I love scripts like this!
 

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
816
Reaction score
1,422
First Language
English
Primarily Uses
N/A
Fixed script format, credit Meow Face.
Code:
#==============================================================================
# ■ Meow Face Display Quick Text
#------------------------------------------------------------------------------
# Display a quick text pop up in the Map window
#==============================================================================
# How to Use:
#[1] Paste this below Material and above Main
# [2] Use this script call to display the text on screen
#     quick_text("your text here")
#==============================================================================
class Game_Map
  attr_accessor :show_achievement
  attr_accessor :achievement_text
  alias meow_gm_achievement_init initialize
  def initialize  
    meow_gm_achievement_init  
    @show_achievement = false  
    @achievement_text = "text"
  end
  def display_achievement_show  
    SceneManager.scene.show_achievement_text
  end
  alias meow_update_achievement_mn
  update
  def update(main = false) #alias  
    meow_update_achievement_mn(main)    
    display_achievement_show if @show_achievement
  end
end
class Game_Interpreter
  def quick_text(text)  
    $game_map.achievement_text = text  
    $game_map.show_achievement = true
  end
end
class Window_MapName < Window_Base
  def refresh #overwrite  
    contents.clear  
    if $game_map.show_achievement == true    
      draw_background(contents.rect)    
      draw_text(contents.rect, $game_map.achievement_text, 1)    
      $game_map.show_achievement = false  
    else
      unless $game_map.display_name.empty?      
        draw_background(contents.rect)      
        draw_text(contents.rect, $game_map.display_name, 1)    
      end
    end
  end
end
class Scene_Map < Scene_Base
  def show_achievement_text  
  @map_name_window.open
end
end
 

Latest Threads

Latest Posts

Latest Profile Posts

Is there any way to get more than 8 enemies in a troop in RMMV or is that limit pretty much hardcoded into the engine?
Stream will be live shortly with some game development! Feel free to drop by!
Finally working actively on Tundra! I'd like to share my wife's WIP art for the starting map and a rough draft of one of the later characters, Katrina. She's very eager to hear any feedback you might have!1623790662347.png
Got my first vax today, arm is a bit numb, but nothing odd so far. :kaopride:
dYOm9IY.jpg
image_2021-06-15_212613.png
Looks a bit.....kid friendly. Then again, I suppose that does with with a lot of retro themes... Crap, already spotted a flaw xD

Forum statistics

Threads
112,266
Messages
1,066,938
Members
145,882
Latest member
Vincentus
Top