1
0
forked from liza/Questionable
Questionable/QuestPaths/quest-v1.json

1157 lines
32 KiB
JSON
Raw Normal View History

2024-05-25 21:51:37 +00:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
2024-07-26 23:32:17 +00:00
"$id": "https://git.carvel.li/liza/Questionable/raw/branch/master/QuestPaths/quest-v1.json",
2024-05-25 21:51:37 +00:00
"title": "Questionable V1",
"description": "A series of quest sequences",
"type": "object",
"properties": {
2024-07-14 10:39:02 +00:00
"$schema": {
"type": "string",
2024-07-26 23:32:17 +00:00
"const": "https://git.carvel.li/liza/Questionable/raw/branch/master/QuestPaths/quest-v1.json"
2024-07-14 10:39:02 +00:00
},
2024-05-25 21:51:37 +00:00
"Author": {
"description": "Author of the quest sequence",
2024-07-21 00:06:33 +00:00
"type": [
"string",
"array"
],
2024-05-25 21:51:37 +00:00
"items": {
"type": "string"
}
},
"Disabled": {
"type": "boolean"
},
2024-05-25 21:51:37 +00:00
"Comment": {
"type": "string"
},
2024-07-14 10:44:31 +00:00
"$": {
"type": "string",
"description": "Dev Comment (not visible in-game)"
},
2024-05-25 21:51:37 +00:00
"TerritoryBlacklist": {
"type": "array",
"items": {
"type": "integer"
}
},
"QuestSequence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Sequence": {
"type": "integer",
"minimum": 0,
"maximum": 255
},
"Steps": {
"type": "array",
"items": {
"$ref": "#/$defs/Step"
}
},
"Comment": {
"type": "string"
}
},
"required": [
"Sequence"
],
"additionalProperties": false
}
}
},
"required": [
"$schema",
"QuestSequence",
"Author"
],
"additionalProperties": false,
"$defs": {
"Step": {
"type": "object",
"properties": {
"DataId": {
"type": "integer",
"description": "The data id of the NPC/Object/Aetheryte/Aether Current",
"exclusiveMinimum": 0
},
"Position": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Vector3"
},
"StopDistance": {
"type": [
"number",
"null"
],
"description": "Set if pathfinding should stop closer or further away from the default stop distance",
"exclusiveMinimum": 0
},
"IgnoreDistanceToObject": {
"type": "boolean",
"description": "Most interactions with objects are checked for a Y (height) difference of 2 in-game units. If set to true, the game won't attempt to get any closer if the height difference is larger than this."
},
"TerritoryId": {
"type": "integer",
"description": "The territory id associated with the location",
"exclusiveMinimum": 0
},
"TargetTerritoryId": {
"type": "integer",
"description": "If set, this step is complete (movement-wise) if this territory id is reached",
"exclusiveMinimum": 0
},
"InteractionType": {
"type": "string",
"description": "What to do at the position",
"enum": [
"None",
"Interact",
"WalkTo",
"AttuneAethernetShard",
"AttuneAetheryte",
"AttuneAetherCurrent",
"Combat",
"UseItem",
"EquipItem",
"EquipRecommended",
"Say",
"Emote",
"Action",
"WaitForNpcAtPosition",
"WaitForManualProgress",
"Duty",
"SinglePlayerDuty",
"Jump",
"Dive",
"Craft",
"Instruction",
"AcceptQuest",
"CompleteQuest",
"InitiateLeve"
]
},
"Disabled": {
"description": "Whether this step is disabled (see SkipIf for more control)",
"type": "boolean"
},
"DisableNavmesh": {
"description": "If true, will go to the position in a straight line instead of using pathfinding",
"type": "boolean"
},
"Mount": {
"type": [
"boolean",
"null"
],
"description": "If true, will mount regardless of distance to position. If false, will unmount."
},
"Fly": {
"type": "boolean",
"description": "If true and flying is unlocked in a zone, will use a flight path"
},
"Land": {
"type": "boolean",
"description": "If true and flying, will attempt to land on the ground"
},
"Sprint": {
"type": [
"boolean",
"null"
]
},
"AetheryteShortcut": {
"description": "The Aetheryte to teleport to (before moving)",
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
},
"AethernetShortcut": {
"type": "array",
"description": "A pair of aethernet locations (from + to) to use as a shortcut",
"minItems": 2,
"maxItems": 2,
"items": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/AethernetShard"
}
},
"ItemId": {
"type": [
"number",
"null"
],
"description": "The Item to use",
"exclusiveMinimum": 0
},
"SkipConditions": {
"type": "object",
"properties": {
"StepIf": {
2024-05-25 21:51:37 +00:00
"type": "object",
"properties": {
"Never": {
"type": "boolean"
2024-05-25 21:51:37 +00:00
},
"CompletionQuestVariablesFlags": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/CompletionFlags"
},
"Flying": {
2024-05-25 21:51:37 +00:00
"type": "string",
"enum": [
"Locked",
"Unlocked"
2024-05-25 21:51:37 +00:00
]
},
"Chocobo": {
"type": "string",
"enum": [
"Locked",
"Unlocked"
]
2024-05-27 19:54:34 +00:00
},
"NotTargetable": {
2024-05-25 21:51:37 +00:00
"type": "boolean"
},
"InTerritory": {
"type": "array",
"items": {
"type": "integer"
}
},
"NotInTerritory": {
"type": "array",
"items": {
"type": "integer"
}
2024-07-12 21:58:48 +00:00
},
"Item": {
"type": "object",
"properties": {
"NotInInventory": {
"type": "boolean"
}
}
2024-06-01 16:46:57 +00:00
},
"QuestsAccepted": {
"type": "array",
"items": {
"type": "number"
}
2024-05-26 19:45:26 +00:00
},
"QuestsCompleted": {
2024-05-25 21:51:37 +00:00
"type": "array",
"items": {
"type": "number"
2024-05-25 21:51:37 +00:00
}
},
"AetheryteLocked": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
2024-05-27 19:54:34 +00:00
},
"AetheryteUnlocked": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
},
"NearPosition": {
2024-07-27 13:39:47 +00:00
"type": "object",
"properties": {
"Position": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Vector3"
2024-07-27 22:13:52 +00:00
},
"MaximumDistance": {
"type": "number"
2024-07-27 13:39:47 +00:00
}
},
"required": [
"Position",
"MaximumDistance"
],
2024-07-27 13:39:47 +00:00
"additionalProperties": false
2024-05-25 21:51:37 +00:00
},
"ExtraCondition": {
"type": "string",
"enum": [
"WakingSandsMainArea",
"RisingStonesSolar"
]
}
},
"additionalProperties": false
},
"AetheryteShortcutIf": {
"type": "object",
"properties": {
"Never": {
"type": "boolean"
2024-06-01 16:46:57 +00:00
},
"InSameTerritory": {
"type": "boolean"
2024-07-20 17:09:51 +00:00
},
"InTerritory": {
2024-08-03 09:17:20 +00:00
"type": "array",
"items": {
"type": "integer"
2024-08-03 09:17:20 +00:00
}
},
"AetheryteLocked": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
},
"AetheryteUnlocked": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
2024-08-17 18:59:42 +00:00
},
"RequiredQuestVariablesNotMet": {
"type": "boolean"
2024-08-17 20:09:47 +00:00
},
"NearPosition": {
"type": "object",
"properties": {
"Position": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Vector3"
},
"MaximumDistance": {
"type": "number"
}
},
"required": [
"Position",
"MaximumDistance"
],
"additionalProperties": false
}
},
"additionalProperties": false
},
"AethernetShortcutIf": {
"type": "object",
"properties": {
"Never": {
"type": "boolean"
},
"InSameTerritory": {
"type": "boolean"
},
"AetheryteLocked": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
},
"AetheryteUnlocked": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"CompletionQuestVariablesFlags": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/CompletionFlags"
},
"RequiredQuestVariables": {
"type": "array",
"description": "Certain quests (primarily beast tribes/allied societies) have a RNG element to spawning targets, and the step should be skipped in its entirety if none of the sets below match",
"minItems": 6,
"maxItems": 6,
"items": {
"type": [
"array",
"null"
],
"items": {
"type": [
"number",
"object"
],
"properties": {
"High": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 15
},
"Low": {
"type": [
"number",
"null"
],
"minimum": 0,
"maximum": 15
2024-06-01 20:01:50 +00:00
}
},
"minimum": 0,
"maximum": 255
}
}
},
"RequiredGatheredItems": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ItemId": {
"type": "number"
},
"AlternativeItemId": {
"description": "For leves that allow you to gather two items with different chance percentage, this is the preferred item if the gathering chance is 100% (after buffs)",
"type": "number"
},
"ItemCount": {
"type": "number",
"exclusiveMinimum": 0
},
"Collectability": {
"type": "number",
"minimum": 0,
"maximum": 1000
},
"QuestAcceptedAsClass": {
"type": "string",
"enum": [
"Miner",
"Botanist"
]
}
},
"required": [
"ItemId",
"ItemCount"
]
}
},
"DelaySecondsAtStart": {
"description": "Time to wait before starting",
"type": [
"number",
"null"
]
},
"Comment": {
"type": "string"
}
},
"required": [
"TerritoryId",
"InteractionType"
],
"allOf": [
{
"if": {
"properties": {
"InteractionType": {
"const": "Interact"
}
}
},
"then": {
"required": [
"DataId"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "WalkTo"
}
}
},
"then": {
"required": [
"Position"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "AttuneAetheryte"
}
}
},
"then": {
"properties": {
"Aetheryte": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Aetheryte"
},
"DataId": {
"type": "null"
},
"Position": {
"type": "null"
}
},
"required": [
"Aetheryte"
]
},
"else": {
"properties": {
"Aetheryte": {
"type": "null"
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "AttuneAethernetShard"
}
}
},
"then": {
"properties": {
"AethernetShard": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/AethernetShard"
},
"DataId": {
"type": "null"
},
"Position": {
"type": "null"
}
},
"required": [
"AethernetShard"
]
},
"else": {
"properties": {
"AethernetShard": {
"type": "null"
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "AttuneAetherCurrent"
}
}
},
"then": {
"properties": {
"AetherCurrentId": {
"type": "integer",
"description": "The aether current id, used to check if a given aetheryte is unlocked",
"exclusiveMinimum": 0
}
},
"required": [
"DataId",
"Position",
"AetherCurrentId"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Combat"
}
}
},
"then": {
"properties": {
"EnemySpawnType": {
"type": "string",
"description": "Determines how enemy spawning is handled in combat locations",
"enum": [
"AutoOnEnterArea",
"AfterInteraction",
"AfterItemUse",
"OverworldEnemies"
]
},
"KillEnemyDataIds": {
"description": "The enemy data ids which are supposed to be killed",
"type": "array",
"items": {
"type": "integer"
}
},
"ComplexCombatData": {
"description": "If multiple different enemies are supposed to be killed in a single quest step, this typically is handled via items",
"type": "array",
"items": {
"type": "object",
"properties": {
"DataId": {
"description": "The enemy data id which is supposed to be killed",
"type": "integer"
},
"MinimumKillCount": {
"description": "Overworld mobs: If this number of mobs has been killed, will wait a bit before attempting to pull another mob to see if the quest progresses",
"type": "integer"
},
"RewardItemId": {
"type": "integer"
},
"RewardItemCount": {
"type": "integer"
},
"CompletionQuestVariablesFlags": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/CompletionFlags"
},
"IgnoreQuestMarker": {
"type": "boolean"
2024-07-28 19:03:44 +00:00
}
},
"required": [
"DataId"
]
}
},
"CombatDelaySecondsAtStart": {
"type": "number"
}
},
"required": [
"Position",
"EnemySpawnType"
],
"oneOf": [
{
"required": [
"KillEnemyDataIds"
]
},
{
"required": [
"ComplexCombatData"
]
}
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "UseItem"
},
"ItemId": {
"not": {
"const": 30362
}
}
}
},
"then": {
"required": [
"Position"
]
}
},
{
"if": {
"anyOf": [
{
"properties": {
"InteractionType": {
"const": "UseItem"
2024-07-28 19:03:44 +00:00
}
}
},
{
"properties": {
"InteractionType": {
"const": "Combat"
2024-06-01 20:01:50 +00:00
},
"EnemySpawnType": {
"const": "AfterItemUse"
}
}
}
]
},
"then": {
"properties": {
"GroundTarget": {
"type": [
"boolean",
"null"
],
"default": false
}
},
"required": [
"ItemId"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "EquipItem"
}
}
},
"then": {
"required": [
"ItemId"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"anyOf": [
{
"const": "Emote"
},
{
"const": "AcceptQuest"
},
{
"const": "CompleteQuest"
},
{
"const": "SinglePlayerDuty"
}
]
}
}
},
"then": {
"properties": {
"Emote": {
"type": "string",
"description": "The emote to use",
"enum": [
"stretch",
"wave",
"rally",
"deny",
"pray",
"slap",
"doubt",
"psych",
"cheer",
"happy",
"poke",
"flex",
"soothe",
"me",
"welcome",
"imperialsalute",
"pet",
"dance",
"respect",
"lookout",
"kneel",
"bow",
"uchiwasshoi",
"clap",
"victorypose"
]
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Emote"
}
}
},
"then": {
"required": [
"Position",
"Emote"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"anyOf": [
{
"const": "Say"
},
{
"const": "CompleteQuest"
}
]
}
}
},
"then": {
"properties": {
"ChatMessage": {
"type": "object",
"description": "The text to use with /say",
"properties": {
"ExcelSheet": {
"type": "string"
},
"Key": {
"type": "string"
2024-06-01 20:01:50 +00:00
}
},
"required": [
"Key"
]
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Say"
}
}
},
"then": {
"required": [
"ChatMessage"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Action"
}
}
},
"then": {
"properties": {
"Action": {
"type": "string",
"description": "The action to use",
"enum": [
"Cure",
"Esuna",
"Physick",
"Buffet",
"Fumigate",
"Siphon Snout",
"Red Gulal",
"Yellow Gulal",
"Blue Gulal"
]
}
},
"required": [
"Action"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Jump"
}
}
},
"then": {
"properties": {
"JumpDestination": {
"type": "object",
"properties": {
"Position": {
"$ref": "https://git.carvel.li/liza/Questionable/raw/branch/master/Questionable.Model/common-schema.json#/$defs/Vector3"
2024-06-01 20:01:50 +00:00
},
"StopDistance": {
"type": [
"number",
"null"
],
"description": "Set if pathfinding should stop closer or further away from the default stop distance",
"exclusiveMinimum": 0
},
"DelaySeconds": {
"type": [
"number",
"null"
]
2024-07-17 18:40:38 +00:00
},
"Type": {
"type": "string",
"enum": [
"SingleJump",
"RepeatedJumps"
],
"default": "SingleJump"
}
},
"required": [
"Position"
]
}
},
"required": [
"Position",
"JumpDestination"
]
}
},
{
"if": {
"properties": {
"InteractionType": {
"anyOf": [
{
"const": "Interact"
},
{
"const": "SinglePlayerDuty"
2024-07-17 18:40:38 +00:00
},
{
"const": "WaitForManualProgress"
2024-06-01 20:01:50 +00:00
},
{
"const": "AcceptQuest"
2024-06-01 20:01:50 +00:00
},
{
"const": "CompleteQuest"
},
{
"const": "Instruction"
2024-06-01 20:01:50 +00:00
},
{
"const": "Say"
},
{
"const": "Emote"
2024-06-01 20:01:50 +00:00
},
{
"const": "UseItem"
}
]
}
}
},
"then": {
"properties": {
"DialogueChoices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Type": {
"type": "string",
"enum": [
"YesNo",
"List"
]
},
"ExcelSheet": {
"type": "string"
}
},
"required": [
"Type"
],
"allOf": [
{
"if": {
"properties": {
"Type": {
"const": "YesNo"
2024-07-30 02:45:06 +00:00
}
}
},
"then": {
"properties": {
"Prompt": {
"type": [
"string",
"integer"
]
},
"Yes": {
"type": "boolean",
"default": true
}
},
"required": [
"Prompt",
"Yes"
]
}
},
{
"if": {
2024-06-01 20:01:50 +00:00
"properties": {
"Type": {
"const": "List"
}
}
},
"then": {
"properties": {
"Prompt": {
2024-06-01 20:01:50 +00:00
"type": [
"string",
"integer",
2024-06-01 20:01:50 +00:00
"null"
]
2024-06-01 20:01:50 +00:00
},
"Answer": {
2024-06-01 20:01:50 +00:00
"type": [
"string",
"integer"
2024-06-01 20:01:50 +00:00
]
}
},
"required": [
"Prompt",
"Answer"
2024-06-06 16:49:49 +00:00
]
2024-06-01 20:01:50 +00:00
}
}
]
2024-05-25 21:51:37 +00:00
}
},
"PointMenuChoices": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
}
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Duty"
2024-07-27 22:13:52 +00:00
}
2024-05-25 21:51:37 +00:00
}
},
"then": {
"properties": {
"ContentFinderConditionId": {
"type": "integer",
"exclusiveMinimum": 0,
"exclusiveMaximum": 3000
},
"DataId": {
"type": "null"
},
"Position": {
"type": "null"
}
},
"required": [
"ContentFinderConditionId"
]
2024-05-25 21:51:37 +00:00
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "WaitForNpcAtPosition"
}
}
},
"then": {
"properties": {
"NpcWaitDistance": {
"type": "number",
"exclusiveMinimum": 0
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "AcceptQuest"
}
}
},
"then": {
"properties": {
"PickUpQuestId": {
"type": [
"null",
"number",
"string"
],
"description": "Determines the quest which should be accepted. If empty/null, accepts the quest corresponding to the file name."
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "CompleteQuest"
}
}
},
"then": {
"properties": {
"TurnInQuestId": {
"type": [
"null",
"number",
"string"
],
"description": "Determines the quest which should be turned in. If empty/null, turns in the quest corresponding to the file name."
},
"NextQuestId": {
"type": [
"null",
"number",
"string"
],
"description": "For quest chains (e.g. DT healer role quests) Which quest to do next, given that you meet the required level."
}
}
}
},
{
"if": {
"properties": {
"InteractionType": {
"const": "Craft"
}
}
},
"then": {
"properties": {
"ItemCount": {
"type": "number"
}
},
"required": [
"ItemId",
"ItemCount"
]
}
}
],
"not": {
"anyOf": [
{
"required": [
"SkipIf"
]
}
]
2024-05-25 21:51:37 +00:00
}
}
}
2024-05-25 21:51:37 +00:00
}