Indiana Council Member
Joined: 06.12.2004 Posts: 867 | Posted: 31 Jan 2006 17:44 Subject: Track kills Here's a little script to count things you've killed for MushClient (VBScript).
Just use KILLS to see what you've killed .. can get spammy in time -shrug- oh well.
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^You have slain ?a?n? (.*?)\.$|^You have slain the (.*?)\.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>dim kill, whatk
whatk = Replace ("%1", " ", "_"
whatk = Replace (whatk, "-", "_"
kill = World.GetVariable ("kill_" & whatk)
if isempty (kill) or isnull (kill) then
kill = 0
end if
kill = kill+1
'world.note "killed_%1"
World.SetVariable "kill_" & whatk, kill</send>
</trigger>
</triggers>
<aliases>
<alias
match="kills"
enabled="y"
send_to="12"
sequence="100"
>
<send>dim varList
varList = World.GetVariableList
If Not IsEmpty (varList) Then
For Each v In varList
If InStr (v, "kill_" Then
If (Len(v)>30) then
world.note v & " = " & world.GetVariable (v)
Else
world.note v & Space (30-Len(v)) & " = " & world.GetVariable (v)
End If
End If
Next
End If</send>
</alias>
</aliases> |
Up | View profile :: Send message |
|
Arota Council Member
Joined: 11.05.2005 Posts: 1667 | Posted: 01 Feb 2006 15:17 Subject: That would be what I call a little TOO much statistic keeping...I feel weird just with a critical counter. |
Up | View profile :: Send message |
|
Yreogh Family Member
Joined: 12.12.2004 Posts: 1053 | Posted: 01 Feb 2006 15:22 Subject: I want a critical counter... |
Up | View profile :: Send message |
|
Arota Council Member
Joined: 11.05.2005 Posts: 1667 | Posted: 01 Feb 2006 15:26 Subject: Um...what client do you use? Maybe I can rig one up for you... |
Up | View profile :: Send message |
|
Yreogh Family Member
Joined: 12.12.2004 Posts: 1053 | Posted: 01 Feb 2006 15:29 Subject: See, that's the problem. No one's ever heard of it. Portal GT |
Up | View profile :: Send message |
|
Indiana Council Member
Joined: 06.12.2004 Posts: 867 | Posted: 01 Feb 2006 16:44 Subject: Heh, switch to MushClient and use my critical counter |
Up | View profile :: Send message |
|
Arota Council Member
Joined: 11.05.2005 Posts: 1667 | Posted: 01 Feb 2006 19:31 Subject: ...It sounds familiar. Probably ran across it while searching for a new client. I'll see what I can do... |
Up | View profile :: Send message |
|
Yreogh Family Member
Joined: 12.12.2004 Posts: 1053 | Posted: 01 Feb 2006 20:45 Subject: Too lazy and too stubborn. |
Up | View profile :: Send message |
|
Broly Family Member
Joined: 12.12.2004 Posts: 61 | Posted: 02 Feb 2006 12:53 Subject: OK, i've installed this portal GT thing, but i can't quite understand how you can script anything useful in it. It sends all script output to the MUD, for example if i trigger the critical hit message to increment a variable, it will send the variable's value to the MUD. Which is not good, it should make a note in the output buffer, if anything, not send it to the MUD.And i couldn't find any way to send notes to the output.
Also, i don't see any options to export triggers and variables...only aliases and macros. And it's slooow. Switch to Mush |
Up | View profile :: Send message |
|
Yreogh Family Member
Joined: 12.12.2004 Posts: 1053 | Posted: 02 Feb 2006 19:06 Subject: You lost me. But I'll take your advice. *snuffle*
|
Up | View profile :: Send message |
|
|