contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif TinTin #read command

This command will read a file of TinTin commands, executing each command in sequence. The parameter should be the name of the file to read, enclosed in curly braces.

Note: It is very important to enclose the file name in curly braces. If you don’t, then the backslashes in the path will be interpreted as character escapes.

The new command character will become whatever is the first character in the file. If your file starts with anything other than a command character, then place a nop command at the beginning of the file, like this:

.nop This sets the command character to a period (.)

look

.alias {smile} {emote smiles slowly.}

.action {You are dying} {flee} {0}

If no path is specified, the file will be stored in the same directory as the Pueblo executable. If no extension is specified, then the extension ‘.txt’ will be assumed.

Note that the file can consist of TinTin commands and world commands, interchangeably. The only rule is that the file must start with a TinTin command, which may be #nop.

Example

The following code will read in a file of commands:

#read {c:\bin\pueblo\AA_macros.txt}

Also see

#write