{% set extra_context_content -%}
{% with skip_characters = [character.name] %}
    {% include "extra-context.jinja2" %}
{% endwith %}
<|SECTION:{{ character.name|upper }}|>
{{ character.sheet }}

{{ character.description }}
<|CLOSE_SECTION|>
{% endset %}
{{ extra_context_content }}
{% set extra_context_tokens = count_tokens(extra_context_content) %}
{% set budget=max_tokens-300-extra_context_tokens %}
{% with budget=budget %}{% include "scene-context.jinja2" %}{% endwith %}
<|SECTION:TASK|>
Narrate the entrance of {{ character.name }} into the scene. {% if not narrative_direction %}Make a creative decision on how {{ character.name }} enters the scene. It must be in line with the content so far.{% endif %}

{% include "narrative-direction.jinja2" %}

{{ extra_instructions }}
<|CLOSE_SECTION|>