Jump to content

Recommended Posts

Great script, very thanks for it.

You're very welcome!

 

Hello there!

I wanna change position of "AchievementBanner" to the top right, is it possible?

Hey! I know it's been awhile but I see that you still check into the forums so I figured I'd help you out. Paste this script below my Achievement GUI and it'll move the banner to the top right instead of the bottom center.

 

 

class Gam_Window_AchievementBanner < Window_Base
  def initialize
    super(6.5*Graphics.width/11,40,3*window_width/4,fitting_height(3.5))
    self.opacity = 0
    self.contents_opacity = 0
    contents.font.name = Gambit::Achievement::FONT_NAME if Gambit::Achievement::CHANGE_FONT
    @banner_exists = false
    @foreshadow_earned = false
    @show_count = 0
    @show_banner_count = 0
    prepare_banners
    refresh
  end
  
  def draw_banner
    @banner = Sprite_Base.new
    @banner.bitmap = Cache.gamachpic(Gambit::Achievement::BANNER)
    @banner.z = 200
    @banner.x = Graphics.width - @banner.width
    @banner.y = 0
    
    @banner_bg = Sprite_Base.new
    @banner_bg.bitmap = Cache.gamachpic(Gambit::Achievement::BANNER_BG)
    @banner_bg.z = 150
    @banner_bg.x,@banner_bg.y = @banner.x,@banner.y
    
    @banner_badge = Sprite_Base.new
    badge = $game_map.ach_display.badge
    if !badge.nil?
      @banner_badge.bitmap = Cache.gamachpic(badge)
    else
      @banner_badge.bitmap = Cache.gamachpic(Gambit::Achievement::TROPHY_PICTURE)
    end
    @banner_badge.z = 250
    @banner_badge.x = Graphics.width - @banner.width + @banner_badge.width/9
    @banner_badge.y = @banner.height/5
    
    @banner.opacity = 1
    @banner_badge.opacity = 1
    @banner_bg.opacity = 1
    
    @show_banner_count = 150
    $game_map.banner_present = true
    @banner_exists = true
  end
end

 

 

 

Looks amazing. Can't wait to try it out.

Thanks! Hope you liked it.

Edited by Gambit.

Share this post


Link to post
Share on other sites

how do you position your achievement bubble to not be on bottom but on top or top right something like that

 

You can place this snippet below the script to move the map achievement banner to the top middle of the screen:

 

 

class Gam_Window_AchievementBanner < Window_Base
  def initialize
    super(4 * Graphics.width / 11, 0, 3 * window_width / 4, fitting_height(3.5))
    self.opacity = 0
    self.contents_opacity = 0
    contents.font.name = Gambit::Achievement::FONT_NAME if Gambit::Achievement::CHANGE_FONT
    @banner_exists = false
    @foreshadow_earned = false
    @show_count = 0
    @show_banner_count = 0
    prepare_banners
    refresh
  end
end

 

 

 

If you'd like to move it somewhere else, you can play around with the values in this line:

super(4 * Graphics.width / 11, 0, 3 * window_width / 4, fitting_height(3.5))

x = 4 * Graphics.width / 11

y = 0

 

Change the x or y values to move it around the screen.

Edited by Gambit.

Share this post


Link to post
Share on other sites

This script looks amazing!  I was looking for an achievement script with images and this is fantastic!  I only have one question, is it possible to replace the given images with custom images of our own?  

Share this post


Link to post
Share on other sites

This script looks amazing!  I was looking for an achievement script with images and this is fantastic!  I only have one question, is it possible to replace the given images with custom images of our own?  

 

Yes you can, The instructions are all in the header of the script file "Gambit Achievement GUI Script v1.11.txt" on how to setup different images to use.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted