Plugins · Step
Remove every NPC
Take away every NPC the runtime is keeping, such as before a reload.
m.npc.remove_all
In a flow
“When an admin uses a command → Remove every NPC.”
When an admin uses a command → Remove every NPC.
What it does
Take away every NPC the runtime is keeping, such as before a reload. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Plugins in the palette.
When to use it
Use it when the flow needs to: take away every NPC the runtime is keeping, such as before a reload.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Values it gives
- Removed Number
-
How many it removed. e.g. 3
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more