Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Affects in a NEW window
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zotiel
(14 posts) Bio
|
Date
| Tue 14 Oct 2003 11:24 AM (UTC) |
Message
| 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
| Top |
|
Posted by
| Zotiel
(14 posts) Bio
|
Date
| Reply #1 on Fri 17 Oct 2003 11:20 AM (UTC) |
Message
| 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
| Top |
|
Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
Date
| Reply #2 on Fri 17 Oct 2003 08:14 PM (UTC) |
Message
| Try using AppendToNotepad instead. The others assume you want to open a new one or erase the previous contents I thing. | Top |
|
Posted by
| Zotiel
(14 posts) Bio
|
Date
| Reply #3 on Wed 29 Oct 2003 11:13 AM (UTC) |
Message
| 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? | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #4 on Wed 29 Oct 2003 09:11 PM (UTC) |
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,563 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top