XP 스크립트

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


그냥 윈도우 표시 안한거하고 좌표만 바꾼것,,,, ㅠㅠ

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
341 이동 및 탈것 대쉬 밑에 꺼 MP가 깍기는거 1 백호 2009.02.22 1467
340 장비 MultiSlots! 2.4 by DerVVulfman 2 Alkaid 2011.09.05 1466
339 메뉴 FF7형식의 메뉴로 변경하는 스크립트 1 file 백호 2009.02.21 1463
338 HUD 맵 이름 표시 by Slipknot@rmxp.net (SDK호환) 2 백호 2009.02.22 1463
337 전투 SG_Batte Retry ver.4 by sandgolem 2 백호 2009.02.22 1460
336 전투 추적 공격 스크립트 백호 2009.02.21 1459
335 전투 S ABS_NonSDK ver 1 file 백호 2009.02.22 1458
334 전투 Minkoff's Animated Battlers - Enhanced 13.4 by DerVVulfman 2 Alkaid 2011.07.13 1458
333 기타 sandgolem Script Archive (RMXP SDK 1.5 이상 필요) file Alkaid 2011.02.17 1453
332 기타 프리 윈도우 스크립트 (상입오두막 출처) 6 백호 2009.02.21 1449
331 기타 필드에서 경험치%를 표시합니다. 4 file 백호 2009.02.22 1448
330 전투 배틀 리포트 화면 변경 스크립트 2 file 백호 2009.02.21 1444
329 전투 전투 난이도 설정 스크립트 file 백호 2009.02.21 1442
328 전투 Mr. Mo's ABS Ultimate by DerVVulfman Alkaid 2011.09.05 1438
327 스킬 Grouping and Details 8.1 by DerVVulfman 4 file Alkaid 2011.04.18 1437
326 전투 대전게임 Fighter 1 file 백호 2009.02.21 1436
325 기타 모험 일기 스크립트 2 file 백호 2009.02.21 1434
324 메뉴 Leidy's Ring Command Window 1.2 by DerVVulfman Alkaid 2012.09.09 1433
323 전투 Mr Mo DVV Addon #20~#21 Alkaid 2011.09.05 1432
322 전투 KGC_AutoRecover(매턴 자동 회복) 1 백호 2009.02.22 1431
Board Pagination Prev 1 ... 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 ... 52 Next
/ 52