Entangle
Activate Prompt Entanglement and perform actions on a slot using prompts from another.
Syntax
Activate PE
While the Cursor Glitch is active, you can switch tabs in groups of 3 to keep the glitch active. Therefore, conceptually, when you activate a slot, all slots that are 3 tabs apart can be considered activated as well.
This action is simulated by the entangle
command.
# Targets the Pot Lid, and activates that slot, as well as all slots that
# are 3 tabs apart
entangle pot-lid
While a slot is activated, you will see a “Link” icon next to it.
If a slot that’s supposed to be activated does’t exist in a tab (i.e the tab doesn’t have enough items), there will be a phantom slot displayed in that location when in Tabbed View. This is only a visual effect of the simulator.
The effect of the activation will last until the inventory is closed. You can also
use another entangle
command to change which slot is activated.
Targeting an Item
The second step to using PE is to select a target item that will receive the prompt.
The :targeting
annotation is used to do that.
# If the item is in an activated slot, you can use the name to select it
:targeting apple
# You can also select the slot directly
# This is useful if you are targeting an empty slot (which can't be selected
# by item name, since there's no item there)
# Note that specifying the first item directly will not work, if the activated
# slot is not in row 1 and col 1.
:targeting <empty>[category=material, tab=1, row=1, col=3]
# ^ the name is ignored while targeting a slot directly, so it
# doesn't matter what you put here
:targeting
currently also searches slots that are not activated.
If there are multiple matches, you might need to use a Position Property
to specify the activated slot.
Finally, in the next command after :targeting
, you can perform
an action on a PE-enabled slot. If the target item can be reached by the item
in the action, the action will be performed on the target item instead.
entangle roasted-endura-carrot :targeting roasted-endura-carrot
drop pot-lid # will hold the roasted endura carrot
Since it can be redundant to activate, then target the same item,
entangle
will also target the item by default.
The command above can be shortened as
entangle roasted-endura-carrot
drop pot-lid # will hold the roasted endura carrot
However, sometimes it might be cleared to write it as entangle
then :targeting
.
For example, during speedrun, it’s usually faster to entangle
the source item, to skip resetting the prompt, which means the item to setup
the entangle
is different from the item to target.
However, it’s up to your preference how to write the command.
The effect of :targeting
will only last until the next command,
but you can use multiple :targeting
within the same entangle