Back in 1997 Dane saw a need for a change in the identifiers in mIRC and created the DDvars
The DDvars enable you to do fancy stuff in mIRC without having to think about scripting. The DDvars come in an alias file,
that you load into your aliases and like magic you have now added more identifiers to your copy of mIRC.
On this page you can learn how to use your new identifiers, and you will see examples of things that look complicated but in fact made easy to do with the DDvars.

Because the DDvars are identifiers, you can use them anywhere, in text files, in popups, in remotes, and in your own aliases.
In this lesson the DDvars will be used in small popups as this is maybe the easiest way to start using the identifiers

The set:

ddback ddbrick ddchan  ddchar
ddcharc ddcol ddday ddfancy
ddme ddn  ddrain ddrep
ddrnd ddtime ddvers
combining



$ddback
The $ddback identifier will return the text supplied bacward. So if you give the identifier "abcde" to work with it will return "edcba"


Syntax
$ddback(text)
text
this is the text that you want returned backward. You can either specify a text, or a variable, or another identifier.


Examples
//say $ddback(this is fun)


$ddbrick

The ddbrick is a color identifier, you can with this identifier, do all possible 2 color bricks.
Syntax
$ddbrick(col1 col2 text)
col1 - this is the first color to use on the ddbrick.
col2 - This is the second color to use on the ddbrick.
text - this is the text that you want returned in bricks. You can either specify a text, or a variable, or another identifier.

Examples
//say $ddbrick(8,4,this is fun)


//say $ddbrick(12,11,this is fun)


$ddchan

This identifier, will give the active channelname, pretty much like $active, but where the mIRC identifiers reports the channel name in a dynamic length, the ddchan will report it fixed length. this is good to if you make a popup where the design is fixed.
Syntax
$ddchan(
length,align,fillchar,charnumber)
length - What length the channel name should be reported with. if the actual channelname is longer then this
value the name of the channel will be truncated.
align - Tells if the channel name should be returned m,r,l : middle, right or left aligned.
fillchar - Tells what charater the channel name should be padded with, to fill the length specified.
charnumber - tells what position of the channelname we wantreturned. if 0 is put then, the whole channel name
will be returned.


Examples
//say $ddchan

//say $ddchan(40)

//say $ddchan(20 m ~ 0)

//say $ddchan(20 m ~ 11)


$ddchar

This identifier will return the text given, put in ascii chars. The chars will be randomly chosen between a lot of different fun
characters.
Syntax
$ddchar(text)
text
this is the text that you want returned with ascii (funny) chars. You can either specify a text, or a variable, or another identifier.

Examples
//say $ddchar(this is a test) (done 3 times)


$ddcharc

This identifier will return the text given, put in funny chars. The chars will be randomly chosen between a lot of different fun
characters. It is like the ddchar, but this identifier, will color the result.
Syntax
$ddcharc(text)
text
this is the text that you want returned with funny chars. You can either specify a text, or a variable, or another identifier.

Examples
//say $ddcharc(this is a test) (done 3 times)


$ddcol

This identifier is the most powerful color identifier around, and experimenting with the use will continue to amaze, because only the fantasy sets the limits. At first it might look tricky and confusing but, keep at it and you will have a great tool.
Syntax
$ddcol(
col1,col2,text)
col1 - this is the 1'st color string. A color string is build with one or more colors. The number of colors in the color
string is not limited, and each color must be seperated by "|". The 1'st color string describes the forground color scheme.


col2 - this is the 2'nd color string. A color string is build with one or more colors. The number of colors in the color
string is not limited, and each color must be seperated by "|". The 2'nd color string describes the background color scheme.


text - this is the text that you want returned using the color schemes you did set up in the col1 and col2 parameter.

Examples
//say $ddcol(7|8,5|4,this is a test)

//say $ddcol(7|8|7|10|11|10,5|4|5|2|12|2,this is a test)

//say $ddcol(4|8|11|9,1|14,this is a test)

//say $ddcol(13|13|9,1,this is a test)


$ddday

This identifier, will give the active weekday, pretty much like $day, but where the mIRC identifiers reports the day name in a
dynamic length, the $ddday will report it as a fixed length. This is good to use if you make a popup where the design is fixed.
Syntax
$ddday(
length,align,fillchar,charnumber)
length - What length the day name should be reported with. if the actual day name is longer then this value, the
name of the day will be truncated.
align - Tells if the day name should be returned m,r,l :middle, right or left aligned.
fillchar - Tells what charater the day name should be padded with, to fill the length specified.
charnumber - tells what position of the channelname we want returned. if 0 is put then, the whole channel name
will be returned.

