-
Notifications
You must be signed in to change notification settings - Fork 0
System Overview Integration
The Integration System is the glue that allows all the other major Systems to interact. This is primarily achieved through the use of Requirements.
Requirements are special System Elements that can have a value of true or false. The conditions for this are determined by each specific Requirement.
Many System Elements from other Systems make use of Requirements. For example, Abilities and Crafting Recipes both make use of the Requirements. Abilities cannot be used in Combat until all their Requirements are met, and Crafting Recipes cannot be used at all until all Requirements are met.
Requirements are responsible for creating all sorts of in-game scenarios. For example, if you want to prevent the player from using a specific Ability until they have a high-enough 'Magic' Skill, you can do so using Requirements. If you want to prevent the player from using some crafting some Recipes until their 'Blacksmithing' Skill is level 20, you can do so. If you want to prevent the player from entering a specific Room without having a specific item in their inventory, Requirements are the way to go.
-
ConsumeItemRequirement (List of Items)
- Returns true if the user has each specific item and agrees to have them removed from their inventory.
- Useful for using a key to unlock a door, consume a specific item to use an ability, etc.
-
FlagRequirement (Flag Name)
- Returns true if the specific Flag is set to true.
-
ItemRequirement (List of Items)
- Returns true if the user has all of the specific items in their inventory.
-
LevelRequirement (Required Level)
- Returns true if the user's Primary Skill has a level greater-than or equal-to the specified level.
-
ResourceRequirement (List of Resource Name, Required Quantity)
- Returns true if the player has a quantity of each specified resource that is greater-than or equal-to the respectively specified quantities. For example, A ResourceRequirement may specify Health:40 and Stamina:50. The user must have 40 or more Health and 50 or more Stamina for the Requirement to return true.
-
SkillLevelRequirement (List of Skill Name, Required Level)
- Returns true if each specified Skill has a sufficient level