packages: the editor's schema attributes on every .lres-bound record (@Ref, @OneOf, @Asset, @Unit, @Range, @Color, @Text, @Derived, @Key; @AppendOnly/@ByKey) - annotation only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
48bf705ca4
commit
5197cf4cb8
11 changed files with 56 additions and 49 deletions
|
|
@ -2,18 +2,18 @@
|
|||
# anything to say winning, each line in its turn given its `chance`; a line's words are its `text`,
|
||||
# or the story's (NpcTalk.say) when it `fill`s; a line may offer choices, each answered by a line
|
||||
export property NpcChoice {
|
||||
text: string = ""
|
||||
line: string = "" # the key of the line that answers it ("" ends the talk)
|
||||
@Text text: string = ""
|
||||
@Text line: string = "" # the key of the line that answers it ("" ends the talk)
|
||||
code: int = -1 # the game's, carried by the Talked fact
|
||||
}
|
||||
|
||||
export property NpcLine {
|
||||
key: string = ""
|
||||
kind: int = -1 # NPCK_* (-1: anyone)
|
||||
act: int = -1 # NPCA_* (-1: whatever they are doing)
|
||||
@Ref(NpcKinds) kind: int = -1 # NPCK_* (-1: anyone)
|
||||
@Ref(NpcActs) act: int = -1 # NPCA_* (-1: whatever they are doing)
|
||||
prio: int = 0
|
||||
chance: int = 100 # percent: how often this line is even considered
|
||||
text: string = ""
|
||||
@Text text: string = ""
|
||||
fill: bool = false
|
||||
choices: []NpcChoice = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue