Affects in a NEW window

Posted by Zotiel on Tue 14 Oct 2003 11:24 AM — 5 posts, 19,029 views.

#0
Is it possible for MUSHClient to sent my "affects list" to a new window and then update it periodically (say once every 30 seconds)?

Here is my log, so you can see my spell lists & what I type:
48sp 80gp 0pp 7:12 AM - ND
<260/260 hp 1127/1390 m 400/400 mv>
6795 neutral none 2924
Affects
You are affected by the following:
frenzy : modifies ac by 90 for 7 hours 20 minutes
modifies damroll by 18 for 7 hours 20 minutes
modifies hitroll by 18 for 7 hours 20 minutes
cloak of gods : permanently
fly : for 32 hours 40 minutes
invisibility : for 35 hours 40 minutes
shield : modifies ac by -37 for 34 hours 20 minutes
armor : modifies ac by -25 for 3 hours 20 minutes
giant strength : modifies strength by 10 for 13 hours 20 minutes
sanctuary : modifies none by 26 for 1 hours 20 minutes
bless : modifies saves by -14 for 33 hours 40 minutes
modifies hitroll by 14 for 33 hours 40 minutes
48sp 80gp 0pp 7:12 AM - ND
<260/260 hp 1127/1390 m 400/400 mv>
6795 neutral none 2924

My Prompt:
48sp 80gp 0pp 7:12 AM - ND
<260/260 hp 1127/1390 m 400/400 mv>
6795 neutral none 2924

The Command:
Affects

Output:
You are affected by the following:
Blah, blah, blah
#1
I tried to send it all to notepad in several ways...

I tried to trigger off of
* : modifies *
and
* : for *
then sending %0 from both to notepad

it opens up seperate notepads for each type, and skips the extra lines in frenzy.

It opens then under the name I gave for label, and I can not tell them to all have the same label.

This weekend I'll try to look up scripting (I found SendToNotepad, that might work)...though, you can prolly expect me to expand my question into that realm.

I'll also be looking into sending WHO to a new window (so I can keep track of my affects & WHO without having to add a timer or trigger that will spam my main window. Once I can get it into another window I'll likely want to shorten things down a bit...as in changing
"fly : for 32 hours 40 minutes"
to
fly : 32h 40m




USA #2
Try using AppendToNotepad instead. The others assume you want to open a new one or erase the previous contents I thing.
#3
but how do I get the...

You are affected by the following:
frenzy : modifies ac by 90 for 7 hours 20 minutes
modifies damroll by 18 for 7 hours 20 minutes
modifies hitroll by 18 for 7 hours 20 minutes
cloak of gods : permanently
fly : for 32 hours 40 minutes
invisibility : for 35 hours 40 minutes
shield : modifies ac by -37 for 34 hours 20 minutes
armor : modifies ac by -25 for 3 hours 20 minutes
giant strength : modifies strength by 10 for 13 hours 20 minutes
sanctuary : modifies none by 26 for 1 hours 20 minutes
bless : modifies saves by -14 for 33 hours 40 minutes
modifies hitroll by 14 for 33 hours 40 minutes

...to go to the new window?
Australia Forum Administrator #4
What you want is about 3 triggers - one to start the list, one to capture the contents, and one to end it.

eg.

Match: You are affected by the following:
Send (to script): world.EnableTrigger "catch_affects", 1

Match: *
Send (append to notepad): %0
Label: catch_affects

Match: <*>*
Send (to script): world.EnableTrigger "catch_affects", 0

The essence of this is that the first trigger enables the second one, which then sends everything to the notepad (appending it) until something is received that turns it off (eg. a prompt).

To have this happen every 30 seconds, make a timer that sends "affects" every 30 seconds.

You may want to set those three triggers to "omit from output" to stop cluttering up your main screen.