Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

msw-avatar

БесплатноБез исполняемых скриптовНе проверен

MSW avatar management — costume (CostumeManagerComponent, 17 slots) + animation 3-layer pipeline (StateComponent → AvatarStateAnimationComponent →…

MSW-Gitот MSW-Git★ 38 звёзд на GitHub

Об этом скилле

MSW Avatar (Costume · Animation)

An avatar is managed along two axes.

  • Costume (appearance): MOD.Core.CostumeManagerComponent — which items are equipped (17 slots).
  • Animation (motion): AvatarStateAnimationComponent + AvatarRendererComponent — which state clip is played (14 default states + custom actions).

Edit workspace files directly, then call the maker_refresh_workspace tool of msw-maker-mcp so the editor picks up the change.

This document covers costume (file-edit based) first, then animation (script based) at the end.

Workspace path rule: maps ./map/, UI ./ui/, scripts and other assets ./RootDesk/MyDesk/, global models such as DefaultPlayer/Player ./Global/.


Where to edit, by target

Target File to edit Notes
DefaultPlayer ./Global/DefaultPlayer.model Override CostumeManagerComponent properties via the Values array
Player (base) ./Global/Player.model Costume defaults are usually overridden in DefaultPlayer.model, not here
Entities placed in a map (NPC, monster, etc.) ./map/{mapName}.map The CostumeManagerComponent block inside that entity's jsonString.@components
Entities that reference a custom model only The corresponding .model (e.g. under ./RootDesk/MyDesk/) When the map has no inline component and the entity is bound only by modelId, edit the model side

Read (equivalent to get): read the file above and inspect the CostumeManagerComponent-related fields / Values entries.

Apply (equivalent to set): write values into the file, then call maker_refresh_workspace.


Applying changes: MCP maker_refresh_workspace

After saving the file you must call the maker_refresh_workspace tool of the msw-maker-mcp server to sync Maker and its visual state. (See the tool list in the msw-general skill.)


RUID (resource unique ID)

The string written into a costume is an avatar item RUID (typically a 32-character hex string).

  • Never guess or fabricate an RUID. Look it up with the msw-search skill — for the avatar RUID workflow (default body/head, item detail, render composition) see ../msw-search/references/resource/avatar.md; for generic search see ../msw-search/references/resource/search.md; for single-item detail see ../msw-search/references/resource/detail.md.
  • The script API SetEquip(MapleAvatarItemCategory, itemRUID) and the value stored in the editor/model are the same RUID string.
  • Custom*Equip slots only accept a plain Guid. Any prefixed form — including thumbnail://<ruid> — is silently rejected and the slot is left unequipped (no error, no warning). RUIDs returned by msw-search are already plain Guids; do not prepend a scheme. See the msw-sprite-ruid skill for the broader thumbnail / icon rule.

CostumeManagerComponent overview

Attached to entities that use an avatar (player, NPC, etc.). Equipment slots are exposed as 17 string properties named Custom*Equip, and from scripts you access them via GetEquip / SetEquip with the MapleAvatarItemCategory enum.

Other synced properties

Property Type Description
UseCustomEquipOnly boolean (default false) When true, the user account's default costume is ignored and only costumes assigned via script/model are used. Important when you want to lock the appearance inside a world.
DefaultEquipUserId string Clones the equipment of the specified user, then applies custom equipment on top. Users who are not currently online can also be specified. If that user later changes equipment, the reflected appearance may change.
EquippedItems read-only Actual equipped info at runtime. Cannot be modified from script.

17 slots ↔ property ↔ MapleAvatarItemCategory

The 17 equipment string fields of CostumeManagerComponent map to the engine enum MapleAvatarItemCategory as follows. (Enum definition: see Environment/NativeScripts/Enum/MapleAvatarItemCategory.d.mlua.)

# Component property (string RUID) MapleAvatarItemCategory Notes
1 CustomBodyEquip Body (1) Skin / body
2 CustomHairEquip Hair (3) Hair
3 CustomFaceEquip Face (4) Face / face shape
4 CustomCapEquip Cap (5) Hat
5 CustomCapeEquip Cape (6) Cape
6 CustomCoatEquip Coat (7) Coat (top)
7 CustomLongcoatEquip Longcoat (9) Longcoat — an item class that occupies both the top and bottom slots
8 CustomPantsEquip Pants (10) Bottom
9 CustomGloveEquip Glove (8) Gloves
10 **CustomShoesEq
Полный SKILL.md на GitHub

Установить msw-avatar в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл msw-avatar?

MSW avatar management — costume (CostumeManagerComponent, 17 slots) + animation 3-layer pipeline (StateComponent → AvatarStateAnimationComponent → AvatarRendererComponent). Four-level distinction: State key (uppercase) / AvatarBodyActionStateName (lowercase) / MapleAvatarBodyActionState enum / sprite action ID (swingO1, shoot1). Two mapping systems via IsLegacy/ActionSheet/StateToAvatarBodyActionSheet. PlayerControllerComponent auto-transition conflicts with ActionStateChangedEvent resolved via RemoveActionSheet/SetActionSheet/BodyActionStateChangeEvent. Applies to any avatar-bearing entity (NPC, monster, etc.), not only DefaultPlayer. Use for costume get/set, 17 equip slots, animation state mapping, action override, weapon-specific attack motion, custom shoot/cast/dance action. Keywords: avatar, costume, animation, state, action, shoot, swing, weapon, equipment, custom action, block auto playback, remap.

Как установить скилл msw-avatar?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл msw-avatar запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить msw-avatar с