Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created March 22, 2023 14:47
Show Gist options
  • Save triacontane/13c50c92279998fc32966b240671b398 to your computer and use it in GitHub Desktop.
Save triacontane/13c50c92279998fc32966b240671b398 to your computer and use it in GitHub Desktop.
アクターの名前をスクリプトから変更(by GPT-4)
// アクターのID (1, 2, 3, ...) と新しい名前を指定
const actorId = 1;
const newName = "新しい名前";
// アクターを取得し、名前を変更
const actor = $gameActors.actor(actorId);
if (actor) {
actor.setName(newName);
}
@triacontane
Copy link
Author

image

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