QuestManager
Types
Functions
Gets notified a barbarian camp in location has been cleared by civInfo. Since QuestName.ClearBarbarianCamp is a global quest, it could have been assigned to multiple civilizations, so after this notification all matching quests are removed.
Returns true if civInfo can assign a quest to challenger
Returns a city-state CivilizationInfo that civInfo wants to target for hostile quests
Returns a random CivilizationInfo (major) that challenger has met, but whose territory he cannot see; if none exists, it returns null.
Returns a Great Person BaseUnit that is not owned by both the challenger and the civInfo
Returns a string with the leading civ and their score for questName
Returns a CivilizationInfo of the civ that most recently bullied civInfo. Note: forgets after 20 turns has passed!
Returns a random Natural Wonder not yet discovered by challenger.
Returns the weight of the questName, depends on city state trait and personality
Returns a random resource to be connected to the challenger's trade route as a quest. The resource must be a ResourceType.Luxury or ResourceType.Strategic, must not be owned by the civInfo and the challenger, and must be viewable by the challenger; if none exists, it returns null.
Returns the score for the assignedQuest
Increments assignedQuest.assignee influence on civInfo and adds a Notification
If quest is complete, it gives the influence reward to the player. Returns true if the quest can be removed (is either complete, obsolete or expired)
Returns true if civInfo have active quests for challenger
Returns true if the assignedQuest is successfully completed
Returns true if the assignedQuest request cannot be fulfilled anymore
Returns true if the quest can be assigned to challenger
Called when a major civ meets the city-state for the first time. Mainly for war with major pseudo-quest.
Notifies the assignee of assignedQuest that the quest is now obsolete or expired. Optionally displays the winners of global quests.
Gets notified when given gold by donorCiv.
Ends War with Major pseudo-quests that aren't relevant any longer
Gets notified when we are attacked, for war with major pseudo-quest