Hide NPC Tag

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

JustADev

Well-Known Member
Apr 8, 2017
379
9
18
22
Q: How do i disable a npc's tag when it is spawned?

CODE:
code_language.skript:
command /basicnpc:
    trigger:
        create a citizen named "Basic" at location (101, 118, 140) as a villager
        set {_Basic} to last created citizen
        send "&8[&bNPC&8] &7Successfully summoned NPC &eBasic" to player
        make citizen {_Basic} hold iron sword
        make citizen {_Basic} look at location (104, 118, 153)
        make citizen {_Basic}'s nametag invisible
 
Q: How do i disable a npc's tag when it is spawned?

CODE:
code_language.skript:
command /basicnpc:
    trigger:
        create a citizen named "Basic" at location (101, 118, 140) as a villager
        set {_Basic} to last created citizen
        send "&8[&bNPC&8] &7Successfully summoned NPC &eBasic" to player
        make citizen {_Basic} hold iron sword
        make citizen {_Basic} look at location (104, 118, 153)
        make citizen {_Basic}'s nametag invisible
Not sure if this is the problem, but the examples for nametag visibility don't include the apostrophe and S. So maybe try this?
code_language.skript:
set citizen {_Basic} nametag invisible
 
or could you not do like

code_language.skript:
set name of {_Basic} to ""

I don't personally use citizens but if you're just spawning him as a villager you can do that without citizens
 
But you'd be able to do what you're wanting to do :emoji_wink:
You are absolutely right there, though idealy you should be able to do it both ways. He's using a much older version of Mc too, which sometimes makes working skript syntaxes not work for him as we've found.
 
Status
Not open for further replies.