VX 스크립트

기타
2009.03.29 12:24

캐릭터 소개화면

조회 수 6044 추천 수 0 댓글 16
Atachment
첨부 '1'
스크립트에서 수정을 해주셔야합니다.

캐릭터의 키, 몸무게, 나이등을 스크립트에 적어주세요.

아래에 있는 커스터마이즈에서 하실수있습니다.

그리고 캐릭터 그래픽을 반드시 넣어주셔야합니다.

Graphic/face 폴더안에 그래픽을 넣어주세요

그래픽의 이름도 스크립트에서 제대로 수정하셔야합니다.

















====================================================== # ■ VX-RGSS2-1 캐릭터소개화면 [Ver.1.0.0] by Claimh #------------------------------------------------------------------------------ #  ·스테이터스 화면시에 어떠한 버튼을 누르는 것으로,
#    각 캐릭터의 상세 설명 화면을 표시할 수 있습니다.
#   ·버튼은 HELP의 Input를 보고, 확인해 주세요.
#   ·표준에서는, 캐릭터의 연령, 출신지, 신장, 체중,
#    그 외의 문장 설명을 대응하고 있습니다.
#   ·이외에 추가하고 싶은 경우는, 개조해 주세요. #============================================================================== module Chara_Review #---------------------------------------------------------------------------- # 설정START #---------------------------------------------------------------------------- # 캐릭터 소개로 전환하는 버튼(디폴트:C) CHENGE_KEY = Input::C #-------------------------------------------------------------------------- # ● 연령(액터 ID의 순서에 넣어 가 주세요)
#-------------------------------------------------------------------------- CHARA_AGE = { # アクターID => "나이" 1 => "??", 2 => "??", 3 => "??", 4 => "??", 5 => "??", 6 => "??", 7 => "??", 8 => "??" } #-------------------------------------------------------------------------- # ● 출신지(사는곳) #-------------------------------------------------------------------------- CHARA_FROM = { # アクターID => "출신지" 1 => "??", 2 => "??", 3 => "??", 4 => "??", 5 => "??", 6 => "??", 7 => "??", 8 => "??" } #-------------------------------------------------------------------------- # ●신장(키) #-------------------------------------------------------------------------- CHARA_H = { # アクターID => "신장" 1 => "??", 2 => "??", 3 => "??", 4 => "??", 5 => "??", 6 => "??", 7 => "??", 8 => "??" } #-------------------------------------------------------------------------- # ● 체중(몸무게) #-------------------------------------------------------------------------- CHARA_W = { # アクターID => "체중" 1 => "??", 2 => "??", 3 => "??", 4 => "??", 5 => "??", 6 => "??", 7 => "??", 8 => "??" } #-------------------------------------------------------------------------- # ● 그 외 문장(n를 넣으면 개행합니다)
#-------------------------------------------------------------------------- CHARA_INFO = { # アクターID:1 1 => "???", # アクターID:2 2 => "???", # アクターID:3 3 => "???", # アクターID:4 4 => "???", # アクターID:5 5 => "???", # アクターID:6 6 => "???", # アクターID:7 7 => "???", # アクターID:8 8 => "???" } #-------------------------------------------------------------------------- # ● 버스트 업 화상 (소개화면에 표시할 캐릭터 그래픽) #-------------------------------------------------------------------------- # 얼굴 그래픽이 아니고, 버스트 업 화상을 사용한다
BSTUP = true # 버스트 업 화상의 파일명(Graphics/Face) BSTUP_FILE = { # 액터ID:1 1 => "Actor1-1", # 액터ID:2 2 => "Actor2-2", # 액터ID:3 3 => "Actor3-3", # 액터ID:4 4 => "Actor4-4" } #---------------------------------------------------------------------------- # カスタマイズEND #---------------------------------------------------------------------------- end #============================================================================== # ■ Window_Charactor #------------------------------------------------------------------------------ #  キャラ紹介画面 #============================================================================== class Window_Charactor < Window_Base #-------------------------------------------------------------------------- # ● オブジェクト初期化 # actor : アクター #-------------------------------------------------------------------------- def initialize(actor) super(0, 0, 544, 416) self.contents = Bitmap.new(width - 32, height - 32) refresh(actor) end #-------------------------------------------------------------------------- # ● リフレッシュ #-------------------------------------------------------------------------- def refresh(actor) self.contents.clear return if actor.nil? if Chara_Review::BSTUP refresh_bstup(actor) # バストアップの描画 else refresh_face(actor) # 顔グラフィックの描画 end end #-------------------------------------------------------------------------- # ● リフレッシュ(BSTUP) #-------------------------------------------------------------------------- def refresh_bstup(actor) draw_face_picture(Chara_Review::BSTUP_FILE[actor.id], 0, 0) self.contents.font.color = system_color self.contents.draw_text(280, 30, 80, WLH, "Name:") self.contents.draw_text(280, 60, 80, WLH, "Age:") self.contents.draw_text(280, 90, 80, WLH, "From:") self.contents.draw_text(280, 120, 80, WLH, "Height:") self.contents.draw_text(280, 150, 80, WLH, "Weight:") self.contents.font.color = normal_color draw_actor_name(actor, 380, 30) self.contents.draw_text(380, 60, 80, WLH, Chara_Review::CHARA_AGE[actor.id]) self.contents.draw_text(380, 90, 180, WLH, Chara_Review::CHARA_FROM[actor.id]) self.contents.draw_text(380, 120 , 200, WLH, Chara_Review::CHARA_H[actor.id]) self.contents.draw_text(380, 150, 250, WLH, Chara_Review::CHARA_W[actor.id]) draw_enter_text(20, 300, 500, WLH, Chara_Review::CHARA_INFO[actor.id]) end #-------------------------------------------------------------------------- # ● リフレッシュ(FACE) #-------------------------------------------------------------------------- def refresh_face(actor) draw_actor_face(actor, 8, 32) self.contents.font.color = system_color self.contents.draw_text(200, 30, 80, WLH, "Name:") self.contents.draw_text(200, 60, 80, WLH, "Age:") self.contents.draw_text(200, 90, 80, WLH, "From:") self.contents.draw_text(200, 120, 80, WLH, "Height:") self.contents.draw_text(200, 150, 80, WLH, "Weight:") self.contents.font.color = normal_color draw_actor_name(actor, 300, 30) self.contents.draw_text(300, 60, 80, WLH, Chara_Review::CHARA_AGE[actor.id]) self.contents.draw_text(300, 90, 180, WLH, Chara_Review::CHARA_FROM[actor.id]) self.contents.draw_text(300, 120 , 200, WLH, Chara_Review::CHARA_H[actor.id]) self.contents.draw_text(300, 150, 250, WLH, Chara_Review::CHARA_W[actor.id]) draw_enter_text(20, 200, 500, WLH, Chara_Review::CHARA_INFO[actor.id]) end end class Window_Base < Window #-------------------------------------------------------------------------- # ● 改行を認識して表示 #-------------------------------------------------------------------------- def draw_enter_text(x, y, width, height, text) info_box = text.split(/n/) for i in 0...info_box.size self.contents.draw_text( x, y+i*WLH, width, WLH, info_box[i]) break if (y+i*WLH) > (self.height-WLH) end end #-------------------------------------------------------------------------- # ● ピクチャ表示(Graphics/Face) #-------------------------------------------------------------------------- def draw_face_picture(file_name, x, y) bitmap = Cache.face(file_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 #============================================================================== # ■ Scene_Charactor #------------------------------------------------------------------------------ #  キャラ紹介画面の処理を行うクラスです。 #============================================================================== class Scene_Charactor < Scene_Base #-------------------------------------------------------------------------- # ● オブジェクト初期化 # actor_index : アクターインデックス #-------------------------------------------------------------------------- def initialize(actor_index = 0) @actor_index = actor_index end #-------------------------------------------------------------------------- # ● 開始処理 #-------------------------------------------------------------------------- def start super create_menu_background @actor = $game_party.members[@actor_index] @status_window = Window_Charactor.new(@actor) end #-------------------------------------------------------------------------- # ● 終了処理 #-------------------------------------------------------------------------- def terminate super dispose_menu_background @status_window.dispose end #-------------------------------------------------------------------------- # ● 元の画面へ戻る #-------------------------------------------------------------------------- def return_scene $scene = Scene_Status.new(@actor_index) end #-------------------------------------------------------------------------- # ● 次のアクターの画面に切り替え #-------------------------------------------------------------------------- def next_actor @actor_index += 1 @actor_index %= $game_party.members.size $scene = Scene_Charactor.new(@actor_index) end #-------------------------------------------------------------------------- # ● 前のアクターの画面に切り替え #-------------------------------------------------------------------------- def prev_actor @actor_index += $game_party.members.size - 1 @actor_index %= $game_party.members.size $scene = Scene_Charactor.new(@actor_index) end #-------------------------------------------------------------------------- # ● フレーム更新 #-------------------------------------------------------------------------- def update update_menu_background @status_window.update if Input.trigger?(Input::B) Sound.play_cancel return_scene elsif Input.trigger?(Input::R) Sound.play_cursor next_actor elsif Input.trigger?(Input::L) Sound.play_cursor prev_actor end super end end #============================================================================== # ■ Scene_Status #============================================================================== class Scene_Status #-------------------------------------------------------------------------- # ● フレーム更新 #-------------------------------------------------------------------------- alias update_chara update def update if Input.trigger?(Chara_Review::CHENGE_KEY) Sound.play_decision $scene = Scene_Charactor.new(@actor_index) end update_chara end end

 

