#(flazockt) Multi mob NPC

54 messages · Page 1 of 1 (latest)

nocturne current
#

I need to make a npc that consist out of 2 mobs, they need to share their health and they need to spawn togther

pure mesaBOT
#

(flazockt) Multi mob NPC

pure mesaBOT
#

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.

distant topaz
#

before i say anything i see u typing so did u gigure it out

#

??

nocturne current
#

nah

#

im not typing

#

im waiting .-.

distant topaz
#

its literally just an on damaged event, and flagging them

#

flag the first npc with a flag containing the second noc

nocturne current
#

well one mob need to be on the other on

#

like a mount

distant topaz
#

!c mount

hybrid hearthBOT
# distant topaz !c mount
Group

entity

Syntax

mount (cancel) [<entity>|...] (<location>)

Short Description

Mounts one entity onto another.

Description

Mounts an entity onto another as though in a vehicle.
Can be used to force a player into a vehicle or to mount an entity onto another entity, for example a player onto an NPC.
If the entity(s) don't exist they will be spawned.
Accepts a location, which the entities will be teleported to on mounting.

distant topaz
#

why not just make their health a flag then??

nocturne current
#

well i use sentinel

distant topaz
#

give them a shit ton of health and just flag em with a shared health flag, when theyre damaged change the flag value

#

oh

#

uhh i got no clue on sentinel so

nocturne current
#

and i need multple of them

distant topaz
#

wanna try it first?

nocturne current
#

ok

distant topaz
#

when they spawn, flag each npc with the other one

nocturne current
#

how?

distant topaz
#

and then when eithers damaged, damage the other one too

distant topaz
#

??

#

!paste

nocturne current
#

ingame

hybrid hearthBOT
distant topaz
#

if u have one

#

bro

#

so commands??

nocturne current
#

yes

distant topaz
#

uhh so sentinels + denizen is a little weird

#

you gotta use

#

!c execute

hybrid hearthBOT
# distant topaz !c execute
Group

server

Syntax

execute [as_player/as_op/as_npc/as_server] [<Bukkit-command>] (silent)

Short Description

Executes an arbitrary server command as if the player, NPC, or server typed it in.

Description

Allows the execution of server commands through a Denizen script.
Commands can be executed as the server, as an npc, as an opped player, or as a player, as though it was typed by the respective source.

Note that you should generally avoid using 'as_op', which is only meant for very specific special cases. 'as_server' is usually a better option.

Note: do not include the slash at the start. A slash at the start will be interpreted equivalent to typing two slashes at the front in-game.

Note that...

distant topaz
#

and use it in a script

#

so try making a script to spawn in your sentinels first

nocturne current
#

ok

distant topaz
#

search around the discord for an example

#

i know drgf had a few scripts around

#

ill try to find them but im on mobile so no promises

nocturne current
#

ok

nocturne current
#

i have another question is there an repeat command that repeats until an condition is there?

#

wait found it

distant topaz
#

or a while loop

#

😭

dusk copperBOT
#
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.)

#

@nocturne current