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
521 기타 모험일기 5 키라링 2009.01.18 1825
520 장비 장비 화면 개조 스크립트 1 file 백호 2009.02.21 1822
519 전투 Mr.Mo's ABS Ultimate 2.6 by DerVVulfman Alkaid 2012.01.04 1820
518 상점 상점 메뉴 개조시킨 스크립트 - 수정 - 2 file 백호 2009.02.21 1818
517 전투 전투배경 확장 3 file 백호 2009.02.21 1817
516 이동 및 탈것 그래픽의 크기로 좁은길은 못지나가게한다. 7 file 백호 2009.02.21 1816
515 전투 데미지 출력 스크립트 6 백호 2009.02.22 1809
514 전투 Mr.Mo's ABS Ultimate 3.4 by DerVVulfman Alkaid 2012.03.14 1803
513 키입력 키보드 입력을 변수에 받아들이기 1 file 백호 2009.02.21 1802
512 기타 일시정지 스크립트 2 file 백호 2009.02.22 1796
511 아이템 Categorized Items Menu 1.3 by albertfish 1 file Alkaid 2010.09.09 1795
510 오디오 FMOD Ex Audio Module Rewrite 1.51 by Cowlol 2 file Alkaid 2010.11.18 1792
509 기타 [신기술 체험] 추가, 수정 심플액션 4 file 백호 2009.02.22 1790
508 상태/속성 BattleStatus Modification 1.1 for RTAB by DerVVulfman@rmxp.org 2 file 백호 2009.02.22 1788
» 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1787
506 장비 장비 전능력 스크립트 4 file 백호 2009.02.22 1783
505 전투 적 한계 HP수치 돌파 스크립트 ■ RPGモジュール 3 쉴더 2009.02.21 1783
504 장비 [KGC]장비 제한(레벨,완력등등) 7 file 백호 2009.02.21 1780
503 기타 Phylomortis.com 스크립트들. file Alkaid 2010.09.02 1775
502 기타 광물캐기 시스템 v2 3 백호 2009.02.22 1775
Board Pagination Prev 1 ... 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 52 Next
/ 52