N.O.N. v2.1 Quick Reference

Fast authoring sheet for common syntax and parser behavior.

Primitives

name: "Royal Guard"     # quoted string
title: Iron Sword       # unquoted string
level: 15               # int
speed: 4.5              # float
is_hostile: false       # bool
target: null            # null
tint: #FF00FF           # color
position: (120, 0, 45)  # vector3
focus: &enemy_01        # reference

Structure

# 4 spaces per level
@entity: npc_guard_01
@class: Guard
    stats:
        hp: 200
        dex: 12
    inventory:
        - item: &sword_iron
          qty: 1

Lists

tags: [melee, slash, metal]

spawn_points:
    - pos: (10, 0, 10)
      radius: 5.0
    - pos: (-10, 0, -10)
      radius: 5.0

Strict Mode Rules

  • Tabs are invalid.
  • Mixed indentation is invalid.
  • Malformed key/value lines fail fast.
  • Line comments must start with #.