Skip to content

Instantly share code, notes, and snippets.

@triacontane
Last active June 1, 2022 12:46
Show Gist options
  • Save triacontane/10d7575445e51f944a2830f57221b113 to your computer and use it in GitHub Desktop.
Save triacontane/10d7575445e51f944a2830f57221b113 to your computer and use it in GitHub Desktop.
指定アクターの装備武器名を取得
const id = 1;
const index = 0;
$gameActors.actor(id).weapons()[index]?.name || ' ';
@triacontane
Copy link
Author

id : アクターID
index : インデックス(二刀流の二つ目の武器を取りたければ[1] それ以外は[0])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment