Skip to content

Writing Behavior JSON

JSON Behavior Definition Reference

Top Level (Behavior)

Field Type Required Default Description
name string Yes "" Behavior name (should be unique). Also shown in settings
weight int No 1 Selection weight. Higher values mean more frequent selection (values below 1 count as 1)
description string No — Description text shown in the settings page
description.{language} string No — Description for one language (for example "description.en"). The one for the display language is used if present; otherwise description
category string No "special" "basic" = basic behavior; anything else = special behavior
reactive string No null For a behavior that reacts to an event, the triggering event name (Events and Personality). Such a behavior is never picked as an ordinary behavior
pro bool No false true makes it a Pro-only behavior
tier int No 1 Rarity (1–10). Higher tiers are picked more often
unlock string No null The challenge ID that unlocks it (for example "nv_100"). It is never picked until that challenge is completed (Reward Behaviors)
rare bool No false true makes it a rare behavior. It is never picked normally; instead, each time a behavior is picked there is a 1% chance that one of the rare behaviors plays
hidden bool No false true keeps it out of the behavior list and it is never picked
author string No — Author name
origin string No — "user" marks a behavior you made yourself. Behaviors made with AI carry it, which enables "Edit" and "Upload to store" in the behavior list's right-click menu
phases array Yes — Array of behavior phases (at least one required)

Phase (Each Element in the phases Array)

Field Type Required Default Description
duration number or [min, max] No 1 Phase duration in seconds. Use an array for a random range
pose string No "stand" Stick figure pose (Poses, Dog Commands and Props). Names not in the list are drawn standing
speed number or [min, max] No 0 Movement speed (px/sec). Use an array for a random range. The personality's speed multiplier applies
movement string No null "forward" to move in the current direction. null to stay still
reverseAtEdge bool No false true to turn around on reaching the status bar edge
limbAnimation bool No false Limb animation ON/OFF
limbSpeed number No 8 Limb animation speed
jump object No null Jump settings (see below)
flipInterval number No null Reverse direction at this interval (seconds)
dogBehavior string No null Command for the companion (Dog Commands). null for normal follow
moveTo string No null "edge" heads for an edge and ends the phase on arrival: the nearer edge the first time, then the opposite edge from last time. Use it with "movement": "forward" and speed, and not together with reverseAtEdge
yOffset number No 0 Base height offset (px). Negative values move upward. Sets the baseline altitude for the phase; can be combined with jump
followers int No 0 Number of followers (up to 8). That many stick figures walk along with the leader
aura bool No false true shows rotating, flickering rays (a halo) around the head
scale number No 1.0 Rendering scale (1.0 = normal, 2.0 = double). Zero or less counts as 1.0
projectileType string No null (bone) The thrown object's shape during the throw pose. "bone" (two crossed lines) / "frisbee" (flattened ellipse) / "ball" (circle)
prop string No null Prop key (Available Props)

Jump Settings (jump Object)

Field Type Default Description
height number 5 Jump height (px)
period number 0.4 Time for one jump cycle (seconds). Smaller = faster

Sample JSON

Basic: Simple Walk

{
  "name": "MyWalk",
  "weight": 2,
  "description": "A slow stroll",
  "category": "basic",
  "phases": [
    {
      "duration": [3, 6],
      "pose": "walk",
      "speed": [20, 40],
      "limbAnimation": true,
      "limbSpeed": 6,
      "movement": "forward",
      "reverseAtEdge": true
    }
  ]
}

Intermediate: Running with Dog

{
  "name": "RunWithDog",
  "weight": 1,
  "description": "The dog runs ahead, the stick figure chases",
  "phases": [
    {
      "duration": 0.5,
      "pose": "stand",
      "dogBehavior": "run_ahead"
    },
    {
      "duration": 3.0,
      "pose": "run",
      "speed": [80, 120],
      "limbAnimation": true,
      "limbSpeed": 14,
      "movement": "forward",
      "reverseAtEdge": true,
      "dogBehavior": "run_ahead"
    },
    {
      "duration": 0.5,
      "pose": "stand"
    }
  ]
}

Advanced: Wall Climb Challenge (Multi-phase + Dog Coordination)

{
  "name": "WallClimbChallenge",
  "weight": 1,
  "description": "Tries to climb a wall but slides down. The dog watches",
  "phases": [
    {
      "duration": 1.5,
      "pose": "run",
      "speed": 60,
      "limbAnimation": true,
      "limbSpeed": 12,
      "movement": "forward",
      "moveTo": "edge",
      "dogBehavior": "watch"
    },
    {
      "duration": 2.0,
      "pose": "wall_climb",
      "limbAnimation": true,
      "limbSpeed": 8,
      "jump": { "height": 10, "period": 4.0 },
      "dogBehavior": "watch"
    },
    {
      "duration": 0.3,
      "pose": "crouch",
      "dogBehavior": "watch"
    },
    {
      "duration": 1.0,
      "pose": "stand",
      "flipInterval": 0.5
    }
  ]
}

Reactive: Respond to Search Start

{
  "name": "ReactSearch",
  "reactive": "SearchStarted",
  "description": "検索が始まるとキョロキョロする",
  "description.en": "Looks around nervously when a search begins",
  "phases": [
    {
      "duration": 1.5,
      "pose": "surprised",
      "flipInterval": 0.4
    },
    {
      "duration": 0.3,
      "pose": "stand"
    }
  ]
}

How to Add Custom Behaviors

Add JSON files to the stickman folder inside the data folder to create your own behavior patterns. "Open stickman folder" in Control Deck › Stickman opens this folder.

  1. Create a .json file in data\stickman (any file name). One folder level below is fine too (files inside the archive folder are not loaded)
  2. Write the JSON following the reference above
  3. Restart the app to load it
  4. Toggle behaviors on or off in Control Deck › Stickman

Notes: - Files with an empty or missing phases array are skipped - JSON syntax errors will not crash the app — only the affected file is skipped - Comments (//) and trailing commas in the JSON are accepted - If multiple behaviors share the same name, all are loaded, but unique names are recommended so you can tell them apart in settings - You can have as many behaviors as you like react to the same event; one of them is picked each time - A behavior that fails while playing is not picked again until the next startup