Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.SetUnseenLines


Name SetUnseenLines
Type Method
Summary Sets the number of "unseen lines" for this world
Prototype void SetUnseenLines(long Counter)
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.


Note: Available in version 5.06 onwards.


Lua example
SetUnseenLines (0)  -- Make zero

SetUnseenLines (GetInfo (202) - 1)  -- Subtract one
Returns None.
Introduced in version 5.06

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.