View unanswered posts | View active topics It is currently Tue Apr 21, 2026 12:56 am



Reply to topic  [ 2 posts ] 
 Pod Kill Counter thingy (with respect to tournament) 
Author Message
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1401
Location: Canada
Unread post Pod Kill Counter thingy (with respect to tournament)
I made a little script to count pod deaths. parses out the POD in any edit (hopefully), and reads entire log.

Code:
setarray $KILLERS 30 1
getword CURRENTLINE $PROMPT 1
if ($PROMPT <> "Command") AND ($PROMPT <> "Citadel")
   halt
end
send "cc?qd**"
waiton "<A>"
setVar $TMP (CURRENTLINE & "!!@@##")
getText $TMP $POD "A> " "!!@@##"
waiton "Or you may enter any text to search for if it is 8 chars or less"
setTextLineTrigger   ONCE      :ONCE      "Daily Journal S.D."
setTExtLineTrigger   DESTRO   :DESTRO   "DESTROYED"
settextTrigger         PAUSE1   :PAUSE   "[Pause]"
settextTrigger         PAUSE2   :PAUSE   "[Press Space or Enter to continue]"
settexttrigger         done      :done      "Computer command"
pause
:ONCE
getText CURRENTLINE $DATE ".D. " "-=-="
pause
:DESTRO
setVar $TMP ("!!@@##" & CURRENTLINE)
#getwordpos $TMP $pos (#42 & #42 & #42 & " Joker " & #42 & #42 & #42)
getwordpos $TMP $pos $POD
if ($pos <> 0)
   getText $TMP $TRADER "!!@@##" "DESTROYED"
   setVar $i 1
   while ($i <= 30)
      if ($KILLERS[$i] = 0)
         setVar $KILLERS[$i] $TRADER
         add $KILLERS[$i][1] 1
         goto :_NEXT_
      elseif ($KILLERS[$i] = $TRADER)
         add $KILLERS[$i][1] 1
         goto :_NEXT_
      end
      add $i 1
   end
end
:_NEXT_
setTExtLineTrigger   DESTRO   :DESTRO   "DESTROYED"
pause

:done
killalltriggers
send "q"
waiton "<Computer deactivated>"
setVar $i 1
Echo ANSI_15 & "** THE KILL ZONE "&ANSI_12&"- "&ANSI_15&"AS OF "&ANSI_7&$DATE&"*"
while ($KILLERS[$i] <> 0)
   getlength $KILLERS[$i] $len
   setVar $PAD ""
   setvar $a 1
   while ($a <= (17 - $LEN))
      setVar $PAD ($PAD & " ")
      add $a 1
   end
   Echo "*   " & ANSI_7 & $KILLERS[$i] & $PAD & ANSI_14 & $KILLERS[$i][1]
   add $i 1
end
Echo "*"
halt
:PAUSE
killtrigger PAUSE1
killtrigger PAUSE2
send "*"
settextTrigger         PAUSE1   :PAUSE   "[Pause]"
settextTrigger         PAUSE2   :PAUSE   "[Press Space or Enter to continue]"
pause


Attachments:
File comment: Results of tournament thus far
killers.jpg
killers.jpg [ 9.14 KiB | Viewed 2150 times ]

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
Sat Feb 28, 2009 2:22 am
Profile ICQ YIM
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post Re: Pod Kill Counter thingy (with respect to tournament)
This looks helpful to tournament sysops, thanks LS!

_________________
American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them.
http://www.runawayproton.com <-- Expired
telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired
http://www.twsubspace.com <-- Expired
Teamspeak 3 50.23.212.53:4196 <-- Expired
Just a has been now.


Tue Mar 03, 2009 8:39 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 23 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.