Is it possible to check if a quest has a quest content of the type "Alert"? I have tried it and somehow it did not work.. so, I have just found the following in the script QuestStateInfo:
Code: Select all
public static int NumContentCategories = Enum.GetNames(typeof(QuestContentCategory)).Length - 3; // Omit Alert, Offer & OfferConditionsUnmet.
Also, I would like to suggest a check for the return of GetContentList at QuestNode.cs in line 526 (like e.g. stateInfo.GetContentList(category)?.Count). As already mentioned, I tried to get the content list for the category "Alert" and therefore received a NullPointerException as there were not found any content list for this category:
Code: Select all
return stateInfo != && stateInfo.GetContentList(category).Count > 0;
Greetings,
Franca