XP 스크립트

#=================================================
# ■ 경험치표시 (사용 방법 정의)
#-------------------------------------------------
#  Author: Bimilist(비밀소년)
#  Desc: 머리위에 아이디를 띄웁니다
#    수정자: 키스코
#    Usage: 이벤트 아이디의 이름: [ID(아이디)]
#                주인공은 그딴거 할필요 없음
#=================================================

class Game_Actor < Game_Battler
  def exp_bunja
    return @exp - @exp_list[@level]
  end
  def exp_bunmo
    return @exp_list[@level+1] - @exp_list[@level]
  end
end
class Window_ExpRate < Window_Base
  def initialize
    super(180,437, 125, 55) # <- location, size
    self.contents = Bitmap.new(width - 32, height - 32)
   
    self.contents.font = Font.new("굴림", 14) # <- font, size
    self.contents.font.color= Color.new(0,0,0)
    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("Exp:%d/%d        ", actor.exp_bunja, actor.exp_bunmo)
    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
====================================================================================

비밀소년님의 퍼센트경험치를  표시해주는걸 수정햇습니다

예/  20/100<--이렇게    목표경험치 와 현재진행중인 경험치를 나타냅니다.

좌표를 바꿔쓰시기바랍니다

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 7291
174 기타 Shift Puzzles by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 1397
173 기타 Shift Puzzles v2 by SephirothSpawn (SDK호환) 3 file 백호 2009.02.22 1187
172 기타 Sized Events 0.1 by Toby@rmxp.org file 백호 2009.02.22 855
171 기타 Sphere Grid System file 백호 2009.02.21 785
170 기타 Steal Script (SDK Required) file 백호 2009.02.21 1188
169 기타 Tax Script 1.2 by The Darklord@rmxp.org 2 file 백호 2009.02.22 1149
168 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 791
167 기타 Tetris Attack by trickster 1 file 백호 2009.02.22 996
166 기타 Text Scroll by Dubealex (Release 3) 2 file 백호 2009.02.22 950
165 기타 Text to RGSS by DerVVulfman Alkaid 2011.04.18 1332
164 기타 The General Monster Generator 1.1 by DerVVulfman 1 file Alkaid 2011.03.02 1510
163 기타 Trailing Characters ver.1 by SephirothSpawn 6 file 백호 2009.02.22 1564
162 기타 Upload & Download files with RGSS 2.1 by berka (XP/VX 공용) 5 Alkaid 2010.11.20 2149
161 기타 Weather Script 1.02 by ccoa 1 file 백호 2009.02.22 825
160 기타 XP 각종 스크립트입니다. 36 file 쿠도신이치 2009.04.26 4292
159 기타 [All RGSS] File-Ex file Cheapmunk 2014.12.29 1005
158 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 656
157 기타 [All RGSS] 게임 다중 실행 방지 스크립트 1 file Cheapmunk 2014.05.24 1425
156 기타 [All RGSS] 윈도우 메세지박스 스크립트 (Completed ver) 5 file Cheapmunk 2014.06.22 2242
155 기타 [All RGSS] 윈도우 커서 숨기기/보이기 1 file Cheapmunk 2014.03.02 2018
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13