mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8637] [Feature]: Faceted sprite selection #8438
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8438
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ghost-Data11 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8637
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
A nice-to-have capability is more complex sprite selection. My understanding of expression engine is that it currently resolves all sprites with a matching first-token into a single group and then allows the caller to select one at random, so happy_01, happy_02, and happy_blush all effectively become random picks for the happy expression.
What I'd like is for multi-faceted sprite selection so things like happy + pajamas and happy + formalwear are possible based on context. With more selection slots, we can express things like angry_formalwear_soaked_01, where we resolve a sprite based on emotion (happy, sad, shy), wardrobe (pajamas, normal, naked), and physical condition (soaked, burning, dirty).
Proposed solution
The most straight forward implementation would be to expand on expression engine to have the agent evaluate multiple conditions and pick from a collection that does not group by any one explicit slot - We could trim off only variant numbers from the end where they exist and send the entire collection of slot1_slot2_slot3... options to the agent to choose from. This could include any number of conditions, so sprites like kneeling are just as valid as kneeling_happy_armor_wounded and would only be limited by the sprite options that have been uploaded.
For sprite gaps, a priority could be added to the agent instructions for each evaluated slot. For example, outfit > emotion > condition/state, so if the only wounded sprite is in armor but the character is currently in pajamas, priority would dictate that a non-wounded pajama sprite be picked instead.
Alternatives considered
Additional context
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Nov 1, 2026):
Implemented in #8653, merged into
staging: faceted sprite names (happy_pajamas,angry_formalwear_soaked_01) are listed to the Expression Engine and Game Master and resolve by facet, dropping the last facet when no sprite fits. The Expression Engine prompt that teaches the agent to use them is Pasta-Devs/Marinara-Agents#2029.