XP 스크립트

#==============================================================================
# ++ 스테이터스 표시 플러스 ver. 1.00 ++
#  Script by 파라개
#  http://para.j-mx.com/
#------------------------------------------------------------------------------
# [기능1] 스테이터스 화면의 액터명을 풀네임으로 표시
# [기능2] 스테이터스 화면의 그래픽을 변경
# [기능3] 클래스명을 비표시
#------------------------------------------------------------------------------
# [그래픽의 종류 「픽처」의 사용법]
# 「Graphics/Pictures」폴더에, 액터 그래픽과 동명의 화상 파일을
# 임포트 합니다.
# 「보행 그래픽에 의존」의 경우는 보행 그래픽명이,
# 「버틀러에 의존」의 경우는 버틀러 그래픽명이
# 픽처의 파일명이 됩니다.
#==============================================================================

module PARA_STSW

  # 액터의 풀네임(서식은 FULLNAME[ 액터ID ] = "이름")
  FULLNAME=[]#이 행은 지우지 말아 주세요
  FULLNAME[1] = "아르시스=못체리노"
  FULLNAME[2] = "“타와시두의 프린스”바질"
 
  # 그래픽의 종류
  #( 0:보행 그래픽 / 1:버틀러 그래픽 /
  #  2:픽처(보행 그래픽에 의존) / 3:픽처(버틀러에 의존) )
  STATUS_GRAPHIC_TYPE = 1
 
  # 문자 위치를 옆에 늦춘다
  # (픽처의 사이즈가 너무 커서 문자와 겹칠 때 설정.0그리고 초기 위치)
  STATUS_SHIFT = 32
 
  # 클래스명을 비표시(? true / false )
  DRAW_SKIP_CLASS = false

end

# ↑ 설정 항목 여기까지
#------------------------------------------------------------------------------

#==============================================================================
# ■ Window_Status
#==============================================================================

class Window_Status < Window_Base
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  alias refresh_para_stsw refresh
  def refresh
    @draw_skip_graphic = true
    @draw_skip_name = true
    @draw_skip_class = true
    refresh_para_stsw
    # 상세 스테이터스의 문자 위치를 옆에 늦추는
    if PARA_STSW::STATUS_SHIFT != 0
      @status_sprite = Sprite.new
      @status_sprite.x = 16 + PARA_STSW::STATUS_SHIFT
      @status_sprite.y = 16
      @status_sprite.z = self.z + 1
      @status_sprite.bitmap = self.contents.dup
      self.contents.clear
    end
    # 그래픽을 묘화
    @draw_skip_graphic = false
    case PARA_STSW::STATUS_GRAPHIC_TYPE
      when 0
        draw_actor_graphic(@actor, 40, 112)
      when 1
        draw_battler_graphic_para(@actor, 0, 40)
      when 2
        draw_actor_picture_para(@actor, 0, 40)
      when 3
        draw_battler_picture_para(@actor, 0, 40)
    end
    # 액터의 이름을 묘화
    @draw_skip_name = false
    @draw_skip_class = PARA_STSW::DRAW_SKIP_CLASS
    if PARA_STSW::FULLNAME[@actor.id] != nil
      self.contents.draw_text(4, 0, 260, 32, PARA_STSW::FULLNAME[@actor.id])
      draw_actor_class(@actor, 4 + 284, 0)
    else
      draw_actor_name(@actor, 4, 0)
      draw_actor_class(@actor, 4 + 144, 0)
    end
  end
  #--------------------------------------------------------------------------
  # ○ 파기
  #--------------------------------------------------------------------------
  alias dispose_para_stsw dispose
  def dispose
    dispose_para_stsw
    if @status_sprite != nil
      @status_sprite.dispose
    end
  end
end

#==============================================================================
# ■ Window_Base
#==============================================================================

