DualDID

By Zmodem on Oct 29, 2008

This is a simple alias that will allow you to perform multiple /did commands on the same dname+id. I would also like to add that this snippet was requested by Neptune, so I just added it here for everyone else who may need the same feature.

Syntax:

/ddid -<DialogFlags> <Dialog Name> <Dialog ID> <Multiple|Parameters|Seperated|By|The|Vertical|Line>

Example:

/ddid -a MyCustomDLG 1 Line 1|Line 2|Line 3|More stuff here
alias ddid {
  var %c = $4-, %n = 1, %h = $gettok(%c,0,124), %e = did $1 $2 $3
  while (%n <= %h) {
    %e $gettok(%c,%n,124)
    inc %n
  }
}

Comments

Sign in to comment.
Zmodem   -  Oct 29, 2008

Sweet!

 Respond  
guest598594   -  Oct 29, 2008

If I'm understanding this right, /didtok does the exact same thing :P

Edit:

$gettok(%c,0,124)

$numtok would probably be better, that's its purpose.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.