<|SECTION:CHARACTER CONTEXT|>
{{ character.sheet }}

{% for detail_name, detail in character.details.items() %}
### {{ detail_name }}
{{ detail }}
{% endfor %}

{% if not instructions %}
{{ query_scene("What is "+character.name+"'s age, race, physical appearance, and what clothes are they currently wearing? Provide detailed descriptions.", True) }}

{{ query_scene("What is "+character.name+"'s current scene description and where are they currently at? Describe the environment and provide genre context.", True) }}
{% else %}
{{ query_scene("What is "+character.name+"'s age, race, physical appearance, and what clothes do they generally wear? Provide detailed descriptions. Answer in the context of the following instructions: "+instructions, False) }}

{{ query_scene("Provide any relevant visual details about "+character.name+" or the environment relevant to the following instructions: "+instructions, False) }}
{% endif %}
<|CLOSE_SECTION|>

<|SECTION:REQUIREMENTS|>
A portrait-oriented image that focuses on a single character. The key requirements are:

1. **Subject Focus**: The image centers on ONE specific character who should be clearly visible and recognizable
2. **Framing**: Portrait orientation (vertical format), typically showing the character from head to upper body, or full body
3. **Composition**: The character should be the sole subject - no other characters should be present in the image
4. **Environmental Context** (optional): The character may be shown within an environment/setting, but the environment serves only as context/background - the character remains the primary focus
5. **Presentation**: Think of this like a character showcase or profile image - the kind of image you might see on a character profile page or character roster

**What to avoid:**
- Multiple characters in the same image
- Group scenes or interactions between characters
- Images where the environment/setting overshadows the character
- Graphical overlays, borders, frames, labels, or UI elements
<|CLOSE_SECTION|>

<|SECTION:TASK|>
Your task is to generate an image generation prompt that will be used to generate a character image for {{ character.name }}.

{% if instructions %}Specific instructions for the requested image: {{ instructions }}{% endif %}

Required information: name, age, race, gender, physique, expression, pose/action, clothes/equipment, hair style, hair color, skin color, eyes, scars, tattoos, piercings, a fitting color scheme and any other relevant details.


<|CLOSE_SECTION|>