Amaestin Posted August 5, 2021 Share Posted August 5, 2021 (edited) So i tried to make npc skript where when I create a npc in-game then when you click the npc it'll make you do the command but when there's multiple ids and then try to click them it recognized the other ids aswell as the current one. when i click one of the npcs which is a zombie (test), it somehow finds the villager (test2) and does the command that test2 is supposed to do but when i click the zombie it's not supposed to do that on right click: if {npc::*} contains clicked entity: # this is to see if the npc is a npc. this works i think loop {npcs::*}: # this loops the ids if {npc::*} contains clicked entity: # this is supposed to look if the id links to the entity but it seems to not work when i click the zombie (test)? player command "%{npccommand::%loop-value%}%" # this is just the command it's supposed to do if it finds the correct entity. message "%loop-value%" to player # this is just to see what the end result should be. Edited August 6, 2021 by Amaestin Link to comment Share on other sites More sharing options...
Punish Posted August 6, 2021 Share Posted August 6, 2021 Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Amaestin Posted August 6, 2021 Author Share Posted August 6, 2021 I'm guessing it didn't make sense? Link to comment Share on other sites More sharing options...
Lapzzo Posted August 6, 2021 Share Posted August 6, 2021 13 hours ago, Amaestin said: So i tried to make npc skript where when I create a npc in-game then when you click the npc it'll make you do the command but when there's multiple ids and then try to click them it recognized the other ids aswell as the current one. when i click one of the npcs which is a zombie (test), it somehow finds the villager (test2) and does the command that test2 is supposed to do but when i click the zombie it's not supposed to do that Im not sure. Does it work if you replace %{npccommand::%loop-value%}% with a real command. Example /say hi Link to comment Share on other sites More sharing options...
Punish Posted August 6, 2021 Share Posted August 6, 2021 1 hour ago, LapEvents said: Im not sure. Does it work if you replace %{npccommand::%loop-value%}% with a real command. Example /say hi now i understand ok what u need to do is- oh he alr ansered 1 Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 6, 2021 Share Posted August 6, 2021 14 minutes ago, Razaire said: now i understand ok what u need to do is- oh he alr ansered No one answered it. Im just trying to see what errors are happening Link to comment Share on other sites More sharing options...
Punish Posted August 7, 2021 Share Posted August 7, 2021 20 hours ago, Lapzzo said: No one answered it. Im just trying to see what errors are happening ok. but im bored to write more Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 7, 2021 Share Posted August 7, 2021 No response? Did you fix it? I need a response to be able to figure out the problem Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now