Examples
//say $ddday

//say $ddday(20 m ~ 0)

//say $ddday(20 m ~ 11)


$ddfancy

This identifier will return the text given, put in funny chars. It is like the ddchar, but is kept in here for older versions.
Syntax
$ddfancy(text)
text
this is the text that you want returned with funny chars. You can either specify a text, or a variable, or another identifier.

Examples
//say $ddfancy(this is a test)


$ddme

This identifier is like $me, but where mirc returns the value with the length of the content, the $ddme will return a fixed length.
Syntax
$ddme(
length,align,fillchar,charnumber)
length - What length the $me should be reported with. if the actual $me is longer then this value the name of the
$me will be truncated.
align - Tells if the $me should be returned m,r,l : middle, right or left aligned.
fillchar - Tells what charater the $me name should be padded with, to fill the length specified.
charnumber - tells what position of the $me we want returned. if 0 is put then, the whole $me will be returned.

Examples
//say $ddme

//say $ddme(12 m - 0)

//say $ddme(12 m - 7)


$ddn

This identifier will return a selected nick, with a fixed length. The identifier, can return the nick of any number of selected nicks.
Syntax
$ddn(
length,align,nick number,fillchar,charnumber)
length - What length the nick name should be reported with. if the actual nick name is longer then this
value the name of the nick will be truncated.
align - Tells if the nick name should be returned m,r,l : middle, right or left aligned.
nick number - Tells what number of the selected nicks should be returned. Normally 1 for the first selected nick.
fillchar - Tells what charater the nick name should be padded with, to fill the length specified.
charnumber - tells what position of the nick name we want returned. if 0 is put then, the whole nick name will
be returned.

Examples
//say $ddn

//say $ddn(12 m 1 ~ 0)

//say $ddn(12 l 1 ~ 0)

//say $ddn(12 l 1 ~ 4)


$ddrain

This identifier is a color identifier, and will color the text given in 1 of 8 available color schemes.
Syntax
$ddrain(
scheme,text)
scheme - This is the scheme to use, it can be from 1 to 8.
text - this is the text that you want returned in colors

Examples
//say $ddrain(1 this is a testline) (all 8 schemes)


$ddrep

This is a very special identifier, and only works using PPPlayer. Read about it in the help file in PoPedit. Basically it will allow you to create multinick greeters, using only one nickline. the $ddrep will then produce X number of lines so all the selected nicks are used. but this feature only works with PPPlayer.
Syntax
$ddrep

Examples
The examples for the $ddrep can be found in the help file for PoPedit.



$ddrnd

This identifier is a color identifier, and will color the text given in 1 of 2 available schemes.
Syntax
$ddrnd(
scheme,text)
scheme - This is the scheme to use, it can be from 1 to 2.
text - this is the text that you want returned in colors

Examples
//say $ddrnd(2 this is a test)

$ddtime

This identifier will return the current time in US format, and in a fixed length.
Syntax
$ddtime

Examples
//say $ddtime


$ddvers

This identifier will return the current version of ddvar file. (from version 6)
Syntax
$ddvers

Examples
//say $ddvers


Combining

The $ddvar's can be combined, and this makes them even more powerful, then when they are used stand-a-lone.

When combinning them there are a few rules that one has to remember, or else the outcome can look really bad.

1) Only use 1 coloring ddvar at a time.
2) use the coloring ddvar as the outer most ddvar


Confused ???

Well you could put like $ddfancy($ddrain(1 this is fun)) but that would look very bad, cause the fancy would ruin the coloring
stuff. The correct way to do that one would be $ddrain(1 $ddfancy(this is fun)). Now it will look right.

Below we have done a few combinations together with what the outcome would be.

Examples
//say $ddrain(1 $ddn(12 m 1 ~ 0))

//say $ddrain(1 $ddchar($ddn(12 m 1 ~ 0)))

//say $ddcol(4|13|4|9,2,$ddchar($ddn(12 m 1 ~ 0)))

//say $ddcharc($ddday)

This lesson was done by Dane and updated by rifleman

| Site Navigation | Help Navigation |