galaxy-math-strings-conversion

Perform arithmetic, conversions, and string operations in SC2 Galaxy scripts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Galaxy scripting often requires a coherent toolkit for performing arithmetic, conversions, and string operations, which this skill consolidates for reuse and consistency.

Core Features & Use Cases

  • Arithmetic, fixed-point math, and numeric conversions for in-game logic and UI displays.
  • String and text operations, including concatenation, searching, extracting, and casing.
  • Color construction, component access, and formatting helpers for dynamic visuals.
  • Type conversions and formatting utilities to build robust, display-ready strings and texts.

Quick Start

Compute 5 + 7 and convert the result to text for display.

Frequently Asked Questions about galaxy-math-strings-conversion

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

FAQPage Schema
How do I convert numbers to text for UI displays in Galaxy scripts?

The skill provides int and fixed conversions alongside string formatting utilities to generate display-ready text for UI elements using NativeLib helpers.

Can I perform trigonometric and bitwise operations in SC2 Galaxy scripting?

Yes, you can perform trigonometric and bitwise operations in SC2 Galaxy scripting. The skill directly supports trig functions, bitwise operations, and fixed-point math for in-game logic calculations.

What string manipulation functions are available for SC2 custom maps?

Available string manipulation functions for SC2 custom maps include concatenation, searching, extracting substrings, and modifying text casing to build dynamic in-game text and data formatting.

Does this skill handle color construction and component access for Galaxy UI?

The skill handles color construction and component access for Galaxy UI, providing formatting helpers to dynamically build and modify colors for visual display elements within SC2.

How do I generate random numbers and format them in Galaxy script?

To generate random numbers and format them in Galaxy script, use the skill's randomization functions combined with its numeric conversion and display formatting utilities to output results as text.

Are there limitations to fixed-point math in SC2 Galaxy scripting?

Fixed-point math in SC2 Galaxy scripting operates within the engine's numeric precision limits, and this skill consolidates arithmetic and conversions to maintain consistency across in-game calculations and UI displays.