Project1

标题: KGC日本脚本中“盗窃”技能的疑问 [打印本页]

作者: xpdkoei    时间: 2011-8-20 00:56
标题: KGC日本脚本中“盗窃”技能的疑问
我使用了KGC脚本中的“盗窃”技能脚本,但是似乎和横版脚本有冲突,具体表现为盗窃成功后没有文字显示,请问大家这个应该如何解决?dsu_plus_rewardpost_czw
作者: 月夜神音    时间: 2011-8-20 09:43
插入即可
  1. #==============================================================================
  2. # KGC_Steal Fix for RPG Tankentai Sideview Battle System (3.4)
  3. # By Moonlight
  4. #==============================================================================
  5. # Modifies execute_action_steal method to perform the action sequence
  6. # associated with the steal skill
  7. #==============================================================================
  8. # Installation: Place it above main but below KGC_Steal and
  9. # RPG Tankentai Sideview Battle System scripts
  10. # Rewrites : execute_action_steal, display_steal_effects
  11. #==============================================================================

  12. $imported = {} if $imported == nil

  13. #==============================================================================
  14. # ** Scene_Battle
  15. #------------------------------------------------------------------------------
  16. #  This class performs battle screen processing.
  17. #==============================================================================

  18. if $imported["Steal"]
  19. class Scene_Battle < Scene_Base
  20.   #--------------------------------------------------------------------------
  21.   # ○ 戦闘行動の実行 : 盗む
  22.   #--------------------------------------------------------------------------
  23.   def execute_action_steal
  24.     skill = @active_battler.action.skill
  25.     if skill.plus_state_set.include?(1)
  26.       for member in $game_party.members + $game_troop.members
  27.         next if member.immortal
  28.         next if member.dead?
  29.         member.dying = true
  30.       end
  31.     else
  32.       immortaling
  33.     end
  34.     return unless @active_battler.skill_can_use?(skill)
  35.     targets = @active_battler.action.make_targets
  36.     target_decision(skill)
  37.     @spriteset.set_action(@active_battler.actor?, @active_battler.index, skill.base_action)
  38.     pop_help(skill)
  39.     playing_action
  40.     @active_battler.mp -= @active_battler.calc_mp_cost(skill) #
  41.     $game_temp.common_event_id = skill.common_event_id
  42.     for target in targets
  43.       display_steal_effects(target, skill)
  44.     end
  45.   end
  46.   
  47.   #--------------------------------------------------------------------------
  48.   # ○ 盗んだ結果の表示
  49.   #     target : 対象者
  50.   #     obj    : スキルまたはアイテム
  51.   #--------------------------------------------------------------------------
  52.   def display_steal_effects(target, obj = nil)
  53.     unless target.skipped
  54.       line_number = @message_window.line_number
  55.       wait(5)
  56.       @help_window.visible = false if @help_window != nil
  57.       display_stole_object(target, obj)
  58.       display_state_changes(target, obj)
  59.       if line_number == @message_window.line_number
  60.         display_failure(target, obj) unless target.states_active?
  61.       end
  62.       if line_number != @message_window.line_number
  63.         wait(30)
  64.       end
  65.       @message_window.back_to(line_number)
  66.     end
  67.   end
  68. end

  69. end # if $imported["Steal"]
复制代码

作者: xpdkoei    时间: 2011-8-20 09:49
月夜神音 发表于 2011-8-20 09:43
插入即可

插入到什么位置呢?




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