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 5398
297 상점 상점 할인 스크립트(변수를 이용한 물건 가격 조정) 9 달표범 2009.09.04 3185
296 스킬 발상의전환 : 스킬과 아이템의 공격횟수를 동시에 증가시키기 14 star211 2010.02.16 3179
295 그래픽 KGC_BitmapExtension : 비트맵 클래스 확장 8 file soleone 2010.07.18 3176
294 기타 디스크 체인져 VX!! (업데이트..) 30 file Tofuman 2008.12.02 3168
293 기타 요리 시스템을 도입하는 스크립트입니다. 9 file 스페나로츠 2011.08.18 3145
292 스킬 hp소모스킬 31 file DH Games 2010.02.14 3141
291 기타 커스텀 페이지 스크립트 9 file 달표범 2009.09.07 3140
290 메뉴 YERD - 시스템 옵션 5 file 훈덕 2009.11.08 3136
289 전투 전투후렙업시나오는상세창 11 작은샛별 2010.03.07 3128
288 커서 애니메이션 12 file RPGbooster 2008.10.11 3127
287 전투 Animated Battlers VX 3.4 by DerVVulfman 5 file Alkaid 2010.09.10 3117
286 전투 RPG tankentai에서의 치명적 문제점을 보완한 스크립트 2 file 톰소여동생 2010.11.03 3117
285 장비 KGC 확장 장비 화면 2009/02/15 13 시트르산 2010.09.25 3113
284 전투 Animated Battlers VX 3.5 by DerVVulfman 2 Alkaid 2011.11.02 3098
283 기타 Crissaegrim Farm BETA 1.0.0 10 Man... 2008.11.22 3094
282 기타 경험치 백분율 계산 2 허걱 2009.06.30 3093
281 기타 여러스크립트(목적은 포인트) 12 file 인생은 힘들다. 2011.08.26 3088
280 장비 남성 / 여성전용 장비 스크립트 (수정 v1.1) 16 Evangelista 2009.11.15 3070
279 전투 Actor Battler Graphics 13 아방스 2008.03.07 3065
278 타이틀/게임오버 메인 화면을 건너뛰고 시작하는 스크립트 14 아방스 2008.02.01 3064
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 ... 32 Next
/ 32