| Name | Assignment |
| Related Guide Page | https://guide.denizenscript.com/guides/npcs/assignment-scripts.html |
| Syntax | assignment [set/add/remove/clear] (script:<name>) (to:<npc>|...) |
| Short Description | Changes an NPC's assignment. |
| Full Description | Changes an NPC's assignment as though you used the '/npc assignment' command.
Uses the script: argument, which accepts an assignment-type script. Optionally, specify a list of NPCs to apply the trait to. If unspecified, the linked NPC will be used. 'Set' is equivalent to 'clear' + 'add'. |
| Related Tags | <NPCTag.script> Deprecated variant of NPCTag.scripts.
<server.npcs_assigned[<assignment_script>]> Returns a list of all NPCs assigned to a specified script.
|
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Group | npc |
| Requires | Citizens |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/npc/AssignmentCommand.java#L27 |