| | |
| | | #特殊清空处理, 如果没有任务, state为0
|
| | | curValue = 0
|
| | | elif tagMission == None:
|
| | | GameWorld.Log("没有目标任务 %s" % conditionID , curPlayer.GetPlayerID())
|
| | | GameWorld.DebugLog("没有目标任务 %s" % conditionID , curPlayer.GetPlayerID())
|
| | | return
|
| | | else:
|
| | | curValue = QuestRunnerValue.GetValue(curPlayer, tagMission, conditionName)
|
| | |
| | | tagObj = curPlayer.GetActionObj()
|
| | | if tagObj == None:
|
| | | #没有目标
|
| | | GameWorld.Log("FuncCall -> 没有目标" , curPlayer.GetPlayerID())
|
| | | GameWorld.Log("GetActionNPCbyType -> 没有目标" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | if tagObj.GetGameObjType() != IPY_GameWorld.gotNPC:
|
| | | #谈话对象不对
|
| | | GameWorld.Log("FuncCall -> 谈话对象不对" , curPlayer.GetPlayerID())
|
| | | GameWorld.Log("GetActionNPCbyType -> 谈话对象不对" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | curNPC = GameWorld.GetNPCManager().GetNPCByIndex(tagObj.GetIndex())
|
| | | if curNPC == None:
|
| | | #没有这个NPC
|
| | | GameWorld.Log("FuncCall ->没有这个NPC" , curPlayer.GetPlayerID())
|
| | | GameWorld.Log("GetActionNPCbyType ->没有这个NPC" , curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | if curNPC.GetType() != npcType:
|