Skip to main content

List Set Item

Runs on: Shared (backend or chatbox overlay).

Replaces the item at an index and outputs the new list. The original list is not modified. An index outside the list's range returns the list unchanged.

Inputs​

NameTypeDescription
listlistThe list to update.
indexnumberThe position to replace. 0 is the first item.
itemanyThe replacement value. The accepted type is inferred from the list's inner type.

Outputs​

NameTypeDescription
resultlistThe list with that item replaced, with the same type as the input.

Configuration​

  • From: Start or End. The end the index counts from. With End, index 0 replaces the last item.

Example​

To keep the last 3 raiders on an overlay at a fixed length, use List Set Item with Index 0 and From End to overwrite the most recent slot with the newest raider's name.