EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

notify

Show one localized text key after commit: to the permitted player, to every online player on the map of `near` within its radius, or without either to every online player.

Signature

{ kind: "notify", near: (NoticeArea)?, player: (PlayerRef)?, text: TextKey }

Fields

NameTypeMeaning
kind"notify"Discriminant
nearNoticeAreaPlace whose players see the text (excludes `player`): those online on its map within its radius.
playerPlayerRefPlayer shown the text; absent with `near` absent: every online player.
Length: 1…256; Pattern: ^[\s\S]+$
textTextKeyLocalized text key resolved by the receiving player's locale.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text

Validated example

{
  "kind": "notify",
  "player": "player/1",
  "text": "core:hill_golem_slain"
}