Resource icon

Verified High Quality Multi-NPC Command 1.0

This script was verified by the Denizen team to be a particularly high quality example of how scripts are written.
Denizen Version
REL-1751
MultiNPC Commands: A tool to allow NPC command execution on multiple NPCs simultaneously.

GitHub: https://github.com/mcmonkeyprojects/DenizenSampleScripts/blob/master/multinpc_command.dsc

8190c7.gif



NOTE TO USERS COMING FROM CITIZENS:
This is a Denizen script! Denizen is a scripting engine that functions as a plugin for Spigot, and deeply integrates into Citizens to add a lot of extra features to your NPCs. Download Denizen here: https://ci.citizensnpcs.co/job/Denizen/ or learn more about Denizen here: https://guide.denizenscript.com/guides/background/what-is-denizen.html

Installation:
- Install Denizen if you haven't already.
- Save this script file (a .dsc you can download with the orange button at the top-right of this page) to the "plugins/Denizen/scripts" folder
- Type "/ex reload" in-game to load it in.

Usage:
Type command "/multinpc" to get usage info in-game.

You can select NPCs via "/multinpc select" and deselect them with "/multinpc deselect"
You can also use "/multinpc tool" to get an item that can be used to quickly select/deselect NPCs by clickng them.

You can view your current selection of NPCs via "/multinpc show"

You can save/load NPC selection sets via "/multinpc save [name]" and "/multinpc load [name]"
Note that saved sets are global - meaning, they are automatically shared with other staff.

You can then execute any common "/npc" commands by simplying using them through "/multinpc"
For example, to use "npc sneak" on all your selected NPCs, use "/multinpc sneak"
You can use the Trait command, for example "/trait sentinel" is ran like "/multinpc trait sentinel"
If you have Sentinel, you can use Sentinel commands, for example "/multinpc sentinel damage 5"

By default, runs in 'quiet' mode - meaning, it will try to shorten and conglomerate message output.
If something has gone wrong, you can use "/multinpc loud" to enable 'loud' mode - meaning, it will show ALL output.
Use "/multinpc quiet" to go back into quiet mode.
Author
mcmonkey
Downloads
408
Views
1,672
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from mcmonkey

Share this resource