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 7301
174 기타 Steal Script (SDK Required) file 백호 2009.02.21 1189
173 기타 Resolution Changer Ultimate by Zeus81 7 file 습작 2013.05.05 1190
172 기타 Defining Encounter Areas by RPG Advocate (사용법 첨부) file 백호 2009.02.22 1206
171 기타 [신기술 체험] 빠른 애니매이션 1 file 백호 2009.02.22 1211
170 기타 창고 스크립트 2 백호 2009.02.21 1212
» 기타 경험치 퍼센트 수정 백호 2009.02.22 1218
168 기타 NPC Details Window by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 1219
167 기타 액터 선택 스크립트 2 백호 2009.02.21 1238
166 기타 멋진...제작자 정보를 그림으로 1 백호 2009.02.22 1245
165 기타 제작한 게임의 파일을 모두 exe파일 하나에 쓸어담기 by sheefo@Creation Asylum 1 file 백호 2009.02.22 1250
164 기타 무기 개조 스크립트 file 백호 2009.02.21 1255
163 기타 무기 회피율, 방어구 공격력 지정 스크립트 6 백호 2009.02.22 1260
162 기타 복권 스크립트 6 백호 2009.02.21 1266
161 기타 엔딩후 캐릭터 이어서 새로운 게임시작 스크립트 1 file 백호 2009.02.21 1271
160 기타 Etude87_Bone_Animation_Character ver.1.2 4 습작 2012.07.06 1274
159 기타 Golden_sun_intro v1 1 백호 2009.02.22 1275
158 기타 Advanced Weather System (AWS) 3 file 백호 2009.02.22 1288
157 기타 ID띄우기 스크립트(新) 3 백호 2009.02.22 1288
156 기타 카운트 3초 1 file 백호 2009.02.22 1305
155 기타 Realistic Shop by MeisMe@rmxp.org 3 file 백호 2009.02.22 1305
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13