goofy
Joined: 24 Mar 2008 Posts: 164
|
Posted: Fri Mar 30, 2012 3:21 am Post subject: spell cooldown timer (grayscale fading to black) for -tail |
|
|
Code: |
#class count open
#var my_attack { }
#var idle_count {0}
#var atck_count {0}
#nop count the seconds you are standing still
#nop when set as an action of "[Exits: %1]"
#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}
}
#nop this will count spell cooldown time and
#nop represent it using tail and gray scale fading
#alias {atck_count} {
#showme {You lagged for $atck_count seconds.};
#unticker atck_count_ticker;
#var atck_count 0;
#ticker atck_count_ticker {
#if {$attack_timer >= 1} {
#math attack_timer {$attack_timer - 1}
};
#if {$attack_shade >= 1 & $attack_shade <= 9} {
#line substitute variables #line log {log_attack.tt} { [0$attack_timer] <g0$attack_shade>$my_attack<088>};
#math attack_shade {0$attack_shade - $attack_fades};
};
#if {$attack_shade >= 10 & $attack_shade <= 23} {
#line substitute variables #line log {log_attack.tt} { [0$attack_timer] <g$attack_shade>$my_attack<088>};
#math attack_shade {$attack_shade - $attack_fades};
};
#if {$attack_shade == 0} {
#line substitute variables #line log {log_attack.tt} { [0$attack_timer] <g0$attack_shade>$my_attack<088>};
#var my_attack { no attack now };
};
#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;
#var attack_timer {$attack_lag};
#math attack_fades {23 / $attack_lag};
#math attack_shade {$attack_lag * $attack_fades};
#line substitute variables #line log {log_attack.tt} { [0$attack_timer] <g$attack_shade>$my_attack<088>};
atck_count;
}
#act {You conjure a cloud of yellow dust.} {
#var my_attack {You conjure a cloud of yellow dust.};
#var attack_lag 3;
#var attack_timer {$attack_lag};
#math attack_fades {23 / $attack_lag};
#math attack_shade {$attack_lag * $attack_fades};
#line substitute variables #line log {log_attack.tt} { [0$attack_timer] <g$attack_shade>$my_attack<088>};
atck_count;
}
#class count close
|
|
|