You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capture facts that arise during the game, such as important answers or generated / observed values, for later use.
// Provided by the library userenumFactKeys{PLAYER_NAME,IS_STRUGGLING,}// At some point while processing an answer to the question "What's your name?"...Facts.captureString(FactKeys.PLAYER_NAME,answer);// After the third failed attempt on the same question (do we have the means to track this by question / globally?)...Facts.captureBool(FactKeys.IS_STRUGGLING,true)// Then later...if(Artefacts.readBool(FactKeys.IS_STRUGGLING)){DialogLine.of(`Do you need help, ${Facts.readString(Fact.PLAYER_NAME)}`);}// Possibly use generics instead of captureBool() and readBool()?
The text was updated successfully, but these errors were encountered:
SilasBerger
added
feature
Add or improve business functionality
v1
This issue should be fixed for v1
v1-candidate
This issue is nice to have for v1
and removed
v1
This issue should be fixed for v1
labels
Jan 11, 2024
Capture facts that arise during the game, such as important answers or generated / observed values, for later use.
The text was updated successfully, but these errors were encountered: