https://wiki.tinymux.org/index.php?title=@set&feed=atom&action=history@set - Revision history2024-03-28T17:55:42ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.tinymux.org/index.php?title=@set&diff=2537&oldid=prevLuke: Fixed header typo2005-12-27T17:29:11Z<p>Fixed header typo</p>
<p><b>New page</b></p><div>[[Category:Commands]]<br />
===Usage===<br />
The '''@set''' command has several forms, each with its own use, although all uses modify an object in some way. All uses of @set require that you [[control]] the [[object]] it is used on.<br />
<br />
: @set [[object]]=[[flag]]<br />
: @set object=!flag<br />
: @set object=[[attribute]]:value<br />
: @set object/attribute=[[attribute flag]]<br />
: @set object/attribute=!attribute flag<br />
<br />
===Flags===<br />
[[Category:Flags]]<br />
The simplest form of this command is used to set flags on objects, such as ''@set me=[[VISUAL]]''. Different flags have different meanings, although some have no particular meaning of their own by default, and exist purely for testing in [[softcode]]. Check the documentation on individual flags to see what they are for. Some flags can not be set without the appropriate [[privileges]].<br />
<br />
Using the form @set object=!flag will unset the flag. Newer versions of some [[:Category:codebases|codebases]] will allows you to set and/or unset multiple flags in one go. For example, ''@set me=!VISUAL [[MYOPIC]]'' will unset the visual flag, and ''set'' the myopic flag. If you want to unset multiple flags, you need to prepend a ! to each.<br />
<br />
===Attributes===<br />
By using the @set object=attribute:value form you will set the given attribute on the given object to the specified value, much like [[ampersand|&]]attribute object=value, with the difference that @set will evaluate even when the command was received from the [[socket]], and the & form will only evaluate if it's executed by code.<br />
<br />
===Attribute flags===<br />
The @set object/attribute=attribute flag syntax is much like the one for regular flags, except it sets an [[attribute flag]] on the specified [[attribute]]. These are different from regular flags, and there are far less of them. Their effect is also limited to the attribute they're on.</div>Luke