RPGXP 스크립트
2013.09.24 08:08

경험치 표시 스크립트

조회 수 749 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

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(0, 0, 125, 55) # <- location, size 
    self.contents = Bitmap.new(width - 32, height - 32) 
    
    self.contents.font = Font.new("궁서체", 16) # <- 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 


출처: 게임공작소

?

  1. [RPG MV] 퀘스트 마커 지속 표시 플러그인

    Date2017.04.09 CategoryRPGMV 플러그인 Bylklslel Views1416 Votes0
    Read More
  2. [VXAce] 레이어 맵 <layer> 시스템

    Date2017.08.07 CategoryRPGVX Ace 스크립트 ByLuD Views1045 Votes0
    Read More
  3. [VX] 메시지 표시를 한번에 표시로 전환하기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1975 Votes1
    Read More
  4. [VX] 메시지 표시를 한번에 표시로 전환하기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views2386 Votes1
    Read More
  5. [VX] 조건분기로 키입력의 처리 실행

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1734 Votes1
    Read More
  6. [VX] 조건분기로 키입력의 처리 실행

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views2131 Votes1
    Read More
  7. [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1710 Votes1
    Read More
  8. [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views2014 Votes1
    Read More
  9. [鳥小屋] 실적 플러그인(인게임 트로피 시스템)

    Date2017.10.31 CategoryRPGMV 플러그인 By이니군 Views1552 Votes0
    Read More
  10. [무한응용]스위치/변수 임시 저장/로딩하기

    Date2010.04.10 CategoryRPGXP 스크립트 By카리스 Views2594 Votes1
    Read More
  11. [무한응용]스위치/변수 임시 저장/로딩하기

    Date2010.04.10 CategoryRPGXP 스크립트 By카리스 Views2633 Votes1
    Read More
  12. [아힝흥행]레벨한계 돌파 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By아힝흥행 Views1099 Votes0
    Read More
  13. 가상 키보드 입력 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1660 Votes0
    Read More
  14. 간단한 여관 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views911 Votes0
    Read More
  15. 게임도중에 글씨체를 바꿔보자.

    Date2008.12.31 CategoryRPGXP 스크립트 By창조도시 Views1266 Votes1
    Read More
  16. 게임도중에 글씨체를 바꿔보자.

    Date2008.12.31 CategoryRPGXP 스크립트 By창조도시 Views1652 Votes1
    Read More
  17. 게임시작하면 바로 뉴게임으로 가는 플러그인!

    Date2015.11.07 CategoryRPGMV 플러그인 Bywillmv Views927 Votes0
    Read More
  18. 게임에서 제공해주는 노래가 아닌 외부에서 다운받고 안에 넣어쓰려면 어떻게 해야하나요?

    Date2019.07.26 CategoryRPGMV 플러그인 ByBigOrca Views1197 Votes0
    Read More
  19. 게임프레임 조절

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1814 Votes0
    Read More
  20. 경험치 표시 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views749 Votes0
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)