Change Name
Change Name¶
Renames an object identified by its Unique ID, targeting heroes, battlers, skills, or inventory items.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Name | The new name to assign to the target object. | Variable or Value |
| Target Unique ID | The unique identifier of the object to rename. This can be a hero, battler, skill, or inventory item. | Variable or Value |
Examples¶
Rename Object to a Fixed Name Using Unique ID from Global Variable 0¶
This renames the object identified by the Unique ID stored in Global Variable 0 to "Hero Name".
{"Data":{"TargetName":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"Hero Name","VariableIndex":0,"Metadata":null},"TargetUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Data.ChangeNameCommand"}
Rename Object Using Variables for Both Unique ID and Name¶
This renames the object identified by the Unique ID stored in Global Variable 0 to the name stored in Global Variable 1.
{"Data":{"TargetName":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"TargetUniqueID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Data.ChangeNameCommand"}