MOBA HUD

Shows the on-screen interface of a lane game: score and clock, the hero bar with abilities, level, health and mana, items, the shop, allied frames, the kill feed and announcements.

Source: module-kits:kits/hud_moba/usage/en.mdView Markdown source

Also read offline — CLI: grip-forge docs hud-mobaMCP tool: gripforge_docs { "topic": "hud-moba" }

MOBA HUD (hud.moba) #

What it is for #

Shows the on-screen interface of a lane game: score and clock, the hero bar with abilities, level, health and mana, items, the shop, allied frames, the kill feed and announcements.

It needs moba.match, game.engine; installing it brings them in.

Turn it on #

Install the kit in a project, then change a setting (the values shown are its defaults):

gripforge_gamekit_install   { project_id: "gkp_…", id: "hud.moba" }
gripforge_gamekit_configure { project_id: "gkp_…", id: "hud.moba",
                              config: { "show": ["score", "hero", "abilities", "items", "stats", "shop", "team", "feed", "announcements", "respawn", "minimap"], "feedSize": 5 } }

First example #

The kit has no dedicated test yet; this installs it and sets two of its settings to their defaults.

gripforge_gamekit_install   { project_id: "gkp_…", id: "hud.moba" }
gripforge_gamekit_configure { project_id: "gkp_…", id: "hud.moba",
                              config: { "show": ["score", "hero", "abilities", "items", "stats", "shop", "team", "feed", "announcements", "respawn", "minimap"], "feedSize": 5 } }

Settings and defaults #

Descriptions come from the kit manifest and stay in English.

SettingTypeDefaultRange or valuesMeaning
showarray["score", "hero", "abilities", "items", "stat…Elements the HUD draws.
feedSizeinteger51–10Lines kept in the kill feed.
feedSecondsnumber81–60Seconds a kill feed line stays.
announceSecondsnumber3.50.5–30Seconds an announcement banner stays (and its toast).

Services, events, variables #

  • Service hud.moba: notify, shown, setShown for the MOBA HUD elements (the hud.bind service shape).
  • Events emitted:
    • hud.notify (text, seconds, style)
  • Events listened to: moba.wave, moba.structure.destroyed, moba.hero.killed, moba.levelup, moba.victory
  • Variables:
    • hud.moba.feed (string) — Kill feed (JSON lines)
    • hud.moba.announce (string) — Announcement
  • Input actions: moba.shop

Hooks and modding #

  • Moddable settings: show, feedSize, feedSeconds, announceSeconds

Engines #

Declared targets: web, rust. gripforge kit api hud.moba lists the exact settings and services of your version.

Versions #

Kit version 1.3.0.