#(hygoww) How to make a NPC walking to a specific block

18 messages · Page 1 of 1 (latest)

carmine oracle
#

Hello there,

I'm new on Denizen and I tried to made a script. The script I want is :

  • when we click on the NPC named Robert, he move to a specific block on the world (at the position 30,200,-60)

How can I do that ?

lucid ospreyBOT
#

(hygoww) How to make a NPC walking to a specific block

lucid ospreyBOT
#

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.

celest grotto
#

You can do that with help of an assignment and interact script. The assignment script is required to activate triggers and assigning the interact script. The interact script is to make the npc walking when a user clicks on it (click trigger).

#

!guide interact script

fossil kilnBOT
celest grotto
#

You can make use of this simple example here. Instead of chat and zap you need to utilize the walk command.

#

!c walk

fossil kilnBOT
# celest grotto !c walk
Group

entity

Syntax

walk (<entity>|...) [<location>/stop] (speed:<#.#>) (auto_range) (radius:<#.#>) (lookat:<location>)

Short Description

Causes an entity or list of entities to walk to another location.

Description

Causes an entity or list of entities to walk to another location.

Specify a destination location to walk to, or 'stop' to stop all walking.

Optionally, specify a "speed:<#.#>" argument to control the speed of the NPCs.

Optionally, specify "auto_range" to automatically set the path range for the walk instruction
(if not specified, an NPC will not be able to walk to a location outside of its existing path range, by default 25 blocks).
(Does not apply to non-NPC entities).

Note that in most cas...

celest grotto
#

Make sure you setup all basics before starting scripting.

#

!guide first steps

celest grotto
#

!guide the basics

fossil kilnBOT
warm quail
#

Feel free to ask if you need any more help, otherwise -

vestal mothBOT
#
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.)

#

@carmine oracle