/settarget¶
Provided by a script
/lua run targetsync
/settarget. There is no one-shot form —
the script only registers the command and loops.
Syntax¶
/settarget <id>|<name>
Description¶
Relay receiver that sets
this client's own Target to match a leader's, by GameWorld entity id
with a name-based fallback. Fills a gap left by relayclicks.lua's native
click-replay, which opens a peer's Merchant/Journal/dialog window but does
not set its Target — a script reading Actor.Target() locally (e.g. a
mender check) sees nothing selected even with the window open.
Options¶
- <id>|<name> — Pipe-separated, both taken from the trailing
argument verbatim.
id— The GameWorld entity id, zone-local and shared by every client in the same zone instance. Tried first viaeq2.target_by_id(), which works on an unfocused/background window (unlike a UI click) — the state most peer boxes are actually in.name— Fallback used whenidis0or fails to resolve on this client (different zone instance, target despawned before the relay arrived, etc.), resolved viamq.TLO.Spawn[name].
Examples¶
/lua run targetsync
/settarget 123456|Thark Keycairn
/settarget 0|Thark Keycairn
Leader relaying its own current target across the group:
/dge /settarget 123456|Thark Keycairn
See also¶
- Writing a peer-relay receiver
eq2.target_by_id— the binding this relies on.