#(baileyc889) Question about event switches

11 messages · Page 1 of 1 (latest)

bright marten
#

When I use a switch in an event, how do I return the switches entry as a tag?

For example:
on player teleports in :Some_area*:

What tag returns the area tag?

zenith stormBOT
#

(baileyc889) Question about event switches

zenith stormBOT
#

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.

bitter grail
#

There is no catchall way to do this

#

!e player teleports

forest wigeonBOT
bitter grail
#

!e entity teleports

forest wigeonBOT
# bitter grail !e entity teleports
Group

Entity

Event Lines

entity teleports <entity> teleports

Switches

cause:<cause> to only process the event when it came from a specified cause.

Triggers

when an entity teleports.

Has Player

when the entity being teleported is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

when the entity being teleported is an NPC.

Context

<context.entity> returns the EntityTag.
<context.origin> returns the LocationTag the entity teleported from.
<context.destination> returns the LocationTag the entity teleported to.
<context.cause> returns an ElementTag of the teleport cause - see !language teleport cause for causes.

Determine

"ORIGIN:<LocationTag>" to change the location the entity teleported from.
"DESTINATION:<LocationTag>" to change the location the entity teleports to.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

bitter grail
#

^ grab areas from origin or destination as appropriate

bright marten
#

Can do. Wasn’t sure if the switch passed anything along