galaxy-math-strings-conversion

Provides Galaxy scripting helpers for math, string conversions, and display formatting.

7|1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/KimPlaybit/Starcraft-2-Editor-Skills --skill galaxy-math-strings-conversion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: galaxy-math-strings-conversion
Source: https://github.com/KimPlaybit/Starcraft-2-Editor-Skills/tree/main/.agents/skills/galaxy-math-strings-conversion
Command: npx skills add https://github.com/KimPlaybit/Starcraft-2-Editor-Skills --skill galaxy-math-strings-conversion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Galaxy scripting often requires consistent math, type conversions, and string handling to build reliable map logic and UI. This skill consolidates numeric operations, conversions, and display utilities to streamline development and reduce errors.

Core Features & Use Cases

  • Math and fixed-point operations, including integer math, fixed-point arithmetic, and basic trig utilities.
  • Type conversions between int, fixed, string, and text, plus color construction and formatting helpers.
  • Use Case: Build a dynamic score display by converting numbers to text, composing strings, and coloring output based on value ranges.

Quick Start

Convert the integer 42 to fixed-point, format it as text, and append to a display string.

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 int to fixed and string in Galaxy scripting?

To convert int to fixed and string in Galaxy scripting, use type conversion helpers to seamlessly switch between int, fixed, string, and text for reliable data presentation.

Can I build a dynamic UI score display using Galaxy math and string formatting?

Yes, you can build a dynamic UI score display by converting numbers to text, composing strings, and applying color construction to format output based on value ranges.

Does NativeLib support integer math and fixed-point arithmetic in Galaxy?

NativeLib supports integer math and fixed-point arithmetic in Galaxy through specific helpers such as ArithmeticIntClamp, Log, and RandomPercent for reliable calculations.

How do I apply color construction and text rendering to map UI values?

Apply color construction and text rendering to map UI values by utilizing the built-in color and display formatting helpers to customize visual output based on data.

What is the best way to handle fixed-point conversions for map logic?

The best way to handle fixed-point conversions for map logic is using consolidated string and math utilities that streamline type conversions and reduce formatting errors.

Are there limitations when using Galaxy string helpers for complex arithmetic?

Galaxy string helpers focus on basic trig utilities and standard arithmetic; highly complex mathematical operations may require external calculation before applying string conversions.