Skip to content

docs: add Tags & Tokens wiki pages - #363

Open
Blaylock1988 wants to merge 3 commits into
MeridiusIX:masterfrom
GV-Server-Mods:docs/tags-and-tokens
Open

Blaylock1988 wants to merge 3 commits into
MeridiusIX:masterfrom
GV-Server-Mods:docs/tags-and-tokens

Conversation

@Blaylock1988

Copy link
Copy Markdown
Contributor

Summary

Two mechanics that weren't written up anywhere on the wiki:

  • Tags.md — the string-Tag broadcast system ([Tags:Value] + consumers like [ManuallyActivatedTriggerTags:], [EnableTriggerTags:], [ToggleEventTags:]): the two independent Trigger-tag/Event-tag pools, all 8 tag-consuming fields with their master gates, the RivalAI-Action-vs-MES-Event-Action dual-context trap where a few of these fields resolve tokens on one side but not the other, a worked example, and what the grid-scoped (not global) trigger lookup actually costs you in practice.
  • Tokens.md — the {Token} placeholder system (IdsReplacer.cs and friends): the full token list, why substitution needs live NPC data and so never works inside MES Events (with the one narrow SpawnData/SpawnFactionTags exception), and the other token-aware fields (StoreProfiles, Waypoint, TrueSandboxBooleans/FalseSandboxBooleans, etc).

Both follow the existing per-tag card format used across the rest of the wiki. Everything in them was checked directly against the current MES C# source, including two independent verification passes, and one genuinely dead/unreachable token ({CustomVariablesName}) is flagged as such rather than documented as if it works.

Nav: added under Modding (Tokens, standalone since it's referenced from multiple pages) and under Behaviors > Triggers (Tags, alongside Trigger/Condition).

Test plan

  • mkdocs serve locally to confirm both pages render correctly in the readthedocs theme and the nav entries land where expected
  • Spot-check a couple of the source-verified claims (dual-context ToggleEventTags/ResetEventCooldownTags, {CustomVariablesName} being dead) against your own knowledge of the code

Source-only — the built WebWiki/site/ output isn't regenerated in this PR.

🤖 Generated with Claude Code

Blaylock1988 and others added 3 commits September 19, 2026 11:40
… from unrelated grids (verified in-game by server owner)
Documents two mechanics that weren't written up anywhere on the wiki:

- Tags.md: the string-Tag broadcast system ([Tags:Value] + consumers like
  [ManuallyActivatedTriggerTags:], [EnableTriggerTags:], [ToggleEventTags:]) -
  the two independent Trigger-tag/Event-tag pools, all 8 tag-consuming
  fields with their master gates, the RivalAI-Action-vs-MES-Event-Action
  dual-context trap where some of these fields resolve tokens on one side
  but not the other, a worked example, and what the grid-scoped (not
  global) trigger lookup actually costs you in practice.
- Tokens.md: the {Token} placeholder system (IdsReplacer.cs and friends) -
  the full token list, why substitution needs live NPC data and so never
  works inside MES Events (with the one narrow SpawnData/SpawnFactionTags
  exception), and the other token-aware fields (StoreProfiles, Waypoint,
  TrueSandboxBooleans/FalseSandboxBooleans, etc).

Everything was checked directly against the current MES source, including
two independent verification passes.

Source-only - the built WebWiki/site/ output isn't regenerated here.
@enenra

enenra commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Ok, so.

As mentioned on discord, I think these features should be documented and this is a good initiative, however, IMO it has to be done differently on a fundamental level.

First of all, calling this feature "Tokens", especially in the current context, is a no-go. While it is not as unique a term, a much more fitting one would be "Variables".

Furthermore, for better or worse, the term "Tag" is often used to reference any MES logic parameter. So I think when referring to TriggerTags, EventTags etc. we have to call it a "Tagging" system - and always use the Trigger- and Event- prefixes for any use in singular form.

The overall biggest issue however, and I'm sorry to say this, is that the LLM-generated text is just not good. It's way too wordy while not being clear enough and contains plenty of unhelpful and irrelevant bits. While generating the description of a singular MES logic Tag might yield something adequate, generating a whole page of text like this does not. I'd much rather have 90% less text on these pages, text that is correct and human-written, than tons of LLM text that makes it actively harder to understand.

Unfortunately as a result this is in a "start over from scratch" stage, and not something that can be salvaged as is. And to be honest, I also do not think it is something that an LLM can be successfully prompted to produce an acceptable version of.

I'm sorry if this is demotivating. I still think it's a good initiative and I agree these pages should exist. I understand, of course, if you don't have the time to rework these from scratch. But if you'd still like to give this a go, let's figure out a structure for these pages together first and then work on filling them in a second step. :-)

@Blaylock1988

Blaylock1988 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed feedback. Fair points on length and clarity, and I agree these should be much tighter.

On naming: when I was looking for a word for the stuff in curly brackets, "tokens" came up as a common name for that, so that's why I picked it. MES didn't really have an established name for them beyond the IdsReplacer code, and I didn't want to use that since not every field that swaps in values actually goes through it. I'm reluctant to reuse "Variables" for even more mechanics, since there are already a lot of tags using that word for values (SandboxVariables, Counters Variable tags, SaveLocationToSandboxVariable), not to mention one of these can even insert a sandbox variable's value. How about "Placeholders"? Agreed on "Tagging" and on always saying Trigger Tag / Event Tag.

New proposed skeleton below: 1 to 2 new short pages that link to the existing tag cards instead of repeating them. I think Tagging might fit better as a section on the Trigger page than its own page, whichever you prefer. I'd also move the placeholder list from the Chat page to the new page and link to it from there.

Tagging

About 150 words, down from 174 lines.

  • What it is and when you'd use it
  • Table of the 3 tag types (Trigger, Event, Player): how each is set and what targets it, linking to the existing tag cards
  • The types are separate and never match each other
  • Trigger Tags only reach Triggers already on that grid's behavior
  • One short example

Placeholders

About 200 words, down from 142 lines.

  • What they are
  • Table of about 15 placeholders and what each is replaced with
  • Tag cards will say if a field supports them
  • They don't work in MES Events, except in SpawnData
  • One short example

The tables would follow the same simple format as the Trigger Types table on the Trigger page.

Other related pages worth updating:

  1. I also found the ManuallyActivated/Enable/Disable/ResetCooldown TriggerTags actions don't have cards anywhere on the wiki, and there's no card for Tags on the Trigger page either. The Event page's Tags card also just says "nan" for its description. I have those ready on a separate PR if you want them.
  2. Action.md is also missing cards for the Event actions like ActivateEvent, ToggleEvents and ResetCooldownTimeOfEvents. I can look at those after.

VillanorSE added a commit to VillanorSE/se-dev-skills that referenced this pull request Oct 18, 2026
…w log statuses

Name tags for what the modder sees (MeridiusIX/Modular-Encounters-Systems#408), agree structure and keep new
wiki pages short, Tagging terms (MeridiusIX/Modular-Encounters-Systems#363). Review log: #408, #363 entries;
#389/#396/#400 released in 2.75.00; #399 waits on an in-game test.

se-dev-blockrestrictions: br_ec.py accepts subtypes with spaces (#2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants