skill

Manage Warcraft III unit skills with add, remove, and toggle APIs.

4|2|Updated May 5, 2019
One-click install
npx skills add https://github.com/hunzsig/soulook --skill skill-hunzsig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill
Source: https://github.com/hunzsig/soulook/tree/main/books/h-lua/lib
Command: npx skills add https://github.com/hunzsig/soulook --skill skill-hunzsig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dynamically manage unit skills to streamline Warcraft III modding workflows and reduce boilerplate when assigning, removing, or toggling skill effects at runtime.

Core Features & Use Cases

  • Add, remove, and permanently enable skills on units
  • Toggle invulnerability, pause, and invisibility
  • Apply and compose damage-based effects and custom DIY skills
  • Operate on individual units or groups with a flexible API
  • Provide deterministic behavior through clear lifecycle controls (during, forever, etc.)

Quick Start

Use hskill.add(unit, 'H001', 60) to grant a skill to a unit for 60 seconds.

Frequently Asked Questions about skill

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

FAQPage Schema
How do I dynamically add a skill to a unit in Warcraft III modding?

Dynamically add unit skills in Warcraft III modding by calling hskill.add(unit, 'H001', 60) to grant a specific ability to a unit for 60 seconds. This reduces boilerplate code when assigning abilities at runtime.

Can I toggle invulnerability or invisibility for a unit group in HLua?

Yes, you can toggle invulnerability or invisibility for a unit group in HLua using invulnerableGroup and invisible APIs. These functions enable batch processing to apply status changes across multiple units simultaneously.

How does custom DIY skill composition work for Warcraft III units?

Custom DIY skill composition works by combining damage-based effects and lifecycle controls using the diy API. This allows you to create complex custom abilities by assembling individual effect components end-to-end.

Does this skill API support applying damage effects to multiple units at once?

Yes, the skill API supports applying damage effects to multiple units at once through damageGroup and damageRange functions. It enables group-based damage application alongside individual unit damage steps.

What is the best way to permanently enable a skill on a Warcraft III unit?

The best way to permanently enable a skill on a Warcraft III unit is using the forever API. This provides deterministic behavior by locking the skill lifecycle so it remains active indefinitely without manual refreshing.

Are there limitations when pausing units or removing skills dynamically in HLua?

When pausing units or removing skills dynamically in HLua, limitations depend on deterministic lifecycle controls. You must manage pause and del API calls carefully to avoid conflicts with active damage steps or ongoing group operations.