module Reisen def self.enemy_skill?(enemy_id, skill_id) return false if enemy_id == 0 $data_enemies[enemy_id].actions.each do |action| return true if action.kind == 1 and action.skill_id = skill_id end return false end end
module Reisen
def self.enemy_skill?(enemy_id, skill_id)
return false if enemy_id == 0
$data_enemies[enemy_id].actions.each do |action|
return true if action.kind == 1 and action.skill_id = skill_id
end
return false
end
end
事件 -> 条件分歧 -> 脚本 -> Reisen.enemy_skill?(敌人ID, 技能ID) |