class Window_Base < Window
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  alias initialize_para_stsw initialize
  def initialize(x, y, width, height)
    initialize_para_stsw(x, y, width, height)
    @draw_skip_graphic = false
    @draw_skip_name = false
    @draw_skip_class = PARA_STSW::DRAW_SKIP_CLASS
  end
  #--------------------------------------------------------------------------
  # ● 그래픽의 묘화
  #--------------------------------------------------------------------------
  alias draw_actor_graphic_para_stsw draw_actor_graphic
  def draw_actor_graphic(actor, x, y)
    if !(@draw_skip_graphic)
      draw_actor_graphic_para_stsw(actor, x, y)
    end
  end
  #--------------------------------------------------------------------------
  # ● 이름의 묘화
  #--------------------------------------------------------------------------
  alias draw_actor_name_para_stsw draw_actor_name
  def draw_actor_name(actor, x, y)
    if !(@draw_skip_name)
      draw_actor_name_para_stsw(actor, x, y)
    end
  end
  #--------------------------------------------------------------------------
  # ● 클래스의 묘화
  #--------------------------------------------------------------------------
  alias draw_actor_class_para_stsw draw_actor_class
  def draw_actor_class(actor, x, y)
    if !(@draw_skip_class)
      draw_actor_class_para_stsw(actor, x, y)
    end
  end
  #--------------------------------------------------------------------------
  # ○ 버틀러 그래픽의 묘화
  #--------------------------------------------------------------------------
  def draw_battler_graphic_para(actor, x, y)
    bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
    cw = bitmap.width
    ch = bitmap.height
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.blt(x, y, bitmap, src_rect)
  end
  #--------------------------------------------------------------------------
  # ○ 픽처의 묘화(액터)
  #--------------------------------------------------------------------------
  def draw_actor_picture_para(actor, x, y)
    bitmap = RPG::Cache.picture(actor.character_name)
    cw = bitmap.width
    ch = bitmap.height
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.blt(x, y, bitmap, src_rect)
  end
  #--------------------------------------------------------------------------
  # ○ 픽처의 묘화(버틀러)
  #--------------------------------------------------------------------------
  def draw_battler_picture_para(actor, x, y)
    bitmap = RPG::Cache.picture(actor.battler_name)
    cw = bitmap.width
    ch = bitmap.height
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.blt(x, y, bitmap, src_rect)
  end
end


출처:http://para.j-mx.com/

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
761 상점 Mog- 상점업그레이드 ps인간 2009.01.23 2682
760 스킬 스킬 포인트를 올리자! 3 what더붥 2012.01.26 2680
759 이동 및 탈것 백호님이올린 발소리 스크립트를 소리만 바꾸어 밨음 4 lhh9606 2009.05.19 2676
758 미니맵 미니맵 스크랩트 + 예재 15 file WMN 2008.03.17 2674
757 기타 몬스터 도감 18 file 백호 2009.02.22 2668
756 기타 4방향 마우스 스크립트 12 file 아방스 2009.02.28 2662
755 저장 세이브파일 망가뜨리기 by RPG Advocate 3 백호 2009.02.22 2657
754 변수/스위치 셀프 스위치 조작 10 file 허걱 2009.01.30 2655
753 테두리 글자 & 그림자 글자 12 아방스 2008.09.19 2643
752 타이틀/게임오버 게..임..오버.. ps인간 2009.01.23 2636
751 전투 자동전투 from RPG 쯔꾸르 XP RGSS Wiki 1 file 백호 2009.02.22 2622
750 메뉴 각 메뉴를 호화롭게 하는 스크립트 3 file 백호 2009.02.21 2618
749 스킬 제한시간내 커맨드를 입력해야 스킬이 발동~ 3 file 백호 2009.02.22 2614
748 온라인 [멀티넷스크립 PvP 이벤트버전] / [넷플레이0.7.2]버전 3 file 백호 2009.02.22 2604
747 전투 데미지 폰트변경 7 카르닉스 2010.02.26 2600
746 메뉴 혹시있나해서-_-.. 대화창에 테두리치기 스크립트 7 백호 2009.02.22 2592
745 전투 Mr.Mo's ABS Ultimate 7.0 by DerVVulfman 4 Alkaid 2012.08.26 2587
744 액터 (killer님 요청)자동회복 스크립트 3 나뚜루 2009.02.22 2572
743 메시지 윈도우즈 확장 file 백호 2009.02.21 2566
742 기타 [RGSS XP] 게임 해상도 조절 스크립트 (*2) 11 file Cheapmunk 2014.10.03 2564
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... 52 Next
/ 52