Answers.Body: <p>This "script" is a command universal to all chess clients that run FICS, because it is a FICS command.</p>
  
  <p>alias </p>
  
  <p>Usage: alias [word [string]] </p>
  
  <p>The "alias" command sets up a command alias so that 'word' is equivalent to typing 'string'. </p>
  
  <p>PARAMETERS ---------- </p>
  
  <p>alias: If no parameter is supplied all of your aliases are displayed. word: The word for the alias. If 'string' is not supplied it lists the command associated with 'word'. string: The command string to use for the alias. </p>
  
  <p>EXTRA INFO ---------- </p>
  
  <p>In order for an alias to actually do something, the server has to process each command you type. This is what happens: </p>
  
  <ol>
  <li>If your command begins with a $, no alias substitution is done. </li>
  <li>The first word is compared against your "alias" list, looking for a match. </li>
  <li>The first word is compared against the server aliases, looking for a match. </li>
  <li>If no match is found, the word is compared against the server commands. This means you can overwrite server commands with an alias. </li>
  </ol>
  
  <p>SUBSTITUTION ------------ If the first word of your command matches an alias, it is replaced with the alias 'string'. The rest of what you type is substituted into the alias as 'parameters'. </p>
  
  <p>You can access these parameters with special characters. They all start with an $. </p>
  
  <p>$$ Replace with a $ (let's you use a '$' in the new command </p>
  
  <p>$@ Replace with all parameters typed after 'word' </p>
  
  <p>$n Replace with parameter number n </p>
  
  <p>$-n Replace with all parameters 1 through n </p>
  
  <p>$n Replace with all parameters from n onward </p>
  
  <p>$m Replace with my name </p>
  
  <p>$o Replace with my (last) opponent's name </p>
  
  <p>$p Replace with my partner's name </p>
  
  <p>$. Replace with the last person I told to </p>
  
  <p>$, Replace with the last channel I told to </p>
  
  <p>SPECIAL NOTES ------------- </p>
  
  <ul>
  <li><p>Use the "unalias" command to remove an alias. </p></li>
  <li><p>You may not create an alias for the quit command, or for the unalias command. </p></li>
  <li><p>A list of system aliases is available from the help system_alias file. </p></li>
  <li>You can not put multiple commands with one alias. </li>
  <li>Aliases are not transitional. This sequence of commands alias foo bar alias bar baz Will NOT result in foo being equivalent to baz. </li>
  </ul>
  
  <p>WARNING: Be careful to avoid using an alias that can also stand for another command on the server. For example, "fg" could be a chess move (for f-pawn X g-pawn), so don't have "fg" be an alias. For similar reasons, it would not be best to use "t" as an alias since it is already assigned as an alias for "tell". You could do so, of course; but then you would not be able to use the system alias for tell unless you unalias your alias. </p>
  
  <p>EXAMPLES -------- Some examples for useful aliases. </p>
  
  <p>alias gm say Good move! If you type 'gm' it will say 'Good move!' to your opponent. </p>
  
  <p>alias gg say Good game, $o! If you type 'gg' it will say 'Good game, !' </p>
  
  <p>alias greet it waves at $1. How are you? $2- You can type 'greet playername Enjoy dinner?' and it will shout '--> yourname waves at playername! How are you? Enjoy dinner?'. </p>
  
  <p>alias afk set busy is away for a bit Sets your busy string to 'is away for a bit' if you type 'afk' alias s1 seek 5 0 blitz f m If you type 's1' it will "seek" a 5 0 blitz game to all those who match your formula and set it to manual verification. </p>
  
  <p>alias sf seek $1 $2 f Typing 'sf 3 0' will seek a 3 0 game and your opponent must fit your formula. 'sf 2 12' will seek a 2 12 game restricted to your formula. </p>
  
  <p>alias 50 xtell 50 $@ You can now chat in channel 50 by typing in '50 whatever you want to say'. By using xtell the ',' system alias will allow fast communications to another channel. </p>
  
  <p>SEE ALSO -------- system_alias unalias </p>
  
  <p>AUTHORS ------- Created: 22 February 2002 DAV Last Modified: 30 December 2007 mhill</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-13T08:44:52.093Z
Answers.Text: How does this solve the problem of sending a canned message at the start of each game?
Answers.UserDisplayName: 11684
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-10T12:11:16.180Z
Answers.Text: I suppose that you could create an alias aaa with string 'Hello from Chicago! Let's have a nice game!", you will just have to type 'aaa' at the beginning of each game and save time and energy - although this is not fully automatic.
Answers.UserDisplayName: Evargalo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-05-12T21:31:04.003Z
Answers.LastActivityDate: 2019-12-23T18:20:20.323Z
Answers.LastEditDate: 2019-12-23T18:20:20.323Z
Answers.UserDisplayName: Jossie Calderon
Body: <p>I use Babas Chess as a client for FICS.</p>
  
  <p>I would like to have a standard tell be issued to my opponent when a game starts like "Hello from Chicago!" or whatever, but I cannot find out how to do this and FICs itself seems to have no mechanism for this either.</p>
  
  <p>Normally, I would just use the Babas Help to find the answer, but Babas is REALLY complicated and has a lot of options including scripting, so I am hoping somebody who has done it before can tell me how.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-08T19:32:25.360Z
Comments.Text: I know what a "tell" is in poker, but what is a "tell" in chess????
Comments.UserDisplayName: bof
Tags: <online-chess><babaschess>
Title: Way to make a standard tell at beginning of game in Babas Chess?
ThreadText: # Way to make a standard tell at beginning of game in Babas Chess?
  
  (Asked by: username_0 on 2017-03-15)
  
  I use Babas Chess as a client for FICS.
  
  I would like to have a standard tell be issued to my opponent when a game starts like "Hello from Chicago!" or whatever, but I cannot find out how to do this and FICs itself seems to have no mechanism for this either.
  
  Normally, I would just use the Babas Help to find the answer, but Babas is REALLY complicated and has a lot of options including scripting, so I am hoping somebody who has done it before can tell me how.
  
  **Tags:** online-chess, babaschess
  
  > **Comments:**
  > **username_1**: I know what a "tell" is in poker, but what is a "tell" in chess????  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-05-12. Score: 2
  
  This "script" is a command universal to all chess clients that run FICS, because it is a FICS command.
  
  alias
  
  Usage: alias [word [string]]
  
  The "alias" command sets up a command alias so that 'word' is equivalent to typing 'string'.
  
  PARAMETERS ----------
  
  alias: If no parameter is supplied all of your aliases are displayed. word: The word for the alias. If 'string' is not supplied it lists the command associated with 'word'. string: The command string to use for the alias.
  
  EXTRA INFO ----------
  
  In order for an alias to actually do something, the server has to process each command you type. This is what happens:
  
  1. If your command begins with a $, no alias substitution is done.
  2. The first word is compared against your "alias" list, looking for a match.
  3. The first word is compared against the server aliases, looking for a match.
  4. If no match is found, the word is compared against the server commands. This means you can overwrite server commands with an alias.
  
  SUBSTITUTION ------------ If the first word of your command matches an alias, it is replaced with the alias 'string'. The rest of what you type is substituted into the alias as 'parameters'.
  
  You can access these parameters with special characters. They all start with an $.
  
  $$ Replace with a $ (let's you use a '$' in the new command
  
  $@ Replace with all parameters typed after 'word'
  
  $n Replace with parameter number n
  
  $-n Replace with all parameters 1 through n
  
  $n Replace with all parameters from n onward
  
  $m Replace with my name
  
  $o Replace with my (last) opponent's name
  
  $p Replace with my partner's name
  
  $. Replace with the last person I told to
  
  $, Replace with the last channel I told to
  
  SPECIAL NOTES -------------
  
  * Use the "unalias" command to remove an alias.
  * You may not create an alias for the quit command, or for the unalias command.
  * A list of system aliases is available from the help system\_alias file.
  * You can not put multiple commands with one alias.
  * Aliases are not transitional. This sequence of commands alias foo bar alias bar baz Will NOT result in foo being equivalent to baz.
  
  WARNING: Be careful to avoid using an alias that can also stand for another command on the server. For example, "fg" could be a chess move (for f-pawn X g-pawn), so don't have "fg" be an alias. For similar reasons, it would not be best to use "t" as an alias since it is already assigned as an alias for "tell". You could do so, of course; but then you would not be able to use the system alias for tell unless you unalias your alias.
  
  EXAMPLES -------- Some examples for useful aliases.
  
  alias gm say Good move! If you type 'gm' it will say 'Good move!' to your opponent.
  
  alias gg say Good game, $o! If you type 'gg' it will say 'Good game, !'
  
  alias greet it waves at $1. How are you? $2- You can type 'greet playername Enjoy dinner?' and it will shout '--> yourname waves at playername! How are you? Enjoy dinner?'.
  
  alias afk set busy is away for a bit Sets your busy string to 'is away for a bit' if you type 'afk' alias s1 seek 5 0 blitz f m If you type 's1' it will "seek" a 5 0 blitz game to all those who match your formula and set it to manual verification.
  
  alias sf seek $1 $2 f Typing 'sf 3 0' will seek a 3 0 game and your opponent must fit your formula. 'sf 2 12' will seek a 2 12 game restricted to your formula.
  
  alias 50 xtell 50 $@ You can now chat in channel 50 by typing in '50 whatever you want to say'. By using xtell the ',' system alias will allow fast communications to another channel.
  
  SEE ALSO -------- system\_alias unalias
  
  AUTHORS ------- Created: 22 February 2002 DAV Last Modified: 30 December 2007 mhill
  
  > **Comments:**
  > **username_3**: How does this solve the problem of sending a canned message at the start of each game?  
  > **username_4**: I suppose that you could create an alias aaa with string 'Hello from Chicago! Let's have a nice game!", you will just have to type 'aaa' at the beginning of each game and save time and energy - although this is not fully automatic.  
  
  ---
  
  