TheLunarArmy
Chieftain
Hi all,
I'm busy making a civ with a UA that levels up a non-constructable building based on the number of flavoured quests the player achieves. I've written the lua code for the level of the building and it works as intended, and it basically needs to call a LevelUp() function whenever the player achieves a quest. Now I need to go about writing the triggers which will call LevelUp(), and traditionally I would need to write testing conditions in a function and subscribe it to a corresponding Game Events. Problem is I might want to change some quests if I deem them too easy or hard after some testing, so I was wondering if there was a away to make use of RequirementSets that causes certain logic checks to occur for Modifiers, to fire this lua function. For example I might want to call LevelUp() when the player researches the Apprenticeship Tech; which can be achieved using:
Is this possible? I'm still very green when it comes to Civ 6 events.
I'm busy making a civ with a UA that levels up a non-constructable building based on the number of flavoured quests the player achieves. I've written the lua code for the level of the building and it works as intended, and it basically needs to call a LevelUp() function whenever the player achieves a quest. Now I need to go about writing the triggers which will call LevelUp(), and traditionally I would need to write testing conditions in a function and subscribe it to a corresponding Game Events. Problem is I might want to change some quests if I deem them too easy or hard after some testing, so I was wondering if there was a away to make use of RequirementSets that causes certain logic checks to occur for Modifiers, to fire this lua function. For example I might want to call LevelUp() when the player researches the Apprenticeship Tech; which can be achieved using:
Code:
INSERT INTO Requirements
(RequirementId, RequirementType)
VALUES ('REQUIRES_PLAYER_HAS_APPRENTICESHIP_TECH', 'REQUIREMENT_PLAYER_HAS_TECHNOLOGY');
INSERT INTO RequirementArguments
(RequirementId, Name, Value)
VALUES ('REQUIRES_PLAYER_HAS_APPRENTICESHIP_TECH', 'TechnologyType', 'TECH_APPRENTICESHIP' );
INSERT INTO RequirementSets
(RequirementSetId, RequirementSetType)
VALUES ('PLAYER_HAS_APPRENTICESHIP_TECH_REQUIREMENTS', 'REQUIREMENTSET_TEST_ALL' );
INSERT INTO RequirementSetRequirements
(RequirementSetId, RequirementId)
VALUES ('PLAYER_HAS_APPRENTICESHIP_TECH_REQUIREMENTS', 'REQUIRES_PLAYER_HAS_APPRENTICESHIP_TECH' );
Is this possible? I'm still very green when it comes to Civ 6 events.