XP 스크립트

이건 비밀님이랑 KimTJ 님이 알려줄셔서 간신히 했음. 이 스크립트는 왼쪽 아래 구석에 경험치가 하얀글씨로 나올것임.

class Game_Actor < Game_Battler
  def exp_rate
    if @exp_list[@level+1] - @exp_list[@level] > 0
      return (@exp - @exp_list[@level]).to_f / (@exp_list[@level+1] - @exp_list[@level]).to_f
    else
      return 0
    end
  end
end
class Window_ExpRate < Window_Base
  def initialize
    super(178, 441, 100, 60) # <- location, size
    self.contents = Bitmap.new(width - 32, height - 32)
   
    self.contents.font = Font.new("Tahoma", 30) # <- font, size
    self.opacity = 0
self.back_opacity = 0
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(0, 0, 100, 30, @show_text)
  end
  def actor
    $game_party.actors[0] # <- 파티 0번째
  end
  def update
    super
    text = sprintf("%d%", (actor.exp_rate * 100).to_i)
    if @show_text != text
      @show_text = text
      refresh
    end
  end
end
class Scene_Map
  alias update_before_map update
  def update
    update_before_map
    @window_exp = Window_ExpRate.new unless @window_exp
    @window_exp.update
    unless $scene.is_a?(Scene_Map)
      @window_exp.dispose
      @window_exp = nil
    end
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '8'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
68 메뉴 AP 올리기 8 알피지GM 2010.02.15 1490
67 메뉴 메뉴....있길래올립니다. 9 벨☆ 2010.01.23 2001
66 메뉴 1인 캐릭터 메뉴 스크립트 27 file - 하늘 - 2009.08.06 4790
65 메뉴 [자작]명성치 사용 스크립트 16 Rainsy 2009.03.22 3390
64 메뉴 메뉴등에서 움직이는 엑터 9 file 백호 2009.02.22 3162
63 메뉴 Materia System 2.01v by SephirothSpawn 6 file 백호 2009.02.22 2100
62 메뉴 메뉴 단축키 스크립트 14 백호 2009.02.22 2958
61 메뉴 메뉴에 그림넣기 4 file 백호 2009.02.22 4412
» 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1789
59 메뉴 Options System by slipknot 3 file 백호 2009.02.22 2101
58 메뉴 Trickster's Plug 'n' Play Gradient Bar 2.0 1 file 백호 2009.02.22 2051
57 메뉴 1-Scene CMS 1.16 by LegACy (SDK호환) 3 file 백호 2009.02.22 1564
56 메뉴 CogWheel Plug'n'Play Menu Bar by DerVVulfman@rmxp.org 2 백호 2009.02.22 1222
55 메뉴 Advanced Command Windows by Tsunokiette file 백호 2009.02.22 1307
54 메뉴 혹시있나해서-_-.. 대화창에 테두리치기 스크립트 7 백호 2009.02.22 2592
53 메뉴 1-Scene CMS 1.1 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 953
52 메뉴 제가추천하는 메뉴스크립트 11 file 백호 2009.02.22 5298
51 메뉴 1-Scene CMS 1.03 by LegACy@rmxp.org (SDK호환) file 백호 2009.02.22 871
50 메뉴 기본메뉴 뜯어고친것. (스샷추가) 6 file 백호 2009.02.22 4314
49 메뉴 Customizable Ring Menu by SephirothSpawn 백호 2009.02.22 884
Board Pagination Prev 1 2 3 4 5 Next
/ 5