Elementium Sign in
Contents

Plugins · Check

NPC exists

Whether an NPC with that name is in the world.

Basic plan m.npc.exists

In a flow

“When the server starts → If NPC exists: guide is not → Create an NPC.”

When the server starts → If NPC exists: guide is not → Create an NPC.

What it does

Whether an NPC with that name is in the world. It's a check: put it in an If, and the flow goes one way when it's true and the other when it isn't. Find it under Plugins in the palette.

When to use it

Use it when the flow needs to: whether an NPC with that name is in the world.

When not to

To pick between more than two outcomes, Switch or Random reads better than a chain of checks.

Typical wiring

Often next

Related in Plugins

Wires and sockets · Data values · Plans