Skip to content

Design and Implement Scenario System for Structured Challenges #77

@adam4813

Description

@adam4813

Overview

TowerForge should support a scenario system, providing structured, goal-oriented gameplay beyond sandbox mode. Scenarios are curated challenges or themed situations with unique starting conditions, objectives, constraints, and triggered events to increase replayability and showcase advanced mechanics.

Key Elements

  • Scenario Definition:
    • File-based (JSON/YAML/Lua, etc.) scenario descriptions
    • Define tower starting state (funds, facilities, research, staff, etc.)
    • Objectives (e.g., reach star rating, earn X income, survive disaster)
    • Constraints (available facilities, build restrictions, time limits)
    • Events/triggers (timed or conditional, e.g., VIP visit, disasters)
    • Victory/failure conditions
  • Scenario Selection UI:
    • Menu to browse, preview, and select scenarios
    • Display descriptions, difficulty, images/blueprints
    • Lock/unlock scenarios based on progression
  • Gameplay Flow:
    • Load scenario state and enforce objectives/constraints
    • Show scenario objectives and progress in the UI
    • Monitor for win/loss conditions, show results at end
  • Scenario Editor (Future):
    • In-game or external tool for creating and sharing scenarios
  • Modding Support:
    • Allow custom scenario files, possibly Lua-scripted for advanced logic

Example Structure

name: "Skyline Sprint"
description: "Reach a 5-star rating in under 2 years, starting with a half-built tower and limited funds."
difficulty: "Hard"
starting_funds: 25000
starting_floors:
  - type: "Lobby"
  - type: "Office"
  - type: "Empty"
available_facilities:
  - "Office"
  - "Residential"
  - "FoodCourt"
objectives:
  - type: "star_rating"
    value: 5
    time_limit_days: 720
constraints:
  - "no_loans"
  - "max_elevators:2"
events:
  - trigger: "day:90"
    action: "vip_arrival"
  - trigger: "star_rating:4"
    action: "fire_inspection"
victory:
  - "5_star_reached_within_time"
failure:
  - "time_limit_exceeded"
  - "bankruptcy"

Benefits

  • Replayable, challenging content
  • Onboarding/tutorial scenarios
  • Community-made content support
  • Themed gameplay experiences

To Be Expanded

This issue summarizes the scenario system context for TowerForge and may be broken down into subtasks or expanded as design progresses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions