{
  "version": "1.1",
  "requiredCapabilities": [
    "activities-v2",
    "activities-v1",
    "npc-capabilities-v1",
    "story-rules-v1",
    "creator-features-v1"
  ],
  "name": "The Returning Raider",
  "description": "An immediate attack button and an enemy that attacks, retreats and returns through real rooms.",
  "author": "TAGMaker",
  "created": "2026-11-03T00:00:00.000Z",
  "modified": "2026-11-03T00:00:00.000Z",
  "startRoom": "shelter",
  "story": {
    "version": 1,
    "states": [],
    "rules": [],
    "features": {
      "version": 1,
      "randomSeed": 17,
      "activities": [
        {
          "id": "shoot",
          "name": "Shoot Raider",
          "button": "SHOOT",
          "enabled": true,
          "roomIds": [
            "yard"
          ],
          "all": [],
          "any": [],
          "seconds": 0,
          "visibility": "disabled",
          "unavailableMessage": "Collect the required items first.",
          "startMessage": "",
          "emptyMessage": "",
          "cancelMessage": "You stop. Your supplies were kept.",
          "consumeIds": [],
          "maxUses": 0,
          "cooldownTurns": 0,
          "outcomes": [
            {
              "id": "success",
              "name": "Success",
              "weight": 1,
              "message": "You steady the blaster.",
              "conditions": [],
              "actions": [],
              "maxUses": 0
            }
          ],
          "combat": {
            "targetId": "raider",
            "weaponId": "blaster",
            "damage": 12,
            "hitChance": 85
          }
        },
        {
          "id": "claim",
          "name": "Claim Badge",
          "button": "CLAIM BADGE",
          "enabled": true,
          "roomIds": [
            "shelter"
          ],
          "all": [
            {
              "kind": "npc_health",
              "target": "raider",
              "operator": "<=",
              "value": 0
            }
          ],
          "any": [],
          "seconds": 0,
          "visibility": "disabled",
          "unavailableMessage": "Collect the required items first.",
          "startMessage": "You begin claim badge.",
          "emptyMessage": "Nothing this time. Try again.",
          "cancelMessage": "You stop. Your supplies were kept.",
          "consumeIds": [],
          "maxUses": 0,
          "cooldownTurns": 0,
          "outcomes": [
            {
              "id": "success",
              "name": "Success",
              "weight": 1,
              "message": "The raider is defeated. You earned your badge. Workshop complete!",
              "conditions": [],
              "actions": [
                {
                  "kind": "score",
                  "value": 10
                },
                {
                  "kind": "end"
                }
              ],
              "maxUses": 0
            }
          ]
        }
      ],
      "npcProfiles": [
        {
          "version": 1,
          "id": "raider",
          "name": "Raider movement",
          "npcId": "raider",
          "enabled": true,
          "memory": [],
          "traits": {
            "loyalty": 50,
            "fear": 0,
            "suspicion": 0
          },
          "life": {
            "maxHealth": 100,
            "initial": "active",
            "essential": false,
            "defeat": "dead",
            "retreatAtHealth": 0
          },
          "inventory": {
            "objects": [],
            "equipped": [],
            "equipment": [],
            "money": 0,
            "dropOnDeath": false
          },
          "combat": {
            "assist": "off",
            "target": "first_enemy",
            "interceptPercent": 50,
            "interval": 2,
            "variation": {
              "attackChance": 60,
              "retreatChance": 70,
              "minAttacks": 1,
              "maxAttacks": 2,
              "minAwayTurns": 2,
              "maxAwayTurns": 4
            }
          },
          "perception": {
            "enabled": false,
            "sightRange": 0,
            "hearingRange": 0,
            "suspicionPerSight": 10,
            "suspicionPerNoise": 10,
            "threshold": 50,
            "investigate": false,
            "returnHome": false,
            "allowedRoomIds": [
              "yard",
              "passage"
            ]
          },
          "abilities": []
        }
      ]
    }
  },
  "playerConfig": {
    "scoreEnabled": true,
    "healthEnabled": true
  },
  "playerAppearance": {
    "version": 1,
    "layout": "modern",
    "font": "sans",
    "colorScheme": "light",
    "textSize": 18,
    "lineHeight": 1.6,
    "readingWidth": 80,
    "quietReading": false,
    "mapMode": "discovered",
    "panels": {
      "inventory": true,
      "map": true,
      "objectives": true,
      "status": true,
      "words": true
    },
    "picture": {
      "visible": true,
      "fit": "contain",
      "focalX": 50,
      "focalY": 50
    },
    "commands": {
      "visible": true,
      "standard": [
        "look",
        "search",
        "inventory",
        "help"
      ],
      "custom": []
    },
    "words": []
  },
  "files": [
    {
      "path": "rooms/shelter.taml",
      "content": "room shelter\n name: \"Training Shelter\"\n description: \"Take the training blaster, then go EAST to the yard. Click SHOOT when the raider is there. WAIT if it retreats. Return here and CLAIM BADGE after defeating it.\"\n exit east: yard\nend"
    },
    {
      "path": "rooms/yard.taml",
      "content": "room yard\n name: \"Training Yard\"\n description: \"The raider may attack or retreat into the EAST passage. SHOOT is immediate. WAIT lets time pass when it retreats. Shelter is WEST.\"\n exit west: shelter\n exit east: passage\nend"
    },
    {
      "path": "rooms/passage.taml",
      "content": "room passage\n name: \"Side Passage\"\n description: \"A route used by the raider. The yard is WEST.\"\n exit west: yard\nend"
    },
    {
      "path": "objects/blaster.taml",
      "content": "object blaster\n  name: \"training blaster\"\n  description: \"A training weapon. Carry it to use SHOOT.\"\n  location: shelter\n  takeable: true\n  weapon: true\n  weight: 0.1\nend"
    },
    {
      "path": "npcs/raider.taml",
      "content": "npc raider\n  name: \"training raider\"\n  description: \"\"\n  location: yard\n  mobile: true\n  follow: false\n  health: 40\n  combat_side: enemy\n  auto_fight: true\n  attack_power: 3\n  defense: 1\n  trust: 50\n  dialogue default:\n    print \"raider looks at you in silence.\"\n  end\nend"
    },
    {
      "path": "scripts/game_start.taml",
      "content": "script on_game_start\nset health = 100\ngoto: shelter\nend"
    }
  ],
  "objects": [
    {
      "id": "blaster",
      "name": "training blaster",
      "description": "A training weapon. Carry it to use SHOOT.",
      "article": "",
      "location": "shelter",
      "aliases": [],
      "visible": true,
      "takeable": true,
      "droppable": true,
      "useGive": false,
      "container": false,
      "switchable": false,
      "edible": false,
      "drinkable": false,
      "wearable": false,
      "weapon": true,
      "weight": 0.1,
      "locked": false,
      "lockKey": "",
      "events": []
    }
  ],
  "npcs": [
    {
      "id": "raider",
      "name": "training raider",
      "description": "",
      "location": "yard",
      "mobile": true,
      "aliases": [],
      "onEnter": "",
      "onExamine": "",
      "onTalk": "",
      "onAttack": "",
      "onDeath": "",
      "onFollow": "",
      "onAutoAttack": "",
      "onTrustChange": "",
      "onGive": "",
      "onBeforeTalk": "",
      "onAfterTalk": "",
      "onBeforeAttack": "",
      "onAfterAttack": "",
      "onDamage": "",
      "onHeal": "",
      "onMove": "",
      "onLeave": "",
      "followPlayer": false,
      "health": 40,
      "combatSide": "enemy",
      "autoFight": true,
      "attackPower": 3,
      "defense": 1,
      "trustLevel": 50,
      "conversationEnabled": false,
      "convGreeting": "",
      "convFarewell": "",
      "convTopics": [],
      "dialogues": [
        {
          "id": "default",
          "trigger": "default",
          "body": "print \"raider looks at you in silence.\""
        }
      ]
    }
  ],
  "scripts": [
    {
      "id": "game_start",
      "name": "on_game_start",
      "description": "Start the workshop.",
      "kind": "global",
      "body": "set health = 100\ngoto: shelter"
    }
  ],
  "mapRooms": [
    {
      "id": "shelter",
      "name": "Training Shelter",
      "description": "Take the training blaster, then go EAST to the yard. Click SHOOT when the raider is there. WAIT if it retreats. Return here and CLAIM BADGE after defeating it.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 120,
      "y": 180,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "yard",
      "name": "Training Yard",
      "description": "The raider may attack or retreat into the EAST passage. SHOOT is immediate. WAIT lets time pass when it retreats. Shelter is WEST.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 350,
      "y": 180,
      "width": 160,
      "height": 64,
      "color": "#000000"
    },
    {
      "id": "passage",
      "name": "Side Passage",
      "description": "A route used by the raider. The yard is WEST.",
      "reentryEnabled": false,
      "reentryDesc": "",
      "hint": "",
      "dark": false,
      "roomType": "regular",
      "x": 580,
      "y": 180,
      "width": 160,
      "height": 64,
      "color": "#000000"
    }
  ],
  "mapExits": [
    {
      "id": "shelter_east",
      "fromRoom": "shelter",
      "toRoom": "yard",
      "direction": "east",
      "locked": false
    },
    {
      "id": "yard_west",
      "fromRoom": "yard",
      "toRoom": "shelter",
      "direction": "west",
      "locked": false
    },
    {
      "id": "yard_east",
      "fromRoom": "yard",
      "toRoom": "passage",
      "direction": "east",
      "locked": false
    },
    {
      "id": "passage_west",
      "fromRoom": "passage",
      "toRoom": "yard",
      "direction": "west",
      "locked": false
    }
  ],
  "activeMechanics": [],
  "worldEvents": [],
  "verbAliases": [],
  "customMechanicDefs": [],
  "savedMechanicTemplates": [],
  "objectiveSets": [],
  "gameOutliner": {
    "title": "",
    "hook": "",
    "coreIdea": "",
    "playerRole": "",
    "mainObjective": "",
    "secondaryObjectives": "",
    "toneGenre": "",
    "settingOverview": "",
    "storyTheme": "",
    "mainConflict": "",
    "coreMechanics": "",
    "mainNpcs": "",
    "objectCategories": "",
    "mainRooms": "",
    "puzzleDesign": "",
    "eventDesign": "",
    "combatDesign": "",
    "dialogueDesign": "",
    "scoringSystem": "",
    "endings": "",
    "builderChecklist": "",
    "finalNotes": ""
  },
  "customRoomTemplates": [],
  "customObjectTemplates": [],
  "customNpcTemplates": [],
  "customSavedScripts": []
}
