From 45c24d91054a3e445e07c96b72485550445ad1f4 Mon Sep 17 00:00:00 2001 From: Daniel Salinas Date: Sun, 1 Dec 2024 16:26:32 -0500 Subject: [PATCH] Make it so dead companions don't talk --- campaigns/zoz/06_desaturation.json | 658 +++++++++++++++++++++------- campaigns/zoz/09_war_council.json | 662 ++++++++++++++++++++++------- 2 files changed, 1002 insertions(+), 318 deletions(-) diff --git a/campaigns/zoz/06_desaturation.json b/campaigns/zoz/06_desaturation.json index 1b1f52a3e..dfaeccaad 100644 --- a/campaigns/zoz/06_desaturation.json +++ b/campaigns/zoz/06_desaturation.json @@ -27,8 +27,8 @@ "text": "\"We should see how they're coping with the mythos.\"", "description": "This is only for character status and can be skipped.", "steps": [ - "round_table", - "check_fatigue", "check_wizard", "check_scarecrow", "check_tinman", + "round_table", + "check_fatigue", "check_wizard", "check_scarecrow", "check_tinman", "check_tik_tok", "check_jack", "check_patchwork", "check_frogman", "check_capn_bill", "check_shaggy", "check_lion", "check_tiger", "check_sawhorse", @@ -56,20 +56,48 @@ "id": "check_wizard", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "wizard", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "wizard", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "wizard", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_wizard_story"] }, - { "numCondition": 1, "steps": ["the_wizard_story"] } + { + "boolCondition": true, + "steps": ["the_wizard_story"] + } ] } }, @@ -82,20 +110,48 @@ "id": "check_scarecrow", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "scarecrow", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "scarecrow", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "scarecrow", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_scarecrow_story"] }, - { "numCondition": 1, "steps": ["the_scarecrow_story"] } + { + "boolCondition": true, + "steps": ["the_scarecrow_story"] + } ] } }, @@ -108,20 +164,48 @@ "id": "check_tinman", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "tinman", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tinman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tinman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_tinman_story"] }, - { "numCondition": 1, "steps": ["the_tinman_story"] } + { + "boolCondition": true, + "steps": ["the_tinman_story"] + } ] } }, @@ -134,20 +218,48 @@ "id": "check_tik_tok", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "tik_tok", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tik_tok", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tik_tok", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_tik_tok_story"] }, - { "numCondition": 1, "steps": ["the_tik_tok_story"] } + { + "boolCondition": true, + "steps": ["the_tik_tok_story"] + } ] } }, @@ -160,20 +272,49 @@ "id": "check_jack", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "jack", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "jack", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "jack", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_jack_story"] }, - { "numCondition": 1, "steps": ["the_jack_story"] } + { + "boolCondition": true, + "steps": ["the_jack_story"] + } ] } }, @@ -186,20 +327,49 @@ "id": "check_patchwork", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "patchwork", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "patchwork", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "patchwork", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_patchwork_story"] }, - { "numCondition": 1, "steps": ["the_patchwork_story"] } + { + "boolCondition": true, + "steps": ["the_patchwork_story"] + } ] } }, @@ -212,20 +382,49 @@ "id": "check_frogman", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "frogman", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "frogman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "frogman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_frogman_story"] }, - { "numCondition": 1, "steps": ["the_frogman_story"] } + { + "boolCondition": true, + "steps": ["the_frogman_story"] + } ] } }, @@ -238,20 +437,49 @@ "id": "check_capn_bill", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "capn_bill", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "capn_bill", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "capn_bill", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_capn_bill_story"] }, - { "numCondition": 1, "steps": ["the_capn_bill_story"] } + { + "boolCondition": true, + "steps": ["the_capn_bill_story"] + } ] } }, @@ -264,20 +492,49 @@ "id": "check_shaggy", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "shaggy", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "shaggy", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "shaggy", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_shaggy_story"] }, - { "numCondition": 1, "steps": ["the_shaggy_story"] } + { + "boolCondition": true, + "steps": ["the_shaggy_story"] + } ] } }, @@ -290,20 +547,48 @@ "id": "check_lion", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "lion", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "lion", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "lion", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_lion_story"] }, - { "numCondition": 1, "steps": ["the_lion_story"] } + { + "boolCondition": true, + "steps": ["the_lion_story"] + } ] } }, @@ -316,20 +601,49 @@ "id": "check_tiger", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "tiger", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tiger", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tiger", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_tiger_story"] }, - { "numCondition": 1, "steps": ["the_tiger_story"] } + { + "boolCondition": true, + "steps": ["the_tiger_story"] + } ] } }, @@ -344,20 +658,48 @@ "id": "check_sawhorse", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "sawhorse", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 2 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "sawhorse", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 2 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "sawhorse", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_sawhorse_story"] }, - { "numCondition": 1, "steps": ["the_sawhorse_story"] } + { + "boolCondition": true, + "steps": ["the_sawhorse_story"] + } ] } }, diff --git a/campaigns/zoz/09_war_council.json b/campaigns/zoz/09_war_council.json index 76ef12534..b6054968c 100644 --- a/campaigns/zoz/09_war_council.json +++ b/campaigns/zoz/09_war_council.json @@ -27,8 +27,8 @@ "text": "\"This is the crux. They've got to hold strong at all costs.\"", "description": "This is only for character status and can be skipped.", "steps": [ - "morale_boost", - "check_fatigue", "check_wizard", "check_scarecrow", "check_tinman", + "morale_boost", + "check_fatigue", "check_wizard", "check_scarecrow", "check_tinman", "check_tik_tok", "check_jack", "check_patchwork", "check_frogman", "check_capn_bill", "check_shaggy", "check_lion", "check_tiger", "check_sawhorse", @@ -56,20 +56,48 @@ "id": "check_wizard", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "wizard", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "wizard", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "wizard", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_wizard_story"] }, - { "numCondition": 1, "steps": ["the_wizard_story"] } + { + "boolCondition": true, + "steps": ["the_wizard_story"] + } ] } }, @@ -82,20 +110,48 @@ "id": "check_scarecrow", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "scarecrow", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "scarecrow", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "scarecrow", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_scarecrow_story"] }, - { "numCondition": 1, "steps": ["the_scarecrow_story"] } + { + "boolCondition": true, + "steps": ["the_scarecrow_story"] + } ] } }, @@ -108,20 +164,49 @@ "id": "check_tinman", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "tinman", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tinman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tinman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_tinman_story"] }, - { "numCondition": 1, "steps": ["the_tinman_story"] } + { + "boolCondition": true, + "steps": ["the_tinman_story"] + } ] } }, @@ -134,20 +219,48 @@ "id": "check_tik_tok", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "tik_tok", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tik_tok", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tik_tok", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_tik_tok_story"] }, - { "numCondition": 1, "steps": ["the_tik_tok_story"] } + { + "boolCondition": true, + "steps": ["the_tik_tok_story"] + } ] } }, @@ -160,20 +273,49 @@ "id": "check_jack", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "jack", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "jack", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "jack", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_jack_story"] }, - { "numCondition": 1, "steps": ["the_jack_story"] } + { + "boolCondition": true, + "steps": ["the_jack_story"] + } ] } }, @@ -186,20 +328,49 @@ "id": "check_patchwork", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "patchwork", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "patchwork", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "patchwork", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_patchwork_story"] }, - { "numCondition": 1, "steps": ["the_patchwork_story"] } + { + "boolCondition": true, + "steps": ["the_patchwork_story"] + } ] } }, @@ -212,20 +383,49 @@ "id": "check_frogman", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "frogman", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "frogman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "frogman", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_frogman_story"] }, - { "numCondition": 1, "steps": ["the_frogman_story"] } + { + "boolCondition": true, + "steps": ["the_frogman_story"] + } ] } }, @@ -238,20 +438,49 @@ "id": "check_capn_bill", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "capn_bill", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "capn_bill", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "capn_bill", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_capn_bill_story"] }, - { "numCondition": 1, "steps": ["the_capn_bill_story"] } + { + "boolCondition": true, + "steps": ["the_capn_bill_story"] + } ] } }, @@ -264,20 +493,49 @@ "id": "check_shaggy", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "shaggy", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "shaggy", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "shaggy", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_shaggy_story"] }, - { "numCondition": 1, "steps": ["the_shaggy_story"] } + { + "boolCondition": true, + "steps": ["the_shaggy_story"] + } ] } }, @@ -290,20 +548,49 @@ "id": "check_lion", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "lion", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "lion", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "lion", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_lion_story"] }, - { "numCondition": 1, "steps": ["the_lion_story"] } + { + "boolCondition": true, + "steps": ["the_lion_story"] + } ] } }, @@ -316,20 +603,49 @@ "id": "check_tiger", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "tiger", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tiger", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "tiger", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_tiger_story"] }, - { "numCondition": 1, "steps": ["the_tiger_story"] } + { + "boolCondition": true, + "steps": ["the_tiger_story"] + } ] } }, @@ -338,26 +654,52 @@ "type": "story", "text": "The Hungry Tiger scowls, more energetic than many of your companions but still visibly upset. \"I cannot have lost my appetite! I grant you that the creatures we have fought in recent days have been wholly unappealing, but that should not make me uninterested in eating! Surely the Colour is to blame for this. Robbing me of my hunger! If we do not destroy it, then my appetite may never return and I would wither away before your eyes!\"" }, - - { "id": "check_sawhorse", "type": "branch", "condition": { - "type": "math", - "opA": { - "type": "campaign_log_count", - "section": "sawhorse", - "id": "$fatigue" - }, - "opB": { - "type": "constant", - "value": 3 - }, - "operation": "compare", + "type": "multi", + "count": 2, + "conditions": [ + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "sawhorse", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 3 + }, + "operation": "compare", + "options": [ + { "numCondition": 0 }, + { "numCondition": 1 } + ] + }, + { + "type": "math", + "opA": { + "type": "campaign_log_count", + "section": "sawhorse", + "id": "$fatigue" + }, + "opB": { + "type": "constant", + "value": 5 + }, + "operation": "compare", + "options": [ + { "numCondition": -1 } + ] + } + ], "options": [ - { "numCondition": 0, "steps": ["the_sawhorse_story"] }, - { "numCondition": 1, "steps": ["the_sawhorse_story"] } + { + "boolCondition": true, + "steps": ["the_sawhorse_story"] + } ] } },