Module twdll.cai

Campaign AI logging functions.

Functions

EnableLogging ([enabled]) Enables or disables real-time Campaign AI decision telemetry output to twdll.log.


Functions

EnableLogging ([enabled])
Enables or disables real-time Campaign AI decision telemetry output to twdll.log.

When enabled, logs the entire evaluating reasoning chain: - Faction context & persona. - Environmental drivers and strategic needs (food, squalor, threats). - Candidate option set with mathematical weights/probabilities. - Chosen decision outcome or explicit rejection reasons.

Parameters:

  • enabled boolean whether CAI telemetry logging is enabled (optional)

Returns:

    boolean current enabled state

Usage:

    -- Enable Campaign AI telemetry output:
    twdll.cai.EnableLogging(true)
    
    -- Query current telemetry state:
    local is_logging = twdll.cai.EnableLogging()
generated by LDoc 1.5.0