XP 스크립트

class Window_MP < Window_Base
  def initialize
    super(0, 0, 180, 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, 170, 30, @show_text)
  end
  def actor
    $game_party.actors[0] # <- 파티 0번째
  end
  def update
    super
    text = sprintf("EXP: %4d / %4d", actor.sp.to_s, actor.maxsp.to_s)
    if @show_text != text
      @show_text = text
      refresh
    end
  end
end

class Scene_Map
  alias update_window_mp update
  def update
    update_window_mp
    @window_mp = Window_MP.new unless @window_mp
    @window_mp.update
    unless $scene.is_a?(Scene_Map)
      @window_mp.dispose
      @window_mp = nil
    end
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6203
14 기타 Damage Reductions by SephirothSpawn (SDK호환) 1 백호 2009.02.22 779
13 기타 Terrain Encounter Areas by SephirothSpawn 백호 2009.02.22 778
12 기타 Activation_system file 백호 2009.02.22 775
11 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 766
10 기타 Sphere Grid System file 백호 2009.02.21 765
9 기타 Advanced Gold display by Dubealex 1 백호 2009.02.22 761
8 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 760
7 기타 killer님 요청하신 스크립트 두번째입니다. 나뚜루 2009.02.21 759
6 기타 Real-Time Day Night 3 백호 2009.02.22 751
5 기타 Materia System file 백호 2009.02.21 749
4 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
3 기타 Boat Script 백호 2009.02.21 729
2 기타 에어리어 설정 by RPG Advocate 백호 2009.02.22 710
1 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 614
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13