# 异界的月追加CP消耗
if @skill.element_set.include?(KGH::Crafts_Skill) or
@skill.element_set.include?(KGH::S_Crafts_Skill)
@active_battler.gain_cp([email protected]_cost)
else
@active_battler.sp -= @skill.sp_cost
end
# 刷新状态窗口
@status_window.refresh
# 在帮助窗口显示特技名
@help_window.set_text(@skill.name, 1)
# 设置动画 ID
@animation1_id = @skill.animation1_id
@animation2_id = @skill.animation2_id
# 设置公共事件 ID
@common_event_id = @skill.common_event_id
# 设置对像侧战斗者
set_target_battlers(@skill.scope)
# 应用特技效果
for target in @target_battlers
target.skill_effect(@active_battler, @skill)
end
end
#--------------------------------------------------------------------------
# ☆ 刷新画面 (主回合步骤 5 : 显示伤害)
#--------------------------------------------------------------------------
alias :old_update_phase4_step5 :update_phase4_step5
def update_phase4_step5
# 隐藏帮助窗口
@help_window.visible = false
# 刷新状态窗口
@status_window.refresh
# 显示伤害
for target in @target_battlers
if target.damage != nil
target.damage_pop = true
end
##挨打时对象获得的CP(只给我方角色增加)
if target.is_a?(Game_Actor)
target.gain_cp(KGH::CP_GAIN_DAM)
# 刷新状态窗口
@status_window.refresh
end
###########################
end
# 移至步骤 6
@phase4_step = 6
end
end
#==============================================================================
# ■ Game_Actor 追加
#------------------------------------------------------------------------------
# 角色结晶槽的升级接口函数为:
# <Game_Actor实例>.cs_levelup(结晶槽ID, 升级幅度) 升级幅度省略则为1
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ● 检测技能是否可用,与默认方法略微不同
# skill_id : 技能ID
#--------------------------------------------------------------------------
def skill_can_use?(skill_id)
#如果是CP技能
if $data_skills[skill_id].element_set.include?(KGH::Crafts_Skill) or
$data_skills[skill_id].element_set.include?(KGH::S_Crafts_Skill)
# CP 不足的情况下不能使用
if $data_skills[skill_id].sp_cost > self.cp_store
return false
end
end
return super
end
end
作者: wolves 时间: 2014-7-6 19:30
请楼主把帖子内的脚本用代码扩上,或者请指明一下哪里是第97行,谢谢了。作者: batfjtn 时间: 2014-7-6 19:56
CP脚本的文件头给删除了~~!!!
# 异界的月追加CP消耗
if @skill.element_set.include?(KGH::Crafts_Skill) or
@skill.element_set.include?(KGH::S_Crafts_Skill)
@active_battler.gain_cp([email protected]_cost)