Register

UnKenny - NPCs with artificial intelligence

An Add-on Module for Foundry Virtual Tabletop

Author: TheComamba Project Source: Project URL Versions 11+ (Verified 12) Last Updated 3 months, 3 weeks ago

About

UnKenny is a module for Foundry Virtual Tabletop. It allows you to generate a tiny dialogue with a character, by providing them with a limited AI. The idea arose during our Starfinder game, because we wanted to simulate the interaction with a robotical NPC.

Security

Be mindful which modules you enable.

If you are storing your OpenAI API key in UnKenny, you are entrusting it to us, and by extension, to FoundryVTT. The modularity of Foundry is one of its big selling points, but it is also an invitation to arbitrary code execution. Any module you install could, in principle, inject some code that steals your API key. Foundry takes some countermeasures like scoping of modules, but ultimately it is very hard to defend against attacks from within your application.

For that reason, monitor your API key usage every now and then. If ever you find a module that has stolen your key, please

Usage

Global Configuration

After enabling the module for a world, configure it in the global settings. Selecting a Large Language Model is required. If you want to use one of OpenAI's models, you will also need to set up and pay for an API key. Note that different models may have different capabilties and also different usage costs.

The other parameters are set to reasonable defaults.

UnKenny Game Settings

Actor Configuration

Open the sheet of the actor that you want to make UnKenny and click on "Modify UnKennyness".

Actor Sheet

Provide the following two inputs:

You may also overwrite any global settings for this actor only. If for example you want to have a particularly repetitive character, you could set the Repetition penalty to a negative value. However, most effects can also be achieved by accurately describing the character in the preamble.

UnKenny Sheet

As long as the alias is not empty, the actor is considered unkenny and can be adressed. To speak to the actor, mention them anywhere in your message using @<alias>, where <alias> is their UnKenny alias.

Your chat message is posted, and a short while later, the response generated by the large language model is posted below it. This example was generated with the GPT-4 model.

Dialogue

Any messages previously posted at or by the actor are included in the chat conversation. Note that the context size of a large language model is limited. At some point UnKenny might warn you that it starts truncating messages. To avoid that, simply clean up the chat log. Alternatively you can switch to a model with a larger context size. For OpenAi, these are usually the ones ending on 'turbo'.

Categories

Available Versions

  1. Version 1.3.0

    3 months, 3 weeks ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  2. Version 1.2.0

    3 months, 3 weeks ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  3. Version 1.1.0

    4 months, 3 weeks ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  4. Version 1.0.4

    4 months, 4 weeks ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  5. Version 1.0.3

    4 months, 4 weeks ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  6. Version 1.0.2

    5 months ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  7. Version 1.0.1

    5 months, 1 week ago
    Foundry Version 11+ (Verified 12) Manifest URL Read Notes
  8. Version 1.0.0

    5 months, 2 weeks ago
    Foundry Version 11+ (Verified 11) Manifest URL Read Notes
  9. Version 0.2.0

    7 months, 3 weeks ago
    Foundry Version 11+ (Verified 11) Manifest URL Read Notes
  10. Version 0.1.3

    11 months, 1 week ago
    Foundry Version 11+ (Verified 11) Manifest URL Read Notes
  11. Version 0.1.2

    11 months, 1 week ago
    Foundry Version 11+ (Verified 11) Manifest URL Read Notes
  12. Version 0.1.1

    11 months, 2 weeks ago
    Foundry Version 11+ (Verified 11) Manifest URL Read Notes
  13. Version 0.1.0

    11 months, 3 weeks ago
    Foundry Version 11+ (Verified 11) Manifest URL Read Notes