#walk command flock radius

32 messages · Page 1 of 1 (latest)

prisma fiber
#

Hey there I'm playing around with NPCs and doing some testing for my restaurant sim minigame, I am looking at the Walk command since that'd be ideal for NPC managing to make the npc walk from the doorway to chairs at the tables, but I don't want them to just all clump together at one point.

I see there's a radius arg on the command which is supposed to specify a flocking radius, but it's not really working when I'm specifying it and the npcs still end up clumped, maybe I am just not understanding what it's meaning.

I should have everything updated plugin-wise as I only just reinstalled citizens recently for use in this project.

Here's my test command line I was using to move the npcs:
/ex walk <npc[2]>|<npc[3]>|<npc[4]>|<npc[5]> <player.cursor_on> radius:5

neon deltaBOT
#

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.

prisma fiber
#

Lemme reboot so I can get a fresh log for ya

white epoch
#

!debug

jolly islandBOT
# white epoch !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

prisma fiber
#

Hey hey I'm doin that

white epoch
#

Debug isn't logs, debug shows the details

prisma fiber
#

Which will be in the logs silly

#

I always have the debug on for my dev work

jolly islandBOT
# prisma fiber !logcheck https://paste.denizenscript.com/View/128173
Server Version

Paper version 1.21.1-128-master@d348cb8 (2024-10-21T16:23:24Z)

Plugin Version(s)

Citizens v2.0.35-SNAPSHOT (build 3598) -- (:warning:Outdated build, behind by 35)
Denizen v1.3.1-SNAPSHOT (build 7081-DEV) -- (:warning:Outdated build, behind by 11)
Depenizen v2.1.1 (build 864) -- (Outdated build, behind by 1)

Checked For

@prisma fiber

UUID Version

4 (:white_check_mark: Online)

Java Version

21.0.3 :white_check_mark:

Other Noteworthy Plugin(s)

MythicMobs v5.8.0-SNAPSHOT-2eedfd8e

Possibly Relevant Plugin(s)

ViaVersion v5.0.5 - Mixed client vs server versions can sometimes cause packet-related issues.
Multiverse-Core v4.3.12 - Multi-world configuration plugins may affect NPCs in unexpected ways.

prisma fiber
#

might as well do that

#

huh guess I'm behind a bit

#

Well citizens is fine #news message
I guess I can updated denizen just to have it

prisma fiber
white epoch
#

is it still moving outside the range?

prisma fiber
#

Lemme take a gif

#

I suppose instead of having them converge on the same point, they can instead select a chair and walk individually to that chair

white epoch
#

is your goal to have them choose a random chair, or just be within a certain radius?

opal zealotBOT
prisma fiber
#

But you see what I'm talking about with them all clumping up, it was just to have them in a radius around the table

#

Basically I just don't understand how the radius arg works

white epoch
#

!haste

jolly islandBOT
prisma fiber
#

Uh, all I have for the npc managing so far was in the top post haha, I still gotta code the rest such as mounting

white epoch
#

and it's the same command you used in the gif?

prisma fiber
#

Yeah

white epoch
#

what about using waypoints, and assigning them to each npc randomly?

prisma fiber
#

Yeah I'll likely have to do that if I didn't get an answer to the topic question. It's all good if it's not known easily as to what the radius argument does

prisma fiber
#

Gunna close this as I'm handling it a little differently. I'll have NPCs spawn at the doorway of the restaurant at intervals and you'll have to click on them to select the npc. Then you walk to a table and right click the table to seat the NPC at a random available seat at that table. The NPC will then pathfind walk to the table then use a mount for that random selected seat and we'll go from there!