world.SetUnseenLines

MUSHclient script function (Method) — introduced in version 5.06

Sets the number of "unseen lines" for this world

Prototype

void SetUnseenLines(long Counter)

Data type meanings

Description

Sets the number of "unseen lines" for this world's output window. The current number can be found by calling GetInfo (202).

This could be used in a trigger to make a certain type of line not "register" as new MUD output (for example, emotes about weather).

You could get the current number of unseen lines and subtract one, or just set the total number to zero.

Note that subtracting one might be safer, if there are already lines that are important preceding the uninteresting one.

If the uninteresting line is always followed by something else (like a prompt line) then you might need to subtract 2 from the count.

Lua example

SetUnseenLines (0)  -- Make zero

SetUnseenLines (GetInfo (202) - 1)  -- Subtract one

Return value

None.

Related topic

Utilities