TSCNet chat supports full action capability. The following will further
explain in greater detail on how to create your own actions.
; TSCNET Chat Action Index file.
;
; This file contains the index of all available actions.
; Lines beginning with ';' are comment lines are are ignored.
; Each defined action has one line in the following format:
; <#>,<action>,<security level to use>,<Cost in time>,<Cost in Credits>
1,3RDEGREE,0,0,0
2,AROUSE,0,0,0
3,ASK,0,0,0
4,ASKCHAT,0,0,0
5,ASKOUT,0,0,0
^ ^ ^ ^ ^----- Cost in credits (Not currently Used.)
| | | |_______ Cost in minutes
| | |_________ Security Level to use
| |______________ Name of action (Maximum of 8 characters)
|__________________ Number of action. Each individual action must have it's
own number to work properly
This is the ACTION.IDX file found in your actions directory. Each action must
be on it's own line and does not have to be in alphabetical order but add's a
nicer look if they are. The first part is the action number which is stored in
the XCHAT.DAT file when an action is performed on a user. The second part is
of course the action name which can not be more than 8 characters. The third
part is the security level required to use this action. If you put 70 then
any user with a level 70 or above will be able to use that action. The forth
part is the time charged to that user when that specific action is used.
And last will be the cost in credits for an action.
Credit charges have not been fully implemented because I havn't figured out
yet how to charge the credits. The PCBoard toolkit appears to properly
substract time and therefore take credits away. So, for now the credit field
is meaningless, but I left it in anyway.
NOTE: If you run TSCNet chat on more than 1 computer be sure you have the same
action files on each machine.
Each individual action must also have a <action name>.CAF file. These files
contain what is shown to the user when that action is performed. Here is an
example of an action file.
Filename: ASK.CAF
ASK
>@X0D@NAMEFROM@ wants to ask you a question.
<@X0FSo, you want to ask @NAMETO@ a question.
|@X0E@NAMEFROM@ wants to ask @NAMETO@ a question.
The first line is the action name which must also be the name of the action
file with a .CAF extension.
A line with a ">" sign in front of it is what is sent to the user that the
action was performed on.
A line with a "<" sign in front of it is what is sent to the user performing
the action.
A line with a "|" sign in front of it is what is sent to the rest of the users
in that channel or monitoring that channel.
All PCBOARD color codes are translated in the actions. The following codes are
also used in the action files:
@NODETO@ - This will be filled in with the node the action was sent to.
@NODEFROM@ - This will be filled in with the node the action was sent from.
@NAMETO@ - This will be filled in with the Name the action was sent to.
@NAMEFROM@ - This will be filled in with the Name the action was sent from.
@CHANNEL@ - This will be filled in with the Channel number the action was
performed in.
If you want to make private action to where only the sender and sendee see
anything then just remove the line with the "|" in front of it.
FULL ANSI actions may be used as well. An example follows:
FileName: BIGROSE.CAF
BIGROSE
>@X07 @X40▀▀▀▀▀██▀▀ ▀@X07
>@X07 @X40▀▀▀▀▀▀ ▀▀ ▀▀▀▀▄▄ ▀@X07
>@X07 @X40▀ ▄██ ▄███▄▄ ▀█▄ ▀▀@X07
>@X07 @X40▀ ▄█ ▄ ██ ▄██████▀▀█▄ ▀█▄ █@X07
>@X07 @X40 ▄██▀▀█ █▄██▀██████ ▐█ █ █@X07
>@X07 @X40 ██ ▀█ ▄█ ▀████▄▄██ ▐█ █ █@X07
>@X07 @X40▄ █ █ █ ██▄▄▄██ ▐█ █▄█▀▀▀@X07
>@X07 @X40 ▀█▄ ███ ████▀▄▄▄██ ▄█▀ █@X07
>@X07 @X40▀█ █ ▀▀█▄▄██▀ ▀▀▀▀██ ▄█ █@X07
>@X07 @X40▄ ▀█▄ █▄ ▀▀██ █▄█▀ ▄█▀▄@X07
>@X07 @X40 ▀▀▀▄▄█▀█▄▄▄▄▄▄▄▄▄▀█ ▄█▀ ▄▄▄█▀▀ █@X07
>@X07 @X40▀ ▀▀▀▀▄▄▄█▄▄▄▄▄ ▀███ ██ ██ ▄@X07
>@X07 @X40▄ ▀▀▀▀███▄▄█▀▀▀▀ ▄█▀ █@X07
>@X07 @X40▄▄ ▀█▄▄▄▄▄▄▄▄█▀ ▄▄@X02 ▄@X07
>@X07 @X40▄ ▄@X20█▀▒@X40█▄▄▄▄▄ ▄██@X0A▄@X20███▀▀▀▄░@X07
>@X07 @X0A ▄▄@X40▄▄@X0A ▄@X40▄▄▄@X20█▀░░▒▓▒▒@X0A █▄ ▀▀░░░▄▀░░@X0F
>@X07 @X0A ▄▄█ ▀███ @X20▄░░▒▓▒█@X0A █▀ @X20░░▄▄▀▀░░@X02█▀@X0F
>@X07 @X0A ▀▀▀ ▀█▄ @X20█░▒▓██▀ ▀░░▀ ░▀░░░░░▄@X07
>@X07 @X0A ▀█ @X20░▒▓@X02 ▄▄▄▄▀░ ▀ ▀▀▀@X07
>@X07 @X20▀@X0A █ @X20░▒▓@X02 ▀▒░░▄ ▄ ▄ @X20▀▀▄░░░░▀@X07
>@X07 @X20▄@X0A █ @X20░▒▓@X02 ▄▄▄ ▀▄ @X20░░░▀▄░░░░@X07
>@X07 @X20░▒▓@X02 ▀▄ @X20█░░░░▀▄▄▄░▀@X07
>@X07 @X20░▒▓@X02 ▀▄ @X20▄▄░▄▄▄▀▄▀@X07
>@NAMEFROM@ just gave you a rose.
<You just gave @NAMETO@ a big rose.