mIRC Home    About    Download    Register    News    Help

Print Thread
#77897 04/04/04 03:55 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
allow $!identifier to work the same as it does (because that's what most people use), but make it so $($identifer,0) will not be evaluated in /timer


New username: hixxy
#77898 04/04/04 05:57 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
I don't know what you mean, $() works fine here...
just tried it with /timer 1 5 echo -a $($ticks,0)

#77899 04/04/04 06:00 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
//timer 1 5 echo -a $($ticks,0)


New username: hixxy
#77900 04/04/04 06:43 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
Yeah, I meant that.
//timer 1 5 echo -a $($ticks,0)
->
* Timer 1 1 time(s) 5s delay echo -a $ticks (QuakeNet)

#77901 04/04/04 06:46 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
yes, after 5 seconds it returns what $ticks actually contains instead of $ticks


New username: hixxy
#77902 04/04/04 06:46 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
$($identifier,0), $eval($identifier,0), and $!identifier all work alike for me (although technically $() shouldn't work at all since it says it will only work in a match-text section of an event). That is, they will all output the value of $ticks at the moment the timer finishes, not when it starts. If you wanted the string '$ticks' to be output you'd have to use $!!ticks or $eval($eval($ticks, 0), 0) since $eval() and $() don't accept negative values.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard