Skript Version:2.2-dev23
Skript Author:Bensku
Minecraft Version:1.11.2
Other plugins used:
Skellett
Citizens
(all up to date)
---
I have spawned in an NPC with the following code:
NPC spawns fine and dandy.
I cannot for the life of me figure out how to remove the NPC without using Citizens' commands directly. I don't want to despawn the NPC, but I want to completely delete/remove it. There isn't much information on this in the docs or the forums here. And the docs aren't quite up to date for Skellett and Citizens. I had to figure out some of the stuff by searching the forums here.
I have tried:
It doesn't throw any errors. But this doesn't do anything except for create another NPC with an identical name.
All I see in the docs is:
"(despawn|remove) (npc|citizen) %npc% [with [despawn] reason %-despawnreason%]"
Adding a despawn reason throws a "Can't understand this condition/effect" error. Unless the despawn reason must be something specific? But still, I don't want to despawn, I want to delete.
Any ideas? I hope you folks may be able to help! Possibly @LimeGlass may be able to weigh in?
Thanks!!!
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Crying into my pillow. As well as trying to use SkRayFall in conjunction with skellett
Skript Author:Bensku
Minecraft Version:1.11.2
Other plugins used:
Skellett
Citizens
(all up to date)
---
I have spawned in an NPC with the following code:
code_language.skript:
set {_npc} to a npc with name "%player%'s NPC" and entity type "WITCH"
spawn npc {_npc} at {_npcSpawnLoc}
I cannot for the life of me figure out how to remove the NPC without using Citizens' commands directly. I don't want to despawn the NPC, but I want to completely delete/remove it. There isn't much information on this in the docs or the forums here. And the docs aren't quite up to date for Skellett and Citizens. I had to figure out some of the stuff by searching the forums here.
I have tried:
code_language.skript:
command /bye:
trigger:
set {_npc} to a npc with name "%player%'s NPC" and entity type "WITCH"
remove npc {_npc}
All I see in the docs is:
"(despawn|remove) (npc|citizen) %npc% [with [despawn] reason %-despawnreason%]"
Adding a despawn reason throws a "Can't understand this condition/effect" error. Unless the despawn reason must be something specific? But still, I don't want to despawn, I want to delete.
Any ideas? I hope you folks may be able to help! Possibly @LimeGlass may be able to weigh in?
Thanks!!!
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Crying into my pillow. As well as trying to use SkRayFall in conjunction with skellett