TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

spell cooldown timer (grayscale fading to black) for -tail

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Finished Scripts
View previous topic :: View next topic  
Author Message
goofy



Joined: 24 Mar 2008
Posts: 164

PostPosted: Fri Mar 30, 2012 3:21 am    Post subject: spell cooldown timer (grayscale fading to black) for -tail Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Finished Scripts All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group