Created
March 22, 2023 14:47
-
-
Save triacontane/13c50c92279998fc32966b240671b398 to your computer and use it in GitHub Desktop.
アクターの名前をスクリプトから変更(by GPT-4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// アクターのID (1, 2, 3, ...) と新しい名前を指定 | |
const actorId = 1; | |
const newName = "新しい名前"; | |
// アクターを取得し、名前を変更 | |
const actor = $gameActors.actor(actorId); | |
if (actor) { | |
actor.setName(newName); | |
} |
Author
triacontane
commented
Mar 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment