| TinTin++ Mud Client Scripts |
|
|
| Smaug Editor |
| The following script, tested on realms of despair, tries to capture the text of a description and edit it in the editor named 'joe'. Replacing joe with your own favorite editor should be enough to get it working. Useful for olc and writing notes. Might work for other codebases as well with some adjustments. |
#nop This script is written for v1.99.7 and higher
#variable copydesc 0
#config log raw
#act {^Begin entering your text now}
{
#variable copydesc 1;
/l
}
#act {%1| %2}
{
#if {$copydesc == 2}
{
#if {"%2" != ""}
{
#line logverbatim tmp.txt %2
}
{
#line logverbatim tmp.txt { }
}
}
}
{9}
#act {^------------------$}
{
#if {$copydesc == 2}
{
#variable copydesc 0;
#system joe tmp.txt;
/c;
#textin tmp.txt;
#system rm tmp.txt;
/l
};
#if {$copydesc == 1}
{
#variable copydesc 2
}
}
#act {^Buffer is empty.}
{
#if {$copydesc == 1}
{
#variable copydesc 0;
#system joe tmp.txt;
#textin tmp.txt;
#system rm tmp.txt
}
}
|