www.ClassicTW.com
https://mail.black-squirrel.com/

Pod Kill Counter thingy (with respect to tournament)
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21614
Page 1 of 1

Author:  LoneStar [ Sat Feb 28, 2009 2:22 am ]
Post subject:  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 2153 times ]

Author:  Runaway Proton [ Tue Mar 03, 2009 8:39 am ]
Post subject:  Re: Pod Kill Counter thingy (with respect to tournament)

This looks helpful to tournament sysops, thanks LS!

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/