Skip to content

Dialogue line attribute #133

Description

@nndda

Metadata/attributes thingy for each line of the dialogue. I think we can use the existing syntax, just maybe with a different special token or something, like:

Dia:
    $portrait = "dia_happy.png"
    $voice_line = "dia_1.wav"

    "Welcome! to the Theatre!"

And then, on the function data:

{
    ...,
    Key.ATTR: {
        "portrait": "dia_happy.png",
        "voice_line": "dia_1.wav"
    }
}

For those who prefers declarative stuff more.

Limitation

Scope. I won't say stuff like this is impossible:

Dia:
    $uwu = SomeScope.some_value[69]

    "..."

But, I've been stalling this milestone for eons, and so, for now, attributes will only be just for static values.

Performance

The dialogue resource will get slightly bigger, with the attribute data column added. But everything is done on parse-time, so I don't think I see any runtime performance issue here.

Metadata

Metadata

Assignees

Labels

DialogueDialogue-related stuff: resource class, import system, etc.enhancementNew feature or requestparserAnything related to Dialogue parser function

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions