class Game_Interpreter
def 习得技能的角色ID(skill_id)
for i in 0..$game_party.members.size-1
if $game_party.members[i].skill_learn?($data_skills[skill_id])
return $game_party.members[i].id
break
end
end
return 0
end
def 装备了某种武器角色的ID(weapons_id)
for i in 0..$game_party.members.size-1
if $game_party.members[i].weapons.include?($data_weapons[weapons_id])
return $game_party.members[i].id
break
end
end
return 0
end
def 装备了某种护甲角色的ID(armors_id)
for i in 0..$game_party.members.size-1
if $game_party.members[i].armors.include?($data_armors[armors_id])
return $game_party.members[i].id
break
end
end
return 0
end
def 处于某种状态角色的ID(state_id)
for i in 0..$game_party.members.size-1
if $game_party.members[i].state?(state_id)
return $game_party.members[i].id
break
end
end
return 0
end
end