|  |  | 
 |  |  | 
 | 
 |  |  | ##某主技能对应专精技能达到激活X等级的数量是否达到
 | 
 |  |  | # @param None
 | 
 |  |  | # @return None <Elementskillcnt value="cnt" mainskill="[]" activelv=""/>
 | 
 |  |  | # @return None <Elementskillcnt value="cnt" mainskill="[]" activelv="" elementtype="专精类型"/>
 | 
 |  |  | def ConditionType_Elementskillcnt(curPlayer, curMission, curActionNode):
 | 
 |  |  |     cnt = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
 | 
 |  |  |     mainskill = curActionNode.GetAttribute("mainskill")
 | 
 |  |  |     mainSkillIDList = eval(mainskill) if mainskill else []
 | 
 |  |  |     activeLV = GameWorld.ToIntDef(curActionNode.GetAttribute("activelv"), 1)
 | 
 |  |  |     return SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV) >= cnt
 | 
 |  |  |     elementType = GameWorld.ToIntDef(curActionNode.GetAttribute("elementtype"), 0)
 | 
 |  |  |     return SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV, elementType) >= cnt
 | 
 |  |  | 
 | 
 |  |  | ##设置已选择的专精技能数量
 | 
 |  |  | # @param curPlayer 玩家实例
 | 
 |  |  | # @param curMission 任务实例
 | 
 |  |  | # @param curActionNode节点信息
 | 
 |  |  | # @return 返回值无意义
 | 
 |  |  | # @remarks <Set_Elementskillcnt key="" mainskill="[]" activelv=""/>
 | 
 |  |  | # @remarks <Set_Elementskillcnt key="" mainskill="[]" activelv="" elementtype="专精类型"/>
 | 
 |  |  | def DoType_Set_Elementskillcnt(curPlayer, curMission, curActionNode):
 | 
 |  |  |     key = curActionNode.GetAttribute("key")
 | 
 |  |  |     questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
 | 
 |  |  | 
 |  |  |     activeLV = GameWorld.ToIntDef(curActionNode.GetAttribute("activelv"), 1)
 | 
 |  |  |     if questID != 0:
 | 
 |  |  |         curMission = curPlayer.FindMission(questID)
 | 
 |  |  |     curMission.SetProperty(key, SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV))
 | 
 |  |  |     elementType = GameWorld.ToIntDef(curActionNode.GetAttribute("elementtype"), 0)
 | 
 |  |  |     curMission.SetProperty(key, SkillShell.GetElementSkillCnt(curPlayer, mainSkillIDList, activeLV, elementType))
 | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | ##设置符合条件的已穿基础装备数量
 |