#(zeldowin) Citizens Client Sided NPCs

33 messages · Page 1 of 1 (latest)

velvet anvil
#

Is there any actual known way to do this? Make it so only specified players can see an npc, or after a player has interacted with an npc and they are "done" with it, its no longer visible to them but is still visible to players who havent done it yet. I'm relatively familiar with Denizen and I use it for almost everything so any method with that is preferable, otherwise any ideas? I put this post in the Citizens chat and was directed to just repost here, any help is greatly appreciated! Thanks

quasi lindenBOT
#

(zeldowin) Citizens Client Sided NPCs

quasi lindenBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

sudden ingot
#

Yeah

#

!m hide_from_players

silver matrixBOT
sudden ingot
#

!t show_to_player

silver matrixBOT
#
Possible Confusion

Did you mean to search for factiontag.list_players?

sudden ingot
#

!m show_to_player

silver matrixBOT
# sudden ingot !m show_to_player

Marks the entity as visible to players by default (if it was hidden).
See also !mechanism EntityTag.hide_from_players.
To show to only one player, see !mechanism PlayerTag.show_entity.
Works with offline players.

Object

EntityTag

Input

None

sudden ingot
#

!m hide_entity

silver matrixBOT
sudden ingot
#

@velvet anvil there are several mechs for this. Depending if you want to show a npc only to one player (hide_from_players + show_entity) or show to all players(default + hide_entity)

#

If you do not know how mechanisms work, here is the guide page for it.

#

!guide mechanism

silver matrixBOT
velvet anvil
#

ive never found these guides to be super straight forward, just looking for a basic example to where if a player has a flag they can see an npc, if they don't have a flag they can't

sudden ingot
#

It explains how mechanisms work, it does not explain how to do your thing exactly. That's logic you have to figure out yourself, or by help from us.

#

This helps us, so we do not have to explain you how mechanisms work.

#

Can you explain what you currently have? You mentioned an interaction with a NPC in your Citizens thread.

#

Is this interaction made with Denizen?

velvet anvil
#

right so i use denizen for any interactions with npcs

#

click on an npc1 and it says "hey bring me 1 stone"

#

trying to make it so that once that is complete, only then does npc2 appear for the next task to do, but only for that player

#

and so on

sudden ingot
#

!paste

silver matrixBOT
sudden ingot
#

Well, you have to use the mech EntityTag.hide_from_players on the NPC as earlier explained, to hide it from all players. And when the player finishes quest 1, use the mech PlayerTag.show_entity. This can be added into the interact script, when the player finishes, additionally set a player flag, to keep track on which NPC has to be shown and which not.

#

ie: - adjust <player> show_entity:<yourNPCobjectHere>

rancid forgeBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@velvet anvil