질문과 답변

Extra Form

 

 

 

캐릭터가 총 6명인데, 대열행렬 스크립트를 사용하니 최대 4명까지밖에 함께다니지 못하더라구요,

질문/답변에서 확장파티 스크립트라는걸 찾아서 적용시켜봤는데 화면에는 여전히 4명만 따라움직일수 있더라구요,

 

총6명이 기차놀이로 졸졸 따라다니게 하려면 어떻게 해야하나요?

 

 

 

Comment '11'
  • profile
    쿠쿠밥솥 2012.02.01 04:49

    대열행렬 스크립트의 숫자 4를 찾아서 5이상의 수로 바꿔주세요

  • ?
    오백원 2012.02.01 14:09

    TRAIN_ACTOR_SIZE_MAX를 4에서 6으로 바꾸었는데도 화면상에는 4명만 나오네요..ㅠㅠ

  • profile
    쿠쿠밥솥 2012.02.01 15:00

    새로하기로 테스트 하셔도 그른가여?

  • ?
    오백원 2012.02.01 17:59

    네..ㅠㅠ 뭐가 문제인지 모르겠네요..

  • profile
    쿠쿠밥솥 2012.02.01 19:41

    그럼 다른 스크립트 사용하셔야 겠네요...

     

    아방스님인가? 누가 올려주셔서 받았어요

     

    스크립트시작

      # MAX_SIZE is the max size of the followers.
      # CATERPILLAR is the switch to turn on or off followers. The default is 2
      #--------------------------------------------------------------------------
      # * Constants
      #--------------------------------------------------------------------------
      MAX_SIZE = 99
      CATERPILLAR = 4999

    class Game_Player
      #--------------------------------------------------------------------------
      # * Move Down
      #     turn_enabled : a flag permits direction change on that spot
      #--------------------------------------------------------------------------
      def move_down(turn_enabled = true)   
        super(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move Left
      #     turn_enabled : a flag permits direction change on that spot
      #--------------------------------------------------------------------------
      def move_left(turn_enabled = true)
        super(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move Right
      #     turn_enabled : a flag permits direction change on that spot
      #--------------------------------------------------------------------------
      def move_right(turn_enabled = true)
        super(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move up
      #     turn_enabled : a flag permits direction change on that spot
      #--------------------------------------------------------------------------
      def move_up(turn_enabled = true)
        super(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move Lower Left
      #--------------------------------------------------------------------------
      def move_lower_left
        super
      end
      #--------------------------------------------------------------------------
      # * Move Lower Right
      #--------------------------------------------------------------------------
      def move_lower_right
        super
      end
      #--------------------------------------------------------------------------
      # * Move Upper Left
      #--------------------------------------------------------------------------
      def move_upper_left
        super
      end
      #--------------------------------------------------------------------------
      # * Move Upper Right
      #--------------------------------------------------------------------------
      def move_upper_right
        super
      end
    end

    class Game_Follower < Game_Character
      #--------------------------------------------------------------------------
      # * Public Instance Variables
      #--------------------------------------------------------------------------
      attr_reader   :actor
      attr_accessor :move_speed
      #--------------------------------------------------------------------------
      # * Object Initialization
      #--------------------------------------------------------------------------
      def initialize(actor)
        super()
        @through = true
        @actor = actor
      end
      #--------------------------------------------------------------------------
      # * Set Actor
      #--------------------------------------------------------------------------
      def actor=(actor)
        @actor = actor
        setup
      end
      #--------------------------------------------------------------------------
      # * Setup
      #--------------------------------------------------------------------------
      def setup
        if @actor != nil     
          @character_name = $game_actors[@actor].character_name
          @character_index = $game_actors[@actor].character_index
        else
          @character_name = ""
          @character_index = 0
        end
        @opacity = 255
        @blend_type = 0
        @priority_type = 0
      end
     
      #--------------------------------------------------------------------------
      # * Screen Z
      #--------------------------------------------------------------------------
      def screen_z
        if $game_player.x == @x and $game_player.y == @y
          return $game_player.screen_z - 1
        end
        super
      end
      #--------------------------------------------------------------------------
      # * Same Position Starting Determinant (Disabled)
      #--------------------------------------------------------------------------
      def check_event_trigger_here(triggers)
        result = false
        return result
      end
      #--------------------------------------------------------------------------
      # * Front Envent Starting Determinant (Disabled)
      #--------------------------------------------------------------------------
      def check_event_trigger_there(triggers)
        result = false
        return result
      end
      #--------------------------------------------------------------------------
      # * Touch Event Starting Determinant (Disabled)
      #--------------------------------------------------------------------------
      def check_event_trigger_touch(x, y)
        result = false
        return result
      end
    end

    class Spriteset_Map
      alias_method :spriteset_map_create_characters, :create_characters
      def create_characters
        spriteset_map_create_characters
        $game_party.followers.each do |char|
          @character_sprites << Sprite_Character.new(@viewport1, char)
        end
      end
    end

    class Game_Party

      #--------------------------------------------------------------------------
      # * Public Instance Variables
      #--------------------------------------------------------------------------
      attr_reader :followers
      #--------------------------------------------------------------------------
      # * Object Initialization
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_party_initialize, :initialize
      def initialize
        trick_caterpillar_party_initialize
        @followers = Array.new(MAX_SIZE - 1) {Game_Follower.new(nil)}
        @move_list = []
      end
      #--------------------------------------------------------------------------
      # * Update Followers
      #--------------------------------------------------------------------------
      def update_followers
        flag = $game_player.transparent || $game_switches[CATERPILLAR]
        @followers.each_with_index do |char, i|
          char.actor = @actors[i + 1]
          char.move_speed = $game_player.move_speed
          if $game_player.dash?
            char.move_speed += 1
          end
          char.update
          char.transparent = flag
        end
      end
      #--------------------------------------------------------------------------
      # * Move To Party
      #--------------------------------------------------------------------------
      def moveto_party(x, y)
        @followers.each {|char| char.moveto(x, y)}
        @move_list.clear
      end
      #--------------------------------------------------------------------------
      # * Move Party
      #--------------------------------------------------------------------------
      def move_party
        @move_list.each_index do |i|
          if @followers[i] == nil
            @move_list[i...@move_list.size] = nil
            next
          end
          case @move_list[i].type
          when 2
            @followers[i].move_down(*@move_list[i].args)
          when 4
            @followers[i].move_left(*@move_list[i].args)
          when 6
            @followers[i].move_right(*@move_list[i].args)
          when 8
            @followers[i].move_up(*@move_list[i].args)
          when j
            @followers[i].move_lower_left
          when 3
            @followers[i].move_lower_right
          when 7
            @followers[i].move_upper_left
          when 9
            @followers[i].move_upper_right
          when 5
            @followers[i].jump(*@move_list[i].args)
          end
        end
      end
      #--------------------------------------------------------------------------
      # * Add Move List
      #--------------------------------------------------------------------------
      def update_move(type, *args)
        move_party
        @move_list.unshift(Game_MoveListElement.new(type, args))
      end
    end

    class Game_MoveListElement
      #--------------------------------------------------------------------------
      # * Object Initialization
      #--------------------------------------------------------------------------
      def initialize(type, args)
        @type = type
        @args = args
      end
      #--------------------------------------------------------------------------
      # * Type
      #--------------------------------------------------------------------------
      def type
        return @type
      end
      #--------------------------------------------------------------------------
      # * Args
      #--------------------------------------------------------------------------
      def args
        return @args
      end
    end

    class Game_Player
      #--------------------------------------------------------------------------
      # * Public Instance Variables
      #--------------------------------------------------------------------------
      attr_reader :move_speed
     
      #--------------------------------------------------------------------------
      # * Update
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_update, :update
      def update
        $game_party.update_followers
        trick_caterpillar_player_update
      end
      #--------------------------------------------------------------------------
      # * Moveto
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_moveto, :moveto
      def moveto(x, y)
        $game_party.moveto_party(x, y)
        trick_caterpillar_player_moveto(x, y)
      end
      #--------------------------------------------------------------------------
      # * Move Down
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_down, :move_down
      def move_down(turn_enabled = true)
        if passable?(@x, @y+1)
          $game_party.update_move(2, turn_enabled)
        end   
        trick_caterpillar_player_move_down(turn_enabled)   
      end
      #--------------------------------------------------------------------------
      # * Move Left
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_left, :move_left
      def move_left(turn_enabled = true)
        if passable?(@x-1, @y)
          $game_party.update_move(4, turn_enabled)
        end
        trick_caterpillar_player_move_left(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move Right
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_right, :move_right
      def move_right(turn_enabled = true)
        if passable?(@x+1, @y)
          $game_party.update_move(6, turn_enabled)
        end
        trick_caterpillar_player_move_right(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move Up
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_up, :move_up
      def move_up(turn_enabled = true)
        if passable?(@x, @y-1)
          $game_party.update_move(8, turn_enabled)
        end
        trick_caterpillar_player_move_up(turn_enabled)
      end
      #--------------------------------------------------------------------------
      # * Move Lower Left
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_lower_left, :move_lower_left
      def move_lower_left
        if passable?(@x - 1, @y) and passable?(@x, @y + 1)
          $game_party.update_move(1)
        end
        trick_caterpillar_player_move_lower_left
      end
      #--------------------------------------------------------------------------
      # * Move Lower Right
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_lower_right, :move_lower_right
      def move_lower_right
        if passable?(@x + 1, @y) and passable?(@x, @y + 1)
          $game_party.update_move(3)
        end
        trick_caterpillar_player_move_lower_right
      end
      #--------------------------------------------------------------------------
      # * Move Upper Left
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_upper_left, :move_upper_left
      def move_upper_left
        if passable?(@x - 1, @y) and passable?(@x, @y - 1)
          $game_party.update_move(7)
        end
        trick_caterpillar_player_move_upper_left
      end
      #--------------------------------------------------------------------------
      # * Move Upper Right
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_move_upper_right, :move_upper_right
      def move_upper_right
        if passable?(@x + 1, @y) and passable?(@x, @y - 1)
          $game_party.update_move(9)
        end
        trick_caterpillar_player_move_upper_right
      end
      #--------------------------------------------------------------------------
      # * Jump
      #--------------------------------------------------------------------------
      alias_method :trick_caterpillar_player_jump, :jump
      def jump(x_plus, y_plus)
        new_x = @x + x_plus
        new_y = @y + y_plus
        if (x_plus == 0 and y_plus == 0) or passable?(new_x, new_y)
          $game_party.update_move(5, x_plus, y_plus)
        end
        trick_caterpillar_player_jump(x_plus, y_plus)
      end
    end
                                                                                      ┘스크립트 끝

  • ?
    오백원 2012.02.02 01:02

    감사합니다!! 근데 여전히 화면상엔 4명이 최대네요..ㅠㅠ..

    데이터베이스>시스템>초기파티원 에서 파티원을 추가해보려고 했는데 4명에서 추가가 안되네요..

  • profile


    아아 그건 파티 확장 스크립트를 넣으셔야 됩니다.

     

    아방스님께서 올려주신 파티 확장 스크립트 입니다.

     

    님께서 올려주신 파티 확장 스크립트 입니다.

     

    http://avangs.info/index.php?mid=rgss_vx&page=28&document_srl=258152

     

    그리고, 이건 KGC에서 얻어온

     

    많은 사람 파티.txt

  • ?
    오백원 2012.02.02 12:44 Files첨부 (2)
    계속 귀찮게해서 죄송합니다ㅠㅠ..
    그런데 확장파티 스크립트를 써도 초기파티인원은 그대로더라구요..
    그래서 이것저것 만지다가

     2.JPG

     

    setup_starting_members

    @actors 옆에 괄호에 숫자를 바꿔봤더니

     

    1.JPG  

     

    이렇게 다섯명이 되네요! 근데 6을 넣으면 여섯번째 캐릭터가 나오고,
    6명이 나오진 않더라구요^^;..이건 어떻게해결해야할지.. 자꾸 귀찮게해서 죄송합니다 ㅠㅠ 

  • ?
    아이미르 2012.02.02 13:40

    @actors=[5,6] 이렇게 해보세요

  • ?
    오백원 2012.02.02 17:11

    되네요!! 도와주셔서 감사합니다^^!

     

     

  • ?
    신규회원 2012.02.07 16:30

    @actors=[]      이렇게 하니까 모두 다 나오는군요


List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12390
RMVX vx에서 아이템 반짝이게 하기 4 3g 2012.02.03 2676
RMVX 스크립트 입문, 문법에 관한 질문 3 딸기뱀 2012.02.02 1671
RMVX 메뉴변경하는 방법과 hp,mp수치 변경 1 알거없다 2012.02.01 2469
RMVX 특정 메뉴에서 아이콘 크기 조절하는 방법을 알려주세요 mits 2012.02.01 2207
RMVX 대열행렬 사용할때 4명이상 따라다니게 할 수 있나요? 11 오백원 2012.01.31 1248
RMVX 캐릭터가 움직이지 않습니다. 3 투덜이스머프 2012.01.30 1959
RMVX 노트를 이용하는 스킬 데미지 공식의 관계도 추가 혹은 설정 좀 도와주세요 2 mits 2012.01.28 2081
RMVX Tile A를 다운받아서 쓰면 벽을 통과해요 2 아브렐라 2012.01.28 3087
RMVX 왕초보 강의(알켜주셈요)!!! 3 oo러브oo 2012.01.27 2674
RMVX 뱀파이어 액알에서 액터 방어율 설정 가능한가요? 닉네임은2와20 2012.01.21 2429
RMVX vx삭제 하는 방법 좀여 2 오매갓 2012.01.20 2377
RMVX vx 얼굴 만들기 사이트 질문이요!! 1 file daek77 2012.01.20 2854
RMVX 아이템 사용이 안됩니다 2 아브렐라 2012.01.19 3184
RMVX 퀘스트 무한반복 안되게 하는법. 3 니똥방구 2012.01.19 2911
RMVX 만렙을 40으로 하고 싶은데... 1 로타로리 2012.01.19 2630
RMVX 타이틀 메뉴 추가 방법 & 타이틀 메뉴 선택 시 팝업 뜨게하는 방법 1 mihael0539 2012.01.18 2882
RMVX 평상시에공격하게하는법을가치처주세여!!! 2 옥컴쌤 2012.01.18 2354
RMVX 대쉬 속도 변경 어떻게 하나요? 1 닉네임은2와20 2012.01.18 2653
RMVX 뱀파이어 액알을 사용 중인데 상태가 이상하게 먹히네요... 닉네임은2와20 2012.01.17 2745
RMVX 안녕하세요. VX 초보자라 좀 한심한 질문좀 할게요. 2 로키입니다 2012.01.17 2185
Board Pagination Prev 1 ... 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ... 127 Next
/ 127