TinTin++ Mud Client Manual

Command: #local {variable name} {text to fill variable}

         The local command sets a local variable. Unlike a regular variable
         a local variable will only stay in memory for the duration of the
         event that created it. They are accessed in the same way as a
         regular variable.

         Commands that store information to a variable will use a local variable
         if it exists.

         Avoid setting the result variable as local in a function. Similarly,
         it is best to avoid setting a local variable that is identical to an
         existing regular variable.

Example: #alias {swap} {#local x %0;#replace x {e} {u};#show $x}

Comment: You can remove a local variable with the #unlocal command.

Related: format, function, math, replace, script and variable.