Who's 좀비사냥꾼

?

 

 

Comment '16'
  • profile
    미니♂ban♀ 2009.03.31 00:04
    이거 너무 오류가 많이 나오네요.
    맨 처음에 #<-- 이것도 빠졋고 게임에 맞게 수정해서 해도 안돼고 그냥 해도 이 스크립트에 오류 나는거 같은데요.
  • ?
    칼맞은법사 2009.04.22 20:20
    스크립트에서 #는 주석처리할떄 쓰는거 아닌가요.. ? -_-..;
    제가 알기로는 뭐 설정할때( true 같은거 ) 빼고는 필요 없다고 알고있습니다만..?
  • ?
    알카 2009.03.31 00:14
    저도 오류나요...어떻게하면 되는거죠 ;;
  • ?
    루시페르 2009.04.05 14:53
        if Chara_Review::BSTUP
    이 부분이 이상하다고 에러뜬답니다아~
  • ?
    더네임ㅈㅈ 2009.04.05 22:40
    으음 사용법이..
  • ?
    백년술사 2009.04.09 19:15
  • ?
    크런키맛아듀크림 2009.05.05 03:29

    오류나요..ㅜㅜ

  • ?
    유스갈 2009.07.12 15:18
  • ?
    078656577er 2009.09.23 12:43

    잘 됩니다.

    다만

    # 얼굴 그래픽이 아니고, 버스트 업 화상을 사용한다 BSTUP = true

    이 부분을

    # 얼굴 그래픽이 아니고, 버스트 업 화상을 사용한다
      BSTUP = true

    이렇게 바꾸면 잘 됩니다.

    BSTUP = true 부분이 주석부분에 들어가게 되서 에러가 나는군요..

    바이오만 나온거 필요했는데 감사

  • ?
    1000℃ 복숭아 2010.01.27 15:17

    오류가 나는데요;

  • ?
    아직은초보 2010.01.28 12:00

    오류하지만 좋음

  • ?
    우지긴토키덮밥 2010.07.24 07:36

    오류가 나는데요?

  • ?
    김브레이커 2010.07.28 16:01

    어..엄청난..

  • ?
    KMS 2011.02.11 10:34
    감사합니다.
    좋은 거 얻고 가네요
  • ?
    캬무캬무 2011.07.25 21:04

    우와

  • ?
    초마 2011.11.05 07:02

    좋은 스크립트 감사드립니다~


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5408
637 전투 VLAD ABS [액알 시스템] 65 아방스 2009.01.07 12566
636 전투 vampyr SBABS-Requiem ABS 9(액알) 101 file 담먹캐 2009.11.01 12005
635 HUD rpg 만들기 vx - 맵이름 띠우는 스크립트 ^^ 74 아방스 2008.01.27 11928
634 HUD PRABS v1.0 [hud,주석액알,원거리공격,hotkeys,vx] 대박감이다. 47 유칸지 2008.08.13 11114
633 전투 사이드뷰배틀3.3 + ATB1.1 스크립트. 65 할렘 2009.02.01 10946
632 전투 ORBS [새로운 전투 방식] 48 file 아방스 2009.03.04 10210
631 그래픽 3D그래픽 파티클엔진 45 file RPGbooster 2008.10.08 10130
630 전투 rpgvx 간단액알 스크립트 제작: 41 *PS 2008.02.07 9824
629 메뉴 (모그메뉴 풀세트팩 SEL Style.) 유니크급 자료 147 file 할렘 2009.02.07 9558
628 전투 RPG Tankentai SBS 3.3 + ATB Kaduki Eng 58 아방스 2009.02.05 9071
627 전투 ATB전투방식.(사이드뷰X 백발의카임전투방식O) 14 file 이피쿤 2009.06.24 9035
626 메뉴 일본에서 만든 멋있는메뉴변경 스크립트 (한글 VX에서 쓰시면 자동으로 바뀜) 45 유칸지 2008.04.09 8861
625 전투 WGB배틀 시스템. 59 file 카르와푸딩의아틀리에 2009.06.30 8777
624 전투 Crissaegrim ABS 2.0.5 최신 48 file RPGbooster 2008.10.08 8768
623 전투 Requiem ABS 8 - 액션 배틀 시스템 8 36 아방스 2009.06.24 8540
622 전투 RPGTankentai SBS3.3b 버전 (사이드뷰) 21 file 카르와푸딩의아틀리에 2009.07.01 8455
621 전투 사이드뷰 스크립트 [2003 전투 방식] 39 아방스 2008.03.09 8406
620 맵/타일 RPG 만들기 VX 로 구현한 3D~ 42 아방스 2008.09.02 8405
619 메뉴 메뉴변경 스크립트 34 아방스 2008.01.24 7939
618 전투 PRABS 2.0 액션배틀시스템 58 file RPGbooster 2008.10.08 7575
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32