Jump to content

Amaestin

Member
  • Posts

    2
  • Joined

  • Last visited

Amaestin's Achievements

Lurker

Lurker (1/6)

0

Reputation

  1. 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.
×
×
  • Create New...