Project1
标题:
KGC日本脚本中“盗窃”技能的疑问
[打印本页]
作者:
xpdkoei
时间:
2011-8-20 00:56
标题:
KGC日本脚本中“盗窃”技能的疑问
我使用了KGC脚本中的“盗窃”技能脚本,但是似乎和横版脚本有冲突,具体表现为盗窃成功后没有文字显示,请问大家这个应该如何解决? dsu_plus_rewardpost_czw
作者:
月夜神音
时间:
2011-8-20 09:43
插入即可
#==============================================================================
# KGC_Steal Fix for RPG Tankentai Sideview Battle System (3.4)
# By Moonlight
#==============================================================================
# Modifies execute_action_steal method to perform the action sequence
# associated with the steal skill
#==============================================================================
# Installation: Place it above main but below KGC_Steal and
# RPG Tankentai Sideview Battle System scripts
# Rewrites : execute_action_steal, display_steal_effects
#==============================================================================
$imported = {} if $imported == nil
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
# This class performs battle screen processing.
#==============================================================================
if $imported["Steal"]
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# ○ 戦闘行動の実行 : 盗む
#--------------------------------------------------------------------------
def execute_action_steal
skill = @active_battler.action.skill
if skill.plus_state_set.include?(1)
for member in $game_party.members + $game_troop.members
next if member.immortal
next if member.dead?
member.dying = true
end
else
immortaling
end
return unless @active_battler.skill_can_use?(skill)
targets = @active_battler.action.make_targets
target_decision(skill)
@spriteset.set_action(@active_battler.actor?, @active_battler.index, skill.base_action)
pop_help(skill)
playing_action
@active_battler.mp -= @active_battler.calc_mp_cost(skill) #
$game_temp.common_event_id = skill.common_event_id
for target in targets
display_steal_effects(target, skill)
end
end
#--------------------------------------------------------------------------
# ○ 盗んだ結果の表示
# target : 対象者
# obj : スキルまたはアイテム
#--------------------------------------------------------------------------
def display_steal_effects(target, obj = nil)
unless target.skipped
line_number = @message_window.line_number
wait(5)
@help_window.visible = false if @help_window != nil
display_stole_object(target, obj)
display_state_changes(target, obj)
if line_number == @message_window.line_number
display_failure(target, obj) unless target.states_active?
end
if line_number != @message_window.line_number
wait(30)
end
@message_window.back_to(line_number)
end
end
end
end # if $imported["Steal"]
复制代码
作者:
xpdkoei
时间:
2011-8-20 09:49
月夜神音 发表于 2011-8-20 09:43
插入即可
插入到什么位置呢?
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1