Project1

标题: 关于VXAce_SP1脚本的问题。 [打印本页]

作者: cc623925    时间: 2015-7-5 13:25
标题: 关于VXAce_SP1脚本的问题。
RUBY 代码复制
  1. #==============================================================================
  2. # ■ VXAce_SP1
  3. #         汉化版本来自66RPG,转载请保留本信息
  4. #------------------------------------------------------------------------------
  5. #  修正预置脚本和一些用户定义的脚本素材。
  6. #   配置内容请看下文。
  7. #==============================================================================
  8. #------------------------------------------------------------------------------
  9. # 【修正内容】
  10. #------------------------------------------------------------------------------
  11. # ●状态命令错误的变更,修正了原本在同样的状态同时附加和解除后会出现的错误。
  12. # ●修正了动画的事件命令显示后,不同步的地图滚动造成的错误
  13. # ●修正了自动战斗行动选择不正确的错误
  14. # ●修正了无法装备的装备品可以被事件固定装备和默认装备的一些错误。
  15. # ●本已固定在额外的负载的运行后消除图片产生的问题
  16. # ●播放器开启状态下开始至执行过程中的一些错误
  17. # ●修正了部分状态效果不会反应在那些法术反射技能的错误
  18. # ●修正了启用粗体或斜体的默认字体设置切换屏幕状态时无效的错误
  19. #------------------------------------------------------------------------------
  20. class Game_Battler
  21.   attr_accessor :magic_reflection
  22.   #--------------------------------------------------------------------------
  23.   # ● 敌对关系的判定
  24.   #--------------------------------------------------------------------------
  25.   alias vxace_sp1_opposite? opposite?
  26.   def opposite?(battler)
  27.     vxace_sp1_opposite?(battler) || battler.magic_reflection
  28.   end
  29. end
  30. #------------------------------------------------------------------------------
  31. class Game_Actor
  32.   #--------------------------------------------------------------------------
  33.   # ● 删除无法装备的装备
  34.   #--------------------------------------------------------------------------
  35.   alias vxace_sp1_release_unequippable_items release_unequippable_items
  36.   def release_unequippable_items(item_gain = true)
  37.     loop do
  38.       last_equips = equips.dup
  39.       vxace_sp1_release_unequippable_items(item_gain)
  40.       return if equips == last_equips
  41.     end
  42.   end
  43.   #--------------------------------------------------------------------------
  44.   # ● 创建自动战斗的作战行动
  45.   #--------------------------------------------------------------------------
  46.   def make_auto_battle_actions
  47.     @actions.size.times do |i|
  48.       @actions[i] = make_action_list.max_by {|action| action.value }
  49.     end
  50.   end
  51. end
  52. #------------------------------------------------------------------------------
  53. class Game_Player
  54.   #--------------------------------------------------------------------------
  55.   # ●启动时间映射
  56.   #     triggers : 触发器的数组
  57.   #     normal   : 是否有其他通常的角色优先
  58.   #--------------------------------------------------------------------------
  59.   alias vxace_sp1_start_map_event start_map_event
  60.   def start_map_event(x, y, triggers, normal)
  61.     return if $game_map.interpreter.running?
  62.     vxace_sp1_start_map_event(x, y, triggers, normal)
  63.   end
  64. end
  65. #------------------------------------------------------------------------------
  66. class Game_Picture
  67.   #--------------------------------------------------------------------------
  68.   # ● 删除图像
  69.   #--------------------------------------------------------------------------
  70.   alias vxace_sp1_erase erase
  71.   def erase
  72.     vxace_sp1_erase
  73.     @origin = 0
  74.   end
  75. end
  76. #------------------------------------------------------------------------------
  77. class Game_Interpreter
  78.   #--------------------------------------------------------------------------
  79.   # ● 状态变化
  80.   #--------------------------------------------------------------------------
  81.   alias vxace_sp1_command_313 command_313
  82.   def command_313
  83.     vxace_sp1_command_313
  84.     $game_party.clear_results
  85.   end
  86. end
  87. #------------------------------------------------------------------------------
  88. class Sprite_Character
  89.   #--------------------------------------------------------------------------
  90.   # ● 更新位置
  91.   #--------------------------------------------------------------------------
  92.   alias vxace_sp1_update_position update_position
  93.   def update_position
  94.     move_animation(@character.screen_x - x, @character.screen_y - y)
  95.     vxace_sp1_update_position
  96.   end
  97.   #--------------------------------------------------------------------------
  98.   # ● 移动动画
  99.   #--------------------------------------------------------------------------
  100.   def move_animation(dx, dy)
  101.     if @animation && @animation.position != 3
  102.       @ani_ox += dx
  103.       @ani_oy += dy
  104.       @ani_sprites.each do |sprite|
  105.         sprite.x += dx
  106.         sprite.y += dy
  107.       end
  108.     end
  109.   end
  110. end
  111. #------------------------------------------------------------------------------
  112. class Sprite_Picture
  113.   #--------------------------------------------------------------------------
  114.   # ● 传输位图更新
  115.   #--------------------------------------------------------------------------
  116.   alias vxace_sp1_update_bitmap update_bitmap
  117.   def update_bitmap
  118.     if @picture.name.empty?
  119.       self.bitmap = nil
  120.     else
  121.       vxace_sp1_update_bitmap
  122.     end
  123.   end
  124. end
  125. #------------------------------------------------------------------------------
  126. class Window_Base
  127.   #--------------------------------------------------------------------------
  128.   # ● 重置字体设置
  129.   #--------------------------------------------------------------------------
  130.   alias vxace_sp1_reset_font_settings reset_font_settings
  131.   def reset_font_settings
  132.     vxace_sp1_reset_font_settings
  133.     contents.font.bold = Font.default_bold
  134.     contents.font.italic = Font.default_italic
  135.   end
  136. end
  137. #------------------------------------------------------------------------------
  138. class Scene_Battle
  139.   #--------------------------------------------------------------------------
  140.   # ● 激活法术反射
  141.   #--------------------------------------------------------------------------
  142.   alias vxace_sp1_invoke_magic_reflection invoke_magic_reflection
  143.   def invoke_magic_reflection(target, item)
  144.     @subject.magic_reflection = true
  145.     vxace_sp1_invoke_magic_reflection(target, item)
  146.     @subject.magic_reflection = false
  147.   end
  148. end


我现在游戏地图滚动时候不同步。必须用这个脚本。用了之后进游戏显示systemstackerror stack level too deep。该怎么办??
作者: VIPArcher    时间: 2015-7-5 15:31
这个脚本不要放两遍https://rpg.blue/thread-378119-1-1.html
作者: cc623925    时间: 2015-7-5 19:42
VIPArcher 发表于 2015-7-5 15:31
这个脚本不要放两遍https://rpg.blue/thread-378119-1-1.html

不用这个脚本屏幕滚动不同步。用了就报错。还是没办法解决。。。
作者: cc623925    时间: 2015-7-5 20:10
cc623925 发表于 2015-7-5 19:42
不用这个脚本屏幕滚动不同步。用了就报错。还是没办法解决。。。

没有的,只有一个。也发现了出错位置不知道怎么改
作者: cc623925    时间: 2015-7-6 09:09
cc623925 发表于 2015-7-5 20:10
没有的,只有一个。也发现了出错位置不知道怎么改

更新了SionMouseSystem)v2.31 问题解决!




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1