[GH-ISSUE #3812] [Feature]: Add logical and group-aware prompt macros #2057

Closed
opened 2026-10-21 05:44:58 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3812

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Prompt authors cannot combine character checks with OR/AND logic, and there is no reliable macro for referring to every other active character in a Roleplay group. Targeted/manual group generation can also narrow the prompt scope before macro resolution, leaving the other-character list empty.

Proposed solution

  • Support ||, &&, parentheses, and equality-list shorthand in conditional prompt blocks.
  • Add {{group}} to list all active character cards except the current responder.
  • Preserve the complete active roster while assembling targeted Roleplay prompts.
  • Document the syntax in the in-app macro guide and prompt documentation.

Alternatives considered

Authors can repeat or duplicate prompt sections for each character, or manually maintain a comma-separated roster. Both approaches are fragile when the active group changes and make reusable presets difficult.

Additional context

This was tested in a manual Roleplay group containing Pantalone, Maukie, and a character card named Powers That Be while the active persona was also named Powers That Be.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3812 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Prompt authors cannot combine character checks with OR/AND logic, and there is no reliable macro for referring to every other active character in a Roleplay group. Targeted/manual group generation can also narrow the prompt scope before macro resolution, leaving the other-character list empty. ## Proposed solution - Support `||`, `&&`, parentheses, and equality-list shorthand in conditional prompt blocks. - Add `{{group}}` to list all active character cards except the current responder. - Preserve the complete active roster while assembling targeted Roleplay prompts. - Document the syntax in the in-app macro guide and prompt documentation. ## Alternatives considered Authors can repeat or duplicate prompt sections for each character, or manually maintain a comma-separated roster. Both approaches are fragile when the active group changes and make reusable presets difficult. ## Additional context This was tested in a manual Roleplay group containing Pantalone, Maukie, and a character card named Powers That Be while the active persona was also named Powers That Be. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:58 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 19, 2026):

Addressed in ready-for-review PR #3813. Logical conditionals, the group-aware macro flow, tracker retry persistence, documentation, and the related Settings color fix are implemented; CI is green and the combined Roleplay behavior was manually confirmed.

<!-- gh-comment-id:5015945192 --> @SpicyMarinara commented on GitHub (Jul 19, 2026): Addressed in ready-for-review PR #3813. Logical conditionals, the group-aware macro flow, tracker retry persistence, documentation, and the related Settings color fix are implemented; CI is green and the combined Roleplay behavior was manually confirmed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2057
No description provided.