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

logging <g23>

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



Joined: 24 Mar 2008
Posts: 72

PostPosted: Wed Mar 28, 2012 3:28 am    Post subject: logging <g23> Reply with quote

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
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3281

PostPosted: Thu Mar 29, 2012 6:29 pm    Post subject: Reply with quote

Have you tried the following?

Code:

            #line substitute variables #line log {log_attack.tt} {    <g$attack_shade>$my_attack back2};
Back to top
View user's profile Send private message Send e-mail
goofy



Joined: 24 Mar 2008
Posts: 72

PostPosted: Thu Mar 29, 2012 8:37 pm    Post subject: Reply with quote

awesome, it seems to be working! thanks Scandum
Back to top
View user's profile Send private message
goofy



Joined: 24 Mar 2008
Posts: 72

PostPosted: Mon Aug 06, 2012 5:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3281

PostPosted: Mon Aug 06, 2012 6:41 pm    Post subject: Reply with quote

You need a more recent version for those options.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help 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