Name box with yanfly message system + Galv Bust Script

Status
Not open for further replies.

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
353
Reaction score
6
First Language
english
Primarily Uses
RMVXA
I am using Galvs message bust system and was thinking of using yanflys message system with a name box addon. The only problem that I seem to run into is that I don't exactly know how the addon works and when I just try to use the message system and get the name box above the text it overlaps the face picture. How would I go at fixing this?
Yanfly message system:
Message system Addon:
Galv Message bust:
Thanks for any help.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
Can you show a picture of how it looks now?
I would suggest to use the name window in the middle.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
Try this to see if it works for you
Ruby:
#------------------------------------------------------------------------------#
#  Galv's Message Busts
#------------------------------------------------------------------------------#
#==============================================================================
#
# ▼ Yanfly Engine Ace - Ace Message System v1.05
#
#==============================================================================
# Script order
# Yanfly Message
# Galv Busts
# this patch
#==============================================================================
# Patch support by Roninator2
# Provide support to adjust name window or bust position
# Config options and positions will adjust
#==============================================================================

module R2_Galv_Bust_Name_Window
  MOVE_NAME_WINDOW = true # if false, will move Galv bust
  ADJUST = 112
end

class Window_Message < Window_Base

if R2_Galv_Bust_Name_Window::MOVE_NAME_WINDOW
  def start_name_window
    return if @name_text == ""
    @name_window.start(@name_text, @name_position)
    if !$game_message.face_name.empty?
      if $game_message.mirror
        @name_window.x += (R2_Galv_Bust_Name_Window::ADJUST * -1)
      else
        @name_window.x += R2_Galv_Bust_Name_Window::ADJUST
      end
    end
  end
else
  def update_bust
    if !$game_message.bust_name.empty? && !$game_switches[Galv_Bust::DISABLE_SWITCH]
      #domo @bust.mirror = $game_message.mirror
      @bust.bitmap = Cache.picture($game_message.bust_name + "-" + ($game_message.bust_index + 1).to_s)
      if !$game_message.mirror
        if Galv_Bust::SLIDE
          @bust.x = ((openness.to_f / 255) * @bust.width) - @bust.width
          #domo
          @bust.x += 110
        else  
          @bust.x = 0
        end
      else
        if Galv_Bust::SLIDE
          @bust.x = Graphics.width - ((openness.to_f / 255) * @bust.width)  
          #domo
          @bust.x += 110    
        else
          @bust.x = Graphics.width - @bust.bitmap.width
        end
      end
      if $game_message.position == 2 && !Galv_Bust::BUST_Y_OVER
        @bust.y = Graphics.height - @bust.bitmap.height - self.height
      else
        @bust.y = Graphics.height - @bust.bitmap.height
        #domo
        @bust.y += 60
      end
    else
      @bust.bitmap = nil
    end
    if $game_switches[Galv_Bust::DISABLE_SWITCH]
      @bust.opacity = 0
    else
      @bust.opacity = openness
    end
    if !$game_message.face_name.empty?
      if $game_message.mirror
        @bust.x += R2_Galv_Bust_Name_Window::ADJUST * -1
      else
        @bust.x += R2_Galv_Bust_Name_Window::ADJUST
      end
    end
    @bust.update
  end
end
end
 
Last edited:

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
353
Reaction score
6
First Language
english
Primarily Uses
RMVXA
Try this to see if it works for you
Ruby:
#------------------------------------------------------------------------------#
#  Galv's Message Busts
#------------------------------------------------------------------------------#
#==============================================================================
#
# ▼ Yanfly Engine Ace - Ace Message System v1.05
#
#==============================================================================
#
#==============================================================================
# Patch support by Roninator2
# Provide support to adjust name window or bust position
# Config options and positions will adjust
#==============================================================================

module R2_Galv_Bust_Name_Window
  MOVE_NAME_WINDOW = true # if false, will move Galv bust
  ADJUST = 112
end

