查看: 822|回复: 1

[已经解决] 加入了Followers Options脚本之后角色行走图莫名其妙改变

[复制链接]
梦石
0
星屑
50
在线时间
70 小时
注册时间
2015-11-26
回帖
45
发表于 2016-5-20 19:18:11 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
这是我在切换地图上的领队人物的事件做法:

我们现在有角色A和角色B:
A一直领队B
现在我设定A离队,队伍里就只剩下B,那么系统就自动让B领队了
B领队时,我让A再加入,此时B也依旧领队
然后我让B离队,队伍只剩下A,那么就是A领队了
我再让B加入,B就排在A后面,依旧A领队
这是正确的对吗?因为我在加入这个脚本之前就是这样切换地图上的领队人物的
可是当我加入这个脚本之后……重复上面的步骤后,
就发生了一件很神奇的事情,那就是:
A的行走图变成了B的样子!!!???(B还是B的行走图)

我在截图存档里(截图存档这个脚本会在截图界面下方显示队伍角色行走图)看到A和B的行走图都没变
但是在游戏里他就是变了……????A的行走图变成了B的样子
我整个人懵逼了……我真的不懂这是为什么,我确定事件页里没有设定更改角色行走图

  1. #==============================================================================
  2. # ** Victor Engine - Followers Options
  3. #------------------------------------------------------------------------------
  4. # Author : Victor Sant
  5. #
  6. # Version History:
  7. #  v 1.00 - 2012.01.20 > First relase
  8. #  v 1.01 - 2012.03.20 > Compatibility with Follower Control
  9. #------------------------------------------------------------------------------
  10. #  This script adds new options for the followers display. It improves the
  11. # movement, and allows to set the display of dead characters and reorder
  12. # the members on map without changing the battle order.
  13. #------------------------------------------------------------------------------
  14. # Compatibility
  15. #   Requires the script 'Victor Engine - Basic Module' v 1.16 or higher
  16. #   If used with 'Victor Engine - Character Effects' or
  17. #   'Victor Engine - Multi Frames' paste this one above them.
  18. #
  19. # * Overwrite methods (Default)
  20. #   class Game_Player < Game_Character
  21. #     def refresh
  22. #     def actor
  23. #
  24. # * Alias methods (Default)
  25. #   class Game_Actor < Game_Battler
  26. #     def setup(actor_id)
  27. #
  28. #   class Game_Party < Game_Unit
  29. #     def initialize
  30. #
  31. #   class Game_Map
  32. #     def update(main = false)
  33. #     def refresh
  34. #
  35. #   class Game_CharacterBase
  36. #     def initialize
  37. #     def update_move
  38. #     def moveto(x, y)
  39. #
  40. #   class Game_Follower < Game_Character
  41. #     def initialize(member_index, preceding_character)
  42. #     def update
  43. #
  44. # * Alias methods (Basic Module)
  45. #   class Game_Interpreter
  46. #     def comment_call
  47. #
  48. #------------------------------------------------------------------------------
  49. # Instructions:
  50. #  To instal the script, open you script editor and paste this script on
  51. #  a new section on bellow the Materials section. This script must also
  52. #  be bellow the script 'Victor Engine - Basic'
  53. #
  54. #------------------------------------------------------------------------------
  55. # Comment calls note tags:
  56. #  Tags to be used in events comment box, works like a script call.
  57. #  
  58. #  <dead charset id: 'x', i>
  59. #   Change dead graphic charset
  60. #     id  : actor ID
  61. #     'x' : dead charset filename ('filename')
  62. #     i   : dead charset charset index, if using 8 chars charsets. (0-7)
  63. #
  64. #------------------------------------------------------------------------------
  65. # Actors note tags:
  66. #   Tags to be used on the Actors note box in the database
  67. #  
  68. #  <dead charset: 'x', i>
  69. #   Initial dead graphic charset
  70. #     'x' : dead charset filename ('filename')
  71. #     i   : dead charset charset index, if using 8 chars charsets. (0-7)
  72. #
  73. #==============================================================================

  74. #==============================================================================
  75. # ** Victor Engine
  76. #------------------------------------------------------------------------------
  77. #   Setting module for the Victor Engine
  78. #==============================================================================

  79. module Victor_Engine
  80.   #--------------------------------------------------------------------------
  81.   # * Setup move distance
  82.   #   This is the distance for the movement dealy for the follower, to3
  83.   #   remove the delay just leave it zero.
  84.   #--------------------------------------------------------------------------
  85.   VE_MOVE_DISTANCE = 16
  86.   #--------------------------------------------------------------------------
  87.   # * Setup follower reorder
  88.   #   You can reorder the players on the map without changing the battle
  89.   #   order.
  90.   #--------------------------------------------------------------------------
  91.   VE_FOLLOWERS_REORDER = {
  92.     enable:   true,      # Enable playing sound when reorder
  93.     next_key: :R,        # Key that will move the next actor to the front
  94.                          # must be a valid key symbol, nil for no key
  95.     last_key: nil,       # Key that will move the last actor to the front
  96.                          # must be a valid key symbol, nil for no key
  97.     sound:    "Cursor2", # Filename of the SE played when changin order
  98.                          # nil for no sound
  99.     volume:   100,       # Volume of the change order SE
  100.     pitch:    100,       # Pitch of the change order SE
  101.   } # Don't remove
  102.   #--------------------------------------------------------------------------
  103.   # * Setup dead followers display
  104.   #   You can change how dead followes will be displayed
  105.   #--------------------------------------------------------------------------
  106.   VE_DEAD_FOLLOWER = {
  107.     hide:      false,     # Hide the display of dead actors
  108.     last:      true,      # Place dead actors as the last followers
  109.     filename:  "$Coffin", # Filename for dead graphic character, leave nil for
  110.                           # no dead graphic change
  111.     fileindex: 0          # Index for the dead graphic character, should be 0
  112.                           # for single charsets
  113.   } # Don't remove
  114.   #--------------------------------------------------------------------------
  115.   # * required
  116.   #   This method checks for the existance of the basic module and other
  117.   #   VE scripts required for this script to work, don't edit this
  118.   #--------------------------------------------------------------------------
  119.   def self.required(name, req, version, type = nil)
  120.     if !$imported[:ve_basic_module]
  121.       msg = "The script '%s' requires the script\n"
  122.       msg += "'VE - Basic Module' v%s or higher above it to work properly\n"
  123.       msg += "Go to [url]http://victorscripts.wordpress.com/[/url] to download this script."
  124.       msgbox(sprintf(msg, self.script_name(name), version))
  125.       exit
  126.     else
  127.       self.required_script(name, req, version, type)
  128.     end
  129.   end
  130.   #--------------------------------------------------------------------------
  131.   # * script_name
  132.   #   Get the script name base on the imported value, don't edit this
  133.   #--------------------------------------------------------------------------
  134.   def self.script_name(name, ext = "VE")
  135.     name = name.to_s.gsub("_", " ").upcase.split
  136.     name.collect! {|char| char == ext ? "#{char} -" : char.capitalize }
  137.     name.join(" ")
  138.   end
  139. end

  140. $imported ||= {}
  141. $imported[:ve_followers_options] = 1.00
  142. Victor_Engine.required(:ve_followers_options, :ve_basic_module, 1.16, :above)
  143. Victor_Engine.required(:ve_followers_options, :ve_multi_frames, 1.00, :bellow)
  144. Victor_Engine.required(:ve_followers_options, :ve_character_effects, 1.00, :bellow)

  145. #==============================================================================
  146. # ** Game_Actor
  147. #------------------------------------------------------------------------------
  148. #  This class handles actors. It's used within the Game_Actors class
  149. # ($game_actors) and referenced by the Game_Party class ($game_party).
  150. #==============================================================================

  151. class Game_Actor < Game_Battler
  152.   #--------------------------------------------------------------------------
  153.   # * Alias method: setup
  154.   #--------------------------------------------------------------------------
  155.   alias :setup_ve_followers_options :setup
  156.   def setup(actor_id)
  157.     setup_ve_followers_options(actor_id)
  158.     regexp = /<DEAD CHARSET: #{get_filename}(?: *, *(\d+))?>/i
  159.     setup_dead_graphic(note, regexp)
  160.   end
  161.   #--------------------------------------------------------------------------
  162.   # * New method: dead_graphic
  163.   #--------------------------------------------------------------------------
  164.   def dead_graphic
  165.     @dead_graphic
  166.   end
  167.   #--------------------------------------------------------------------------
  168.   # * New method: setup_dead_graphic
  169.   #--------------------------------------------------------------------------
  170.   def setup_dead_graphic(note, regexp)
  171.     @dead_graphic = {name: $1, index: $2 ? $2.to_i : 0} if note =~ regexp
  172.   end
  173. end

  174. #==============================================================================
  175. # ** Game_Party
  176. #------------------------------------------------------------------------------
  177. #  This class handles the party. It includes information on amount of gold
  178. # and items. The instance of this class is referenced by $game_party.
  179. #==============================================================================

  180. class Game_Party < Game_Unit
  181.   #--------------------------------------------------------------------------
  182.   # * Alias method: initialize
  183.   #--------------------------------------------------------------------------
  184.   alias :initialize_ve_followers_options :initialize
  185.   def initialize
  186.     initialize_ve_followers_options
  187.     @followers_id = []
  188.   end
  189.   #--------------------------------------------------------------------------
  190.   # * New method: members_id
  191.   #--------------------------------------------------------------------------
  192.   def members_id
  193.     battle_members.collect {|member| member.id }.sort
  194.   end
  195.   #--------------------------------------------------------------------------
  196.   # * New method: followers
  197.   #--------------------------------------------------------------------------
  198.   def followers
  199.     @followers_id.collect {|id| $game_actors[id] }
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # * New method: alive_followers
  203.   #--------------------------------------------------------------------------
  204.   def alive_followers
  205.     followers.select {|actor| !actor.dead? }
  206.   end
  207.   #--------------------------------------------------------------------------
  208.   # * New method: next_member
  209.   #--------------------------------------------------------------------------
  210.   def next_member
  211.     @followers_id.next_item
  212.   end
  213.   #--------------------------------------------------------------------------
  214.   # * New method: previous_member
  215.   #--------------------------------------------------------------------------
  216.   def previous_member
  217.     @followers_id.previous_item
  218.   end
  219.   #--------------------------------------------------------------------------
  220.   # * New method: dead_followers
  221.   #--------------------------------------------------------------------------
  222.   def dead_followers
  223.     alive_followers + followers.select {|actor| actor.dead? }
  224.   end
  225.   #--------------------------------------------------------------------------
  226.   # * New method: display_followers
  227.   #--------------------------------------------------------------------------
  228.   def display_followers
  229.     return alive_followers if VE_DEAD_FOLLOWER[:hide]
  230.     return dead_followers  if VE_DEAD_FOLLOWER[:last]
  231.     followers
  232.   end
  233.   #--------------------------------------------------------------------------
  234.   # * New method: update_followers
  235.   #--------------------------------------------------------------------------
  236.   def update_followers
  237.     update_followers_id
  238.     update_alive_followers
  239.   end
  240.   #--------------------------------------------------------------------------
  241.   # * New method: update_followers_id
  242.   #--------------------------------------------------------------------------
  243.   def update_followers_id
  244.     return if @followers_id.sort == members_id
  245.     @followers_id.delete_if {|id| !members_id.include?(id) }
  246.     @followers_id += members_id.select {|id| !@followers_id.include?(id)}
  247.     $game_player.refresh
  248.   end
  249.   #--------------------------------------------------------------------------
  250.   # * New method: update_alive_followers
  251.   #--------------------------------------------------------------------------
  252.   def update_alive_followers
  253.     return if @alive_followers == alive_followers
  254.     @alive_followers = alive_followers.dup
  255.     $game_player.refresh
  256.   end
  257. end

  258. #==============================================================================
  259. # ** Game_Map
  260. #------------------------------------------------------------------------------
  261. #  This class handles maps. It includes scrolling and passage determination
  262. # functions. The instance of this class is referenced by $game_map.
  263. #==============================================================================

  264. class Game_Map
  265.   #--------------------------------------------------------------------------
  266.   # * Alias method: update
  267.   #--------------------------------------------------------------------------
  268.   alias :update_ve_followers_options :update
  269.   def update(main = false)
  270.     update_ve_followers_options(main)
  271.     $game_party.update_followers
  272.     reorder_party if VE_FOLLOWERS_REORDER[:enable]
  273.   end
  274.   #--------------------------------------------------------------------------
  275.   # * Alias method: update
  276.   #--------------------------------------------------------------------------
  277.   alias :refresh_ve_followers_options :refresh
  278.   def refresh
  279.     refresh_ve_followers_options
  280.     $game_player.refresh
  281.   end
  282.   #--------------------------------------------------------------------------
  283.   # * New method: reorder_party
  284.   #--------------------------------------------------------------------------
  285.   def reorder_party
  286.     if Input.trigger?(VE_FOLLOWERS_REORDER[:next_key])
  287.       reorder_sound if VE_FOLLOWERS_REORDER[:sound]
  288.       $game_party.next_member  
  289.     elsif Input.trigger?(VE_FOLLOWERS_REORDER[:last_key])
  290.       reorder_sound if VE_FOLLOWERS_REORDER[:sound]
  291.       $game_party.previous_member  
  292.     end
  293.   end
  294.   #--------------------------------------------------------------------------
  295.   # * New method: reorder_sound
  296.   #--------------------------------------------------------------------------
  297.   def reorder_sound
  298.     value = VE_FOLLOWERS_REORDER
  299.     sound = RPG::SE.new(value[:sound], value[:volume], value[:pitch])
  300.     sound.play
  301.   end
  302. end

  303. #==============================================================================
  304. # ** Game_CharacterBase
  305. #------------------------------------------------------------------------------
  306. #  Esta classe gerencia os personagens. Comum a todos os persongens, armazena
  307. # informações básicas como coordenadas e gráficos
  308. # Esta classe é usada como superclasse da classe Game_Character.
  309. #==============================================================================

  310. class Game_CharacterBase
  311.   #--------------------------------------------------------------------------
  312.   # * Alias method: initialize
  313.   #--------------------------------------------------------------------------
  314.   alias :initialize_ve_followers_options :initialize
  315.   def initialize
  316.     initialize_ve_followers_options
  317.     @real_x_dist = 0
  318.     @real_y_dist = 0
  319.   end
  320.   #--------------------------------------------------------------------------
  321.   # * Alias method: update_move
  322.   #--------------------------------------------------------------------------
  323.   alias :update_move_ve_followers_options :update_move
  324.   def update_move
  325.     update_move_ve_followers_options
  326.     @real_x_dist = @real_x
  327.     @real_y_dist = @real_y
  328.   end
  329.   #--------------------------------------------------------------------------
  330.   # * Alias method: moveto
  331.   #--------------------------------------------------------------------------
  332.   alias :moveto_ve_followers_options :moveto
  333.   def moveto(x, y)
  334.     moveto_ve_followers_options(x, y)
  335.     @real_x_dist = @x
  336.     @real_y_dist = @y
  337.   end
  338.   #--------------------------------------------------------------------------
  339.   # * New method: real_x_dist
  340.   #--------------------------------------------------------------------------
  341.   def real_x_dist
  342.     @real_x_dist
  343.   end
  344.   #--------------------------------------------------------------------------
  345.   # * New method: real_y_dist
  346.   #--------------------------------------------------------------------------
  347.   def real_y_dist
  348.     @real_y_dist
  349.   end
  350. end

  351. #==============================================================================
  352. # ** Game_Player
  353. #------------------------------------------------------------------------------
  354. #  This class handles maps. It includes event starting determinants and map
  355. # scrolling functions. The instance of this class is referenced by $game_map.
  356. #==============================================================================

  357. class Game_Player < Game_Character
  358.   #--------------------------------------------------------------------------
  359.   # * Overwirte method: refresh
  360.   #--------------------------------------------------------------------------
  361.   def refresh
  362.     @character_name  = actor_graphic[:name]
  363.     @character_index = actor_graphic[:index]
  364.     @followers.refresh
  365.   end
  366.   #--------------------------------------------------------------------------
  367.   # * Overwirte method: actor
  368.   #--------------------------------------------------------------------------
  369.   def actor
  370.     $game_party.display_followers[0]
  371.   end
  372.   #--------------------------------------------------------------------------
  373.   # * New method: actor_graphic
  374.   #--------------------------------------------------------------------------
  375.   def actor_graphic
  376.     return {name: "", index: 0} unless actor
  377.     return actor.dead_graphic if actor.dead? && actor.dead_graphic
  378.     return dead_follower      if actor.dead? && dead_follower[:name]
  379.     return {name: actor.character_name, index: actor.character_index}
  380.   end
  381.   #--------------------------------------------------------------------------
  382.   # * New method: dead_follower
  383.   #--------------------------------------------------------------------------
  384.   def dead_follower
  385.     {name: VE_DEAD_FOLLOWER[:filename], index: VE_DEAD_FOLLOWER[:fileindex]}
  386.   end
  387.   #--------------------------------------------------------------------------
  388.   # * New method: move_straight
  389.   #--------------------------------------------------------------------------
  390.   def move_straight(d, turn_ok = true)
  391.     add_move_update([d]) if passable?(@x, @y, d)
  392.     super
  393.   end
  394.   #--------------------------------------------------------------------------
  395.   # * New method: move_diagonal
  396.   #--------------------------------------------------------------------------
  397.   def move_diagonal(horz, vert)
  398.     add_move_update([horz, vert]) if diagonal_passable?(@x, @y, horz, vert)
  399.     super
  400.   end
  401.   #--------------------------------------------------------------------------
  402.   # * New method: jump
  403.   #--------------------------------------------------------------------------
  404.   def jump(x_plus, y_plus)
  405.     if x_plus != 0 || y_plus != 0
  406.       @followers[0].move_update.push({x: x_plus, y: y_plus})
  407.     end
  408.     super
  409.   end
  410.   #--------------------------------------------------------------------------
  411.   # * New method: add_move_update
  412.   #--------------------------------------------------------------------------
  413.   def add_move_update(dir)
  414.     return unless @followers[0]
  415.     last = @followers[0].move_update.last
  416.     if last && last[:dir] && opposite_move(dir, last[:dir])
  417.       @followers[0].move_update.pop
  418.       return
  419.     end
  420.     @followers[0].move_update.push({dir: dir})
  421.   end
  422.   #--------------------------------------------------------------------------
  423.   # * New method: opposite_move
  424.   #--------------------------------------------------------------------------
  425.   def opposite_move(dir, last)
  426.     dir == [2] && last == [8] || dir == [8] && last == [2] ||
  427.     dir == [4] && last == [6] || dir == [6] && last == [4] ||
  428.     dir == [4] && last == [6] || dir == [6] && last == [4] ||
  429.     dir == [4, 2] && last == [6, 8] || dir == [6, 8] && last == [4, 2] ||
  430.     dir == [6, 2] && last == [4, 8] || dir == [4, 8] && last == [6, 2]
  431.   end
  432.   #--------------------------------------------------------------------------
  433.   # * New method: origin_position?
  434.   #--------------------------------------------------------------------------
  435.   def origin_position?
  436.     return false
  437.   end
  438. end

  439. #==============================================================================
  440. # ** Game_Follower
  441. #------------------------------------------------------------------------------
  442. #  This class handles the followers. Followers are the actors of the party
  443. # that follows the leader in a line. It's used within the Game_Followers class.
  444. #==============================================================================

  445. class Game_Follower < Game_Character
  446.   #--------------------------------------------------------------------------
  447.   # * Public Instance Variables
  448.   #--------------------------------------------------------------------------
  449.   attr_accessor :move_update
  450.   #--------------------------------------------------------------------------
  451.   # * Overwirte method: refresh
  452.   #--------------------------------------------------------------------------
  453.   def refresh
  454.     @character_name  = actor_graphic[:name]
  455.     @character_index = actor_graphic[:index]
  456.   end
  457.   #--------------------------------------------------------------------------
  458.   # * Overwirte method: actor
  459.   #--------------------------------------------------------------------------
  460.   def actor
  461.     $game_party.display_followers[@member_index]
  462.   end
  463.   #--------------------------------------------------------------------------
  464.   # * Alias method: initialize
  465.   #--------------------------------------------------------------------------
  466.   alias :initialize_gf_ve_followers_options :initialize
  467.   def initialize(member_index, preceding_character)
  468.     initialize_gf_ve_followers_options(member_index, preceding_character)
  469.     @move_update = []
  470.     @real_move_speed = @move_speed
  471.   end
  472.   #--------------------------------------------------------------------------
  473.   # * Alias method: update
  474.   #--------------------------------------------------------------------------
  475.   alias :update_gf_ve_followers_options :update
  476.   def update
  477.     update_movement
  478.     update_gf_ve_followers_options
  479.   end
  480.   #--------------------------------------------------------------------------
  481.   # * New method: actor_graphic
  482.   #--------------------------------------------------------------------------
  483.   def actor_graphic
  484.     return {name: "", index: 0} unless actor
  485.     return actor.dead_graphic if actor.dead? && actor.dead_graphic
  486.     return dead_follower      if actor.dead? && dead_follower[:name]
  487.     return {name: actor.character_name, index: actor.character_index}
  488.   end
  489.   #--------------------------------------------------------------------------
  490.   # * New method: dead_follower
  491.   #--------------------------------------------------------------------------
  492.   def dead_follower
  493.     {name: VE_DEAD_FOLLOWER[:filename], index: VE_DEAD_FOLLOWER[:fileindex]}
  494.   end
  495.   #--------------------------------------------------------------------------
  496.   # * New method: move_straight
  497.   #--------------------------------------------------------------------------
  498.   def move_straight(d, turn_ok = true)
  499.     add_move_update([d]) if passable?(@x, @y, d)
  500.     super
  501.   end
  502.   #--------------------------------------------------------------------------
  503.   # * New method: move_diagonal
  504.   #--------------------------------------------------------------------------
  505.   def move_diagonal(horz, vert)
  506.     add_move_update([horz, vert]) if diagonal_passable?(@x, @y, horz, vert)
  507.     super
  508.   end
  509.   #--------------------------------------------------------------------------
  510.   # * New method: jump
  511.   #--------------------------------------------------------------------------
  512.   def jump(x_plus, y_plus)
  513.     next_character.move_update.push({x: x_plus, y: y_plus}) if next_character
  514.     super
  515.   end
  516.   #--------------------------------------------------------------------------
  517.   # * New method: update_movement
  518.   #--------------------------------------------------------------------------
  519.   def update_movement
  520.     @move_update.clear  if same_tile? && !@preceding_character.origin_position?
  521.     @start_move = false if @move_update.size <= 1 && !moving?
  522.     return if no_update
  523.     process_movement(@move_update.shift)
  524.   end
  525.   #--------------------------------------------------------------------------
  526.   # * New method: process_movement
  527.   #--------------------------------------------------------------------------
  528.   def process_movement(move)
  529.     @start_move = true
  530.     if move && move[:x]
  531.       jump(move[:x], move[:y])
  532.     elsif move && move[:dir]
  533.       @real_move_speed = move[:speed]
  534.       method = move[:dir].size == 1 ? :move_straight : :move_diagonal
  535.       send(method, *move[:dir])
  536.     end
  537.   end
  538.   #--------------------------------------------------------------------------
  539.   # * New method: same_tile?
  540.   #--------------------------------------------------------------------------
  541.   def same_tile?
  542.     char = @preceding_character
  543.     (char.real_x == real_x && char.real_y && real_y && jumping?) ||
  544.     (char.x == @x && char.y == @y)
  545.   end
  546.   #--------------------------------------------------------------------------
  547.   # * New method: no_update
  548.   #--------------------------------------------------------------------------
  549.   def no_update
  550.     return true if moving? || jumping?
  551.     return true if player_distance && !@start_move
  552.     return true if @move_update.size <= 1
  553.     if @move_update.first[:x]
  554.       pos  = @move_update.first
  555.       char = @preceding_character
  556.       return true if (char.x - pos[:x] == @x && char.y - pos[:y] == @y)   
  557.     end
  558.     return false
  559.   end
  560.   #--------------------------------------------------------------------------
  561.   # * New method: player_distance
  562.   #--------------------------------------------------------------------------
  563.   def player_distance
  564.     self_x  = $game_map.adjust_x(real_x_dist)
  565.     self_y  = $game_map.adjust_y(real_y_dist)
  566.     front_x = $game_map.adjust_x(@preceding_character.real_x_dist)
  567.     front_y = $game_map.adjust_y(@preceding_character.real_y_dist)
  568.     dist_x  = (front_x - self_x).abs
  569.     dist_y  = (front_y - self_y).abs
  570.     dist_m  = (next_diagonal? ? 2 : 1) + [VE_MOVE_DISTANCE / 32.0, 0].max
  571.     dist_x + dist_y < dist_m
  572.   end
  573.   #--------------------------------------------------------------------------
  574.   # * New method: add_move_update
  575.   #--------------------------------------------------------------------------
  576.   def add_move_update(dir)
  577.     return if !next_character || move_route_forcing || origin_position?
  578.     next_character.move_update.push({dir: dir, speed: real_move_speed})
  579.   end
  580.   #--------------------------------------------------------------------------
  581.   # * New method: origin_position?
  582.   #--------------------------------------------------------------------------
  583.   def origin_position?
  584.     $imported[:ve_follower_control] && origin_position
  585.   end
  586.   #--------------------------------------------------------------------------
  587.   # * New method: next_character
  588.   #--------------------------------------------------------------------------
  589.   def next_character
  590.     $game_player.followers[@member_index]
  591.   end
  592.   #--------------------------------------------------------------------------
  593.   # * New method: next_diagonal?
  594.   #--------------------------------------------------------------------------
  595.   def next_diagonal?
  596.     next_move && next_move[:dir] && next_move[:dir].size == 2
  597.   end
  598.   #--------------------------------------------------------------------------
  599.   # * New method: next_move
  600.   #--------------------------------------------------------------------------
  601.   def next_move
  602.     @move_update.first
  603.   end
  604. end

  605. #==============================================================================
  606. # ** Game_Interpreter
  607. #------------------------------------------------------------------------------
  608. #  An interpreter for executing event commands. This class is used within the
  609. # Game_Map, Game_Troop, and Game_Event classes.
  610. #==============================================================================

  611. class Game_Interpreter
  612.   #--------------------------------------------------------------------------
  613.   # * Alias method: comment_call
  614.   #--------------------------------------------------------------------------
  615.   alias :comment_call_ve_followers_options :comment_call
  616.   def comment_call
  617.     call_follower_setting
  618.     comment_call_ve_followers_options
  619.   end  
  620.   #--------------------------------------------------------------------------
  621.   # * New method: call_follower_setting
  622.   #--------------------------------------------------------------------------
  623.   def call_follower_setting
  624.     note.scan(/<DEAD CHARSET (\d+): #{get_filename}(?: *, *(\d+))?>/i) do
  625.       actor = $game_actors[$1.to_i]
  626.       next unless actor
  627.       notes  = ""#{$1}", #{$2 ? $2 : 0}"
  628.       regexp = /#{get_filename} *, *(\d+)/
  629.       actor.setup_dead_graphic(notes, regexp)
  630.     end
  631.   end
  632. end
复制代码







Z
梦石
0
星屑
50
在线时间
70 小时
注册时间
2015-11-26
回帖
45
 楼主| 发表于 2016-5-24 09:49:30 | 显示全部楼层
额,过了很久上来说一句,我自己已经把这个问题解决了……_(:з」∠)_
Z
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部