RPGVX Ace 스크립트
2014.01.17 01:01

Rpg Vx Ace 에서 이벤트 이름 팝업

조회 수 1905 추천 수 0 댓글 3
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

↑위의 링크로 들어가시면 바로 보이므로 복붙하시면 됩니다만.....

아래에 설명문과 폰트 설정, 변수명부분만 한글화한걸 올렸습니다.

참고로 폰트 모양은 시스템 기본 설정 폰트를 따라갑니다.










#==============================================================================
# ★ RGSS3_이벤트위에 이름 띄우기 Ver1.1
#==============================================================================
=begin

제작자:tomoaky
web 사이트:ひきも記 (http://hikimoki.sakura.ne.jp/)

이벤트 이름, 또는이벤트 페이지 실행내용 상단에 주석으로 다음과 같이 씁니다.
<namepop [띄우고 싶은 문자]>
그럼 이벤트 위에 해당 글자가 표시됩니다.

이벤트 이름에 표시했을경우, 이벤트 모든 페이지에 적용됩니다.
주석에 표시했을경우, 해당 페이지만 표시되지만 우선도가 더 높아 주석의 이름이 표시됩니다.

문자를 지우려면 <namepop none> 을 사용하면 됩니다.

2011.12.16  Ver1.1
  글꼴 테두리 불투명도를 지정 가능하게 수정

2011.12.15  Ver1.0
  공개/배포
 
=end

#==============================================================================
# □ 설정하목
#==============================================================================
module TMNPOP
  FONT_SIZE = 14          # 글꼴의 사이즈
  FONT_OUT_ALPHA = 255    # 글꼴의 테두리 불투명도
end

#==============================================================================
# ■ Game_Character
#==============================================================================
class Game_Character
  #--------------------------------------------------------------------------
  # ● 변수
  #--------------------------------------------------------------------------
  attr_accessor :namepop                  # 팝업 텍스트
  #--------------------------------------------------------------------------
end

#==============================================================================
# ■ Game_Event
#==============================================================================
class Game_Event < Game_Character
  #--------------------------------------------------------------------------
  # ● イベントページの設定をセットアップ
  #--------------------------------------------------------------------------
  alias tmnpop_game_event_setup_page_settings setup_page_settings
  def setup_page_settings
    tmnpop_game_event_setup_page_settings
    if @list
      @namepop = $1 if /<namepops*(S+?)>/i =~ @event.name
      @list.each do |list|
        if list.code == 108 || list.code == 408
          @namepop = $1 if /<namepops*(S+?)>/i =~ list.parameters[0]
        else
          break
        end
      end
    end
  end
end

#==============================================================================
# ■ Sprite_Character
#==============================================================================
class Sprite_Character < Sprite_Base
  #--------------------------------------------------------------------------
  # ● 解放
  #--------------------------------------------------------------------------
  alias tmnpop_sprite_character_dispose dispose
  def dispose
    dispose_namepop
    tmnpop_sprite_character_dispose
  end
  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
  alias tmnpop_sprite_character_update update
  def update
    tmnpop_sprite_character_update
    update_namepop
    if @character.namepop != @namepop
      @namepop = @character.namepop
      start_namepop
    end
  end
  #--------------------------------------------------------------------------
  # ○ namepopの開始
  #--------------------------------------------------------------------------
  def start_namepop
    dispose_namepop
    return if @namepop == "none" || @namepop == nil
    @namepop_sprite = ::Sprite.new(viewport)
    h = TMNPOP::FONT_SIZE + 4
    @namepop_sprite.bitmap = Bitmap.new(h * 10, h)
    @namepop_sprite.bitmap.font.size = TMNPOP::FONT_SIZE
    @namepop_sprite.bitmap.font.out_color.alpha = TMNPOP::FONT_OUT_ALPHA
    @namepop_sprite.bitmap.draw_text(0, 0, h * 10, h, @namepop, 1)
    @namepop_sprite.ox = h * 5
    @namepop_sprite.oy = h
    update_namepop
  end
  #--------------------------------------------------------------------------
  # ○ namepopの更新
  #--------------------------------------------------------------------------
  def update_namepop
    if @namepop_sprite
      @namepop_sprite.x = x
      @namepop_sprite.y = y - height
      @namepop_sprite.z = z + 200
    end
  end
  #--------------------------------------------------------------------------
  # ○ namepopの解放
  #--------------------------------------------------------------------------
  def dispose_namepop
    if @namepop_sprite
      @namepop_sprite.bitmap.dispose
      @namepop_sprite.dispose
      @namepop_sprite = nil
    end
  end
end
?
  • ?
    두부 2014.01.17 01:03
    감사합니다~!
  • ?
    게임쟁이 2014.03.02 00:22
    감사합니다 ㅋㅋㅋㅋㅋㅋ!
  • ?
    rpg깍는 장인 2021.05.13 02:09
    스크립트 오류는 안뜨는데 이벤트 이름도 표시가 안돼네요...ㄷㄷ
    이벤트 이름, 주석으로 <namepop [이름]> 이렇게 써도 안뜨는데 방법이 없을까요?

  1. [VX] 파티 선두 캐릭터 액터ID를 변수에 넣기

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1710 Votes1
    Read More
  2. Crafting System (아이템 조합 시스템)

    Date2016.01.06 CategoryRPGMV 플러그인 Byplam Views1725 Votes0
    Read More
  3. 8방향 이동스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views1729 Votes6
    Read More
  4. 발소리 스크립트

    Date2013.10.01 CategoryRPGXP 스크립트 By Views1730 Votes0
    Read More
  5. [VX] 조건분기로 키입력의 처리 실행

    Date2008.11.28 CategoryRPGVX 스크립트 ByEvangelista Views1734 Votes1
    Read More
  6. 창고 시스템

    Date2008.01.18 CategoryRPGXP 스크립트 By창조도시 Views1738 Votes3
    Read More
  7. 스텟찍기스크립트

    Date2014.02.22 CategoryRPGXP 스크립트 By천둥번들 Views1771 Votes3
    Read More
  8. 현재 파티내 캐릭터를 선택지로 처리할 때 간편히 하자.

    Date2009.01.01 CategoryRPGVX 스크립트 ByEvangelista Views1778 Votes1
    Read More
  9. 파티 선두 캐릭터 id 변수에 넣기

    Date2008.01.08 CategoryRPGXP 스크립트 ByEvangelista Views1786 Votes1
    Read More
  10. 직업명 표시

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1787 Votes0
    Read More
  11. 대화 글씨 폰트를 원하는 폰트로 바꾸기

    Date2007.12.01 CategoryRPGXP 스크립트 By창조도시 Views1813 Votes2
    Read More
  12. 상점에서 상세정보보여주기

    Date2010.10.24 CategoryRPGXP 스크립트 ByA.M.S Views1818 Votes0
    Read More
  13. 게임프레임 조절

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1818 Votes0
    Read More
  14. Action Sequence Pack 2 (전투모드 액션 플러그인)

    Date2016.01.05 CategoryRPGMV 플러그인 Byplam Views1826 Votes0
    Read More
  15. 말풍선 메세지 스크립트

    Date2014.02.24 CategoryRPGXP 스크립트 By천둥번들 Views1857 Votes0
    Read More
  16. 미니맵 스크립트

    Date2013.09.20 CategoryRPGXP 스크립트 By청담 Views1877 Votes0
    Read More
  17. 기차 파티 스크립트

    Date2008.07.24 CategoryRPGXP 스크립트 By창조도시 Views1879 Votes2
    Read More
  18. 그림자문자 사용하기.. 바탕색이 무슨색이건 상관없이 글자가 잘보인다!!!

    Date2007.11.06 CategoryRPGXP 스크립트 By창조도시 Views1888 Votes1
    Read More
  19. 대화에 얼굴이 나오는 스크립트 by: killarot(네이버 dust_mite)(수정버전)

    Date2016.02.22 CategoryRPGXP 스크립트 By부초 Views1901 Votes0
    Read More
  20. Rpg Vx Ace 에서 이벤트 이름 팝업

    Date2014.01.17 CategoryRPGVX Ace 스크립트 By빙냥이 Views1905 Votes0
    Read More
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)