goblinscript

Evaluate GoblinScript expressions for damage, costs, and filters in DMHub.

17|11|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/VerisimLLC/draw-steel-codex --skill goblinscript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goblinscript
Source: https://github.com/VerisimLLC/draw-steel-codex/tree/main/.claude/skills/goblinscript
Command: npx skills add https://github.com/VerisimLLC/draw-steel-codex --skill goblinscript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GoblinScript provides a domain-specific language for expressing game math, enabling designers and programmers to define damage, costs, and target filters with readable syntax.

Core Features & Use Cases

  • Built-in operators and functions for dice, comparisons, and string matching
  • Symbol lookups and local bindings for creature and ability fields
  • Use cases include damage calculation, prerequisites, and custom attribute evaluation

Quick Start

Enter a GoblinScript formula like '2d6 + Might' to compute damage or a prerequisite check.

Frequently Asked Questions about goblinscript

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

FAQPage Schema
How do I evaluate game math formulas for damage and costs in DMHub?

To evaluate game math formulas for damage and costs in DMHub, you compute GoblinScript expressions like '2d6 + Might' using built-in dice operators, symbol lookups, and local bindings to resolve creature and ability fields deterministically.

What is the best way to calculate custom prerequisites and target filtering for creatures?

The best way to calculate custom prerequisites and target filtering for creatures is to evaluate GoblinScript expressions, applying string matching, comparisons, and symbol lookups to compute deterministic and non-deterministic filtering results.

How do I write dice roll expressions and lookup creature attributes in a game math formula?

You write dice roll expressions and lookup creature attributes by entering a GoblinScript formula such as '2d6 + Might', combining built-in dice operators with local bindings to resolve specific creature and ability fields.

Can I use GoblinScript formulas for custom attribute evaluation alongside Lua integration?

Yes, you can use GoblinScript formulas for custom attribute evaluation alongside Lua integration within DMHub, applying its domain-specific syntax to compute numbers for damage, costs, and filters.

Does DMHub support non-deterministic results when evaluating custom attribute formulas?

Yes, DMHub supports non-deterministic results when evaluating custom attribute formulas, allowing GoblinScript to compute variable outcomes like dice rolls alongside deterministic calculations for prerequisites and costs.

When should I use GoblinScript expressions instead of standard Lua scripts for game math?

You should use GoblinScript expressions instead of standard Lua scripts when you need a readable domain-specific language for defining game math, enabling designers to express damage, costs, and target filters with built-in operators and symbol lookups.