Ryoga
King
- Joined
- Oct 12, 2010
- Messages
- 993
In the lua script "AffinityQuestManager.lua"
The following line
Sends to the function the ID of the rows inside the table "Quest_AffinityManagementInfos"
The function "DoesQuestMeetPrerequisites" however requires the ID of the rows inside the table "Quests"
This causes several issues including the game assigning to AI quests that aren't supposed to be given to them.
The error can be fixed by changing the line this way:
The following line
Code:
local preconditionsMet : boolean = DoesQuestMeetPrerequisites(playerType, [B]info.ID[/B]);
Sends to the function the ID of the rows inside the table "Quest_AffinityManagementInfos"
The function "DoesQuestMeetPrerequisites" however requires the ID of the rows inside the table "Quests"
This causes several issues including the game assigning to AI quests that aren't supposed to be given to them.
The error can be fixed by changing the line this way:
Code:
local preconditionsMet : boolean = DoesQuestMeetPrerequisites(playerType, GameInfo.Quests[info.QuestType].ID);