HyperScript
Docs

← All of the Docs HyperCitizens

Finding NPCs HyperCitizens

expressionall npcsHyperCitizens

A list of the numbers of every NPC

for each {_id} in all npcs:
    send "&7%{_id}%: &f" + name of npc {_id}
expressionnpc named <name>HyperCitizens

The number of the NPC of that name; unset if there is none

set {_id} to npc named "Guide"
expressionname of npc <npc>HyperCitizens

Its name, without colours

hide name of npc arg.1
expressionlocation of npc <npc>HyperCitizens

Where it is, as a location

teleport player to location of npc {_id}
Guide and examples
command /npcs:
    trigger:
        for each {_id} in all npcs:
            send "&7%{_id}%: &f" + name of npc {_id}

command /guide:
    players only: true
    trigger:
        set {_id} to npc named "Guide"
        if {_id} is not set:
            send "&cThere is no guide yet."
            stop
        teleport player to location of npc {_id}
SyntaxResult
all npcsA list of the numbers of every NPC
npc named <name>The number of the NPC of that name; unset if there is none
name of npc <npc>Its name, without colours
location of npc <npc>Where it is, as a location