Having a problem with script

For all the help you need with Armagetron!
Post Reply
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Having a problem with script

Post by ConVicT »

Script for a countdown.

Code: Select all

 } else if ( $game_time == 139 ) { 
 	   echo "CONSOLE_MESSAGE 0x0000ffServer speed-up in0xffff00:\n";
       } else if ( $game_time == 140 ) { 
 	   echo "CONSOLE_MESSAGE 0xffff0010\n";
       } else if ( $game_time == 141 ) { 
 	   echo "CONSOLE_MESSAGE 0xffdd009\n";
       } else if ( $game_time == 142 ) { 
 	   echo "CONSOLE_MESSAGE 0xffbb008\n";
       } else if ( $game_time == 143 ) { 
 	   echo "CONSOLE_MESSAGE 0xffaa007\n";
       } else if ( $game_time == 144 ) { 
 	   echo "CONSOLE_MESSAGE 0xff88006\n";
       } else if ( $game_time == 145 ) { 
 	   echo "CONSOLE_MESSAGE 0xff66005\n";
       } else if ( $game_time == 146 ) { 
 	   echo "CONSOLE_MESSAGE 0xff44004\n";
       } else if ( $game_time == 147 ) { 
 	   echo "CENTER_MESSAGE 0xff22003\n";
           echo "CONSOLE_MESSAGE 0xff22003\n";
       } else if ( $game_time == 148 ) { 
 	   echo "CENTER_MESSAGE 0xff11002\n";
           echo "CONSOLE_MESSAGE 0xff11002\n";
       } else if ( $game_time == 149 ) { 
 	   echo "CENTER_MESSAGE 0xff00001\n";
           echo "CONSOLE_MESSAGE 0xff00001\n";
       } else if ( $game_time == 150 ) { 
 	   echo "CENTER_MESSAGE \n";
       }
The problem I'm having is that when "CENTER_MESSAGE 1" is displayed, it takes around three seconds to disappear, and I want it to go away in one second.
A blank CENTER_MESSAGE works when I do it manually, but it just seems to ignore the blank one in the script.
Nelg suggested I try a colour code. That didn't work either.
Any ideas?
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Having a problem with script

Post by Light »

You could set a var to show it's showing and send an empty one when game time logs. You could even wait and do it then but then the script holds up.
User avatar
ConVicT
Shutout Match Winner
Posts: 1001
Joined: Fri Feb 17, 2012 2:33 am

Re: Having a problem with script

Post by ConVicT »

So there's no way the script can read a blank center_message to your knowledge?
Post Reply