class Window_Message < Window_Base

if R2_Galv_Bust_Name_Window::MOVE_NAME_WINDOW
  def start_name_window
    return if @name_text == ""
    @name_window.start(@name_text, @name_position)
    if !$game_message.face_name.empty?
      @name_window.x += R2_Galv_Bust_Name_Window::ADJUST
    end
  end
else
  def update_bust
    if !$game_message.bust_name.empty? && !$game_switches[Galv_Bust::DISABLE_SWITCH]
      #domo @bust.mirror = $game_message.mirror
      @bust.bitmap = Cache.picture($game_message.bust_name + "-" + ($game_message.bust_index + 1).to_s)
      if !$game_message.mirror
        if Galv_Bust::SLIDE
          @bust.x = ((openness.to_f / 255) * @bust.width) - @bust.width
          #domo
          @bust.x += 110
        else     
          @bust.x = 0
        end
      else
        if Galv_Bust::SLIDE
          @bust.x = Graphics.width - ((openness.to_f / 255) * @bust.width)     
          #domo
          @bust.x += 110       
        else
          @bust.x = Graphics.width - @bust.bitmap.width
        end
      end
      if $game_message.position == 2 && !Galv_Bust::BUST_Y_OVER
        @bust.y = Graphics.height - @bust.bitmap.height - self.height
      else
        @bust.y = Graphics.height - @bust.bitmap.height
        #domo
        @bust.y += 60
      end
    else
      @bust.bitmap = nil
    end
    if $game_switches[Galv_Bust::DISABLE_SWITCH]
      @bust.opacity = 0
    else
      @bust.opacity = openness
    end
    if !$game_message.face_name.empty?
      @bust.x += R2_Galv_Bust_Name_Window::ADJUST
    end
    @bust.update
  end
end
end
It works. Only problem I am having now is when I set it from true to false this happens:
1591204160415.png
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
where did you put it?
Place below both galv and yanfly scripts
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
353
Reaction score
6
First Language
english
Primarily Uses
RMVXA
@Roninator2 Had a real quick question how would I make the box flip to the other side if I have the faces show up on the right side like this:
1591206392060.png
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
Update the code.
You have to use \nr<X> option in text box to have the name box on the right.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
I tested that code \nr<\n[1]> and it worked fine.
So I'm not sure.
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
353
Reaction score
6
First Language
english
Primarily Uses
RMVXA
I tested that code \nr<\n[1]> and it worked fine.
So I'm not sure.
Well the name goes off the screen and when I switch them then the face goes off the screen.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
when I switch them
So your saying when the setting is false?
This is a setting that either needs to be true or false and cannot be changed in the middle of the game.

But for the sake of full functionality I found the issue for the face. Just needed to add in the other mirror option.
Going to update the code in a sec.
 

slickdeath97

Veteran
Veteran
Joined
Feb 26, 2019
Messages
353
Reaction score
6
First Language
english
Primarily Uses
RMVXA
So your saying when the setting is false?
This is a setting that either needs to be true or false and cannot be changed in the middle of the game.

But for the sake of full functionality I found the issue for the face. Just needed to add in the other mirror option.
Going to update the code in a sec.
Ok it works now. BTW how would I go at changing the color for the name text for different people?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,323
Reaction score
482
First Language
English
Primarily Uses
RMVXA
In yanfly's message script it tells you how to change the color
\c[x]
So combine that with the name option.

\nr<\c[2]\n[6]>\c[0]
 

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
5,110
Reaction score
4,398
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Tried mochi for the first time. It's quite nice. Has a pleasant smell and taste, and is nice and chewy.
made a bio for the protag in my project!
Beggar : "I haven't eat for days..."
Kid : "Just do crime! You will get daily necessity for free in prison~"
Stream is a bit late but will be live shortly with some game development! Feel free to drop by!

Forum statistics

Threads
99,158
Messages
962,443
Members
130,725
Latest member
teendinsaikha
Top