/adid and /adialog

By ^Neptune on Sep 26, 2008

Had this idea by watching a few youtube vids with that typewriter style text on them (with moviemaker).
A few kudos go to Typo for helping me figure out why the text was being input backwards (really weird error lol).

In case you're wondering, /adid or /adialog stands for animated did or animated dialog.

Anyways, what this does is input text in an animated style way. In effect, it looks as if someone is manually typing it into what you specify. To be used with dialogs only.

Put this in your aliases section.

/adid:
Usage:

/adid dialogname dialogid text

Example:

/adid mp3 7 I am now listening to some funky music!

/adialog does the exact same thing but with dialog titles.

Usage:

/adialog dialogname text

Example:

/adialog mydialog I am viewing a dialog!
adid {
  var %x = 1, %y = 50
  while (%x <= $len($3-)) {
    .timer -m 1 %y did -a $1 $2 $replace($right($left($3-,%x),%x),$chr(32),$chr(160))
    inc %x
    inc %y 50
  }
}

adialog {
  var %x = 1, %y = 50
  while (%x <= $len($2-)) {
    .timer -m 1 %y dialog -t $1 $replace($left($2-,%x),$chr(32),$chr(160))
    inc %x
    inc %y 50
  }
}

Comments

Sign in to comment.
^Neptune   -  Sep 27, 2008

Thanks for pointing that out, although I've never had that problem.

Fixed anyways.

 Respond  
Scakk   -  Sep 27, 2008

The /adid one does not work as when you use it on either normal text or text on a button all that is done is it does each letter and all that is left is the last letter of what you entered. If I chose "This is cool" for it all I would get when it is done is the "l" as it resets the field each time it gets to a new character to add.

Edit: Fixed issue. Solution below.

Use this $replace in place of the one you have for the /adid one and it will work correctly.

$replace($right($left($3-,%x),%x),$chr(32),$chr(160))
 Respond  
^Neptune   -  Sep 26, 2008

Aw, only one comment? And ty Typo.

 Respond  
Typo   -  Sep 26, 2008

Nice simple little codes. Not bad neptune. I'll go 7/10 even tho thats higher than every one of my scripts here except for one is rated at and they all kick the snot outta this one. lol :P

Keep it up.

 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.