| View previous topic :: View next topic |
| Author |
Message |
goofy
Joined: 24 Mar 2008 Posts: 72
|
Posted: Wed Mar 28, 2012 3:28 am Post subject: logging <g23> |
|
|
First - the idea behind this this script is that when I cast a spell
the script shows me the spell message with -tail command
the script fades this message once per second to zero making
spell message disappear at the time when spell lag is complete.
I am attempting to use
command:
line log {filename} { string}
with <g23> - <g00>
it doesn't seem to be working. is this idea doomed?
-edit I've realized I can use bold white, bold gray, regular gray to black
and create a gray scale fade affect using the <138> color format
I'm still curious though if there is a way to use the <g00> format
| Code: |
#nop count.tt
#var my_attack { }
#alias {idle_count} {
#showme {You were idle $idle_count seconds.};
#unticker idle_count_ticker;
#var idle_count 0;
#ticker idle_count_ticker {#math idle_count {$idle_count + 1}} {1}
}
#alias {atck_count} {
#var atck_count 0;
#showme {You lagged for $atck_count seconds.};
#ticker atck_count_ticker {
#if {$attack_shade >= 1 & $attack_shade <= 9} {
#line log {log_attack.tt} { <g0$attack_shade>$my_attack back1};
#math attack_shade {0$attack_shade - $attack_lag};
};
#if {$attack_shade >= 10 & $attack_shade <= 23} {
#line log {log_attack.tt} { <g$attack_shade>$my_attack back2};
#math attack_shade {$attack_shade - $attack_lag};
};
#if {$attack_shade < 1} {
#line log {log_attack.tt} { <g0$attack_shade>$my_attack back3};
#var my_attack { no attack now };
#unticker {atck_count_ticker}
};
#math atck_count {$atck_count + 1};
} {1};
}
#act {You create a flaming arrow and send it streaking towards %1} {
#var my_attack {You create a flaming arrow and send it streaking towards %1};
#var attack_lag 4;
#math attack_fades {23 / $attack_lag};
#math attack_shade {$attack_lag * $attack_fades};
atck_count;
}
#act {You conjure a cloud of yellow dust.} {
#var my_attack {You conjure a cloud of yellow dust.};
#var attack_lag 4;
#math attack_fades {23 / $attack_lag};
#math attack_shade {$attack_lag * $attack_fades};
atck_count;
}
|
|
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Thu Mar 29, 2012 6:29 pm Post subject: |
|
|
Have you tried the following?
| Code: |
#line substitute variables #line log {log_attack.tt} { <g$attack_shade>$my_attack back2};
|
|
|
| Back to top |
|
 |
goofy
Joined: 24 Mar 2008 Posts: 72
|
Posted: Thu Mar 29, 2012 8:37 pm Post subject: |
|
|
| awesome, it seems to be working! thanks Scandum |
|
| Back to top |
|
 |
goofy
Joined: 24 Mar 2008 Posts: 72
|
Posted: Mon Aug 06, 2012 5:23 am Post subject: |
|
|
I can't get this to work now.
I'm using tt++ 2.00.1 maybe its old version.
here is error message:
| Code: |
#SYNTAX: #LINE {GAG|LOG} {argument}.
#SYNTAX: #LINE {GAG|LOG} {argument}.
#SYNTAX: #LINE {GAG|LOG} {argument}.
#SYNTAX: #LINE {GAG|LOG} {argument}.
#SYNTAX: #LINE {GAG|LOG} {argument}.
|
|
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Mon Aug 06, 2012 6:41 pm Post subject: |
|
|
| You need a more recent version for those options. |
|
| Back to top |
|
 |
|