Extensions/ComfyUI-RPG-Characters
ComfyUI Extension

ComfyUI-RPG-Characters

Stylized RPG character prompt generator for ComfyUI. Supports standard and Ollama-based prompts, works with SD, SDXL, Flux, and more.

By lord-lethris·Created about a year ago·Updated 15 days ago· 6
lord-lethris/ComfyUI-RPG-Characters
Nodes6
On cloudLocal install
CategoryRPG, Prompting
Stars6
Updated15 days ago
Readme

ComfyUI-RPG-Characters

A custom node for ComfyUI that generates stylized prompts for RPG characters. This node outputs both standard prompt formats and enhanced Ollama-style descriptive prompts ideal for extreme close-up portraits.

✅ Compatible with Stable Diffusion, SDXL, Flux, and any model that uses structured prompts.

The generator supports both classic AD&D / Fantasy and Sci-Fi / Cyberpunk character creation, with expanded classes, clothing styles, scenes, and art styles. Sci-Fi characters can be created without augmentations, allowing fully augment-free characters as well as cybernetic ones.


✨ Features

  • 🎨 Choose from a variety of art styles:

    • Anime Style
    • Dark Fantasy
    • Realistic
    • Fantasy Illustration
    • Digital Painting
    • Sci-Fi / Cyberpunk
  • 🧠 Generates:

    • Standard Positive & Negative Prompts (for SD, SDXL, Flux)
    • Ollama-style Descriptive Prompt (text-to-text guidance)
    • Ollama-style Negative Prompt Instruction
  • 📸 Designed for 1024x1024 extreme close-up portraits

  • 📄 Fully structured to support character features:

    • Race, Ethnicity, Gender, Age, Class
    • Hair & Beard Styles and Colours
    • Clothing Style, Emotion, and Scene
    • Fantasy and Sci-Fi / Cyberpunk classes and clothing
    • General / Neutral, Fantasy, and Sci-Fi / Cyberpunk scenes

🆕 V2.3 Workflow Highlights

The AD&D Character Portrait Generator V2.3 workflow builds on the RPG character prompt system with several workflow improvements:

  • 🧩 Updated upscale stages to use the newer ComfyUI Subgraph system
  • 🎨 Added an Anime Prep stage to improve results when using likeness images with Anime-style generation
  • 🧙 Expanded AD&D / Fantasy character classes
  • 🤖 Added Sci-Fi / Cyberpunk character classes
  • 👕 Expanded Fantasy and Sci-Fi / Cyberpunk clothing styles
  • 🌍 Expanded scene selection with:
    • General / Neutral environments
    • AD&D / Fantasy environments and interiors
    • Sci-Fi / Cyberpunk environments and interiors
  • 🍺 Added fantasy tavern and inn environments, including Pub/Tavern Interior
  • 🧪 Added scientist, laboratory, corporate and research environments
  • 🧬 Sci-Fi characters are not required to have augmentations — augment-free characters are fully supported

The workflow remains designed for straightforward character creation while allowing the individual character, clothing, scene, and visual style to be mixed and matched.


📦 Install via ComfyUI Manager (Recommended 🎉)

The node is now officially listed in ComfyUI Manager!

To install:

  1. Launch ComfyUI and open Manager (via sidebar or custom_nodes menu).
  2. Go to the Install Custom Nodes tab.
  3. Search for: RPG-Characters
  4. Click Install
  5. Restart ComfyUI — you're ready to go!

🧱 Node Outputs

| Output Name | Description | |-------------------------------|-------------| | positive_prompt | Standard positive tag string | | negative_prompt | Standard negative tag string | | Ollama_Positive_Textbox_1 | Detailed descriptive prompt for LLMs or advanced generators | | Ollama_Negative_Textbox_1 | Instructional template to guide LLMs on what to exclude | | Ollama_Positive_Textbox_2 | Extra prompt input for LLMs or advanced generators that have a second Text Input|


📂 Example Files

All examples are in the Examples/ folder of this repository.

🧠 Standard Prompt Examples

Node Setup:
Standard Prompt Nodes
Workflow File:
RPG_Nodes_Normal.json


🧠 Ollama-Driven Prompt Examples

Node Setup:
Ollama Prompt Nodes
Workflow File:
RPG_Nodes_Ollama.json


⚔️ Comparison: Standard vs Ollama

Side-by-Side Visual:
Standard vs Ollama
Workflow File:
RPG_Nodes_Normal_Vs_Ollama.json


🔁 Prompt Switcher Example

Prompt Switch Node Example:
Switch Example
Workflow File:
RPG_Nodes_Normal_and_Ollama_With_Switch.json


🧩 Full Node Collection

A visual reference of the full node layout.
Full Node Collection


🛠️ Manual Installation (if needed)

Clone this repo into your ComfyUI custom_nodes folder:

git clone https://github.com/lord-lethris/ComfyUI-RPG-Characters.git

Restart ComfyUI after installation.


🧠 Usage

  1. Add the RPG Art Style Selector and RPG character nodes from the "RPG" category.
  2. Select the character traits, clothing style, scene, and art style you want.
  3. Mix Fantasy, Sci-Fi / Cyberpunk, and General / Neutral options as required.
  4. Connect outputs as needed:
    • positive_prompt / negative_prompt → your SD/SDXL/Flux prompt node
    • Ollama_Positive_Textbox_1 / Ollama_Negative_Textbox_1 → LLM or prompt analysis/feedback tools

⚠️ Optional Ollama Support Requirements

To use the Ollama-driven prompt generation features in this node, you need to:

Without these installed and running, the Ollama prompt outputs in this node will not function.


Credit for the ComfyUI-Ollama node goes to Stav Sapir (stavsap).


🔮 Future Plans

  • Dynamic LLM integration for auto-generating character prompts
  • Additional art styles (e.g., pixel art, steampunk, noir)
  • Further expansion of character classes, clothing styles, and environments
  • Additional workflow improvements and generation presets

🐾 Made by Lord Lethris

Featuring Belle the cat, who disapproves of bad prompts. 🐱