galaxy-players-and-alliances

Manage player data, alliances, and game state in Galaxy scripts.

3|2|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/ShadowDragonSC2/Base.SC2Data --skill galaxy-players-and-alliances-shadowdragonsc2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: galaxy-players-and-alliances
Source: https://github.com/ShadowDragonSC2/Base.SC2Data/tree/main/.koda/skills/galaxy-players-and-alliances
Command: npx skills add https://github.com/ShadowDragonSC2/Base.SC2Data --skill galaxy-players-and-alliances-shadowdragonsc2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Patterns and libraries for organizing and manipulating Galaxy-based player data, alliances, and game state, helping map authors implement consistent initial setups and runtime checks.

Core Features & Use Cases

  • Player Data Pattern (SSF): Structure per-player data and groups for reliable iteration and querying.
  • Alliance & Race Helpers: Utilities to set races, manage alliances, and enforce consistent relationships at map start.
  • Per-Player Access & Resources: Read/write minerals, gas, and flags, and extract color or status for UI cues.
  • Map Initialization Scenarios: Automate initialization, updates, and end-game calls across multiple players or groups.

Quick Start

Initialize alliances and per-player patterns at map start using Galaxy script patterns.

Frequently Asked Questions about galaxy-players-and-alliances

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up player alliances and races during map initialization in Galaxy script?

You can set up player alliances and races during Galaxy map initialization by using alliance and race helper patterns to enforce consistent team relationships and assign races across all players at map start.

What is the best way to iterate over all players and check races in a Galaxy script?

Iterating over players and checking races in a Galaxy script is best done by using structured per-player data patterns, which allow reliable querying and iteration across multiple players or teams during runtime.

Can I read and write player resources like minerals and gas using Galaxy scripting?

Yes, you can read and write player resources like minerals and gas using Galaxy scripting by accessing per-player resource patterns to modify values and extract color or status data for UI cues.

How do I automate end-game scenarios across multiple teams in Galaxy scripts?

You automate end-game scenarios across multiple teams in Galaxy scripts by applying map initialization patterns that manage game state access and trigger end-game calls across defined player groups or teams.

Does this approach support managing player groups for custom team setups in SC2 maps?

Yes, managing player groups for custom team setups in SC2 maps is supported through player data structures that define groups for reliable iteration, querying, and consistent alliance settings at map start.