Scenario conditions in dialogs: option if= hides choices, when moved here from stat checks; command schemas
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dde5262aa0
commit
68ed11cadc
14 files changed
+542
-3
No files matched your search
@@ -103,7 +103,10 @@ namespace Cthangover.Mods.Dialog.Scenarios
|
||||
|
||||
if (pendingSelect.Variants == null)
|
||||
pendingSelect.Variants = new List<SelectVariant>();
|
||||
pendingSelect.Variants.Add(SelectVariant.New(optText, goTo));
|
||||
var variant = SelectVariant.New(optText, goTo);
|
||||
if (named.TryGetValue("if", out var condition))
|
||||
variant.Condition = condition;
|
||||
pendingSelect.Variants.Add(variant);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user