Author |
Message |
Topic: Trigger For Capturing Channel Output |
Math
Replies: 3
Views: 5067
|
Forum: zMUD General Discussion Posted: Sun May 07, 2006 1:58 am Subject: Trigger For Capturing Channel Output |
I slight change to the replace function I used improves this:
#TRIGGER {^~[ Group~: (*) ~]~: '(*)'} {#WIN Group %ansi( gray)"------------ ... |
Topic: Trigger For Capturing Channel Output |
Math
Replies: 3
Views: 5067
|
Forum: zMUD General Discussion Posted: Sat May 06, 2006 9:32 pm Subject: Trigger For Capturing Channel Output |
That worked. Thanks!
The quotes caused the syntax coloring to go away, but it still works. |
Topic: Trigger For Capturing Channel Output |
Math
Replies: 3
Views: 5067
|
Forum: zMUD General Discussion Posted: Sat May 06, 2006 12:45 pm Subject: Trigger For Capturing Channel Output |
I have a few triggers that capture messages from different channels displaying each channel in a different window. The triggers look like this:
#TRIGGER {^~[ Group~: (*) ~] ... |
Topic: #gag |
Math
Replies: 7
Views: 10014
|
Forum: zMUD General Discussion Posted: Sun Apr 30, 2006 4:07 pm Subject: #gag |
#TRIGGER {^H~:&hp M~:&mana ~<*~>} {#IF (@hp = @prev_hp AND @mana = @prev_mana) {#GAG} {#VAR prev_hp @hp;#VAR prev_mana @mana}} |
Topic: Help With A Script |
Math
Replies: 8
Views: 13986
|
Forum: zMUD General Discussion Posted: Wed Apr 26, 2006 11:34 am Subject: Help With A Script |
It will take a little time before I can do this. My scripts are fairly complex. Within the next couple of days I will do this. My workaround is working nicely though.
Thanks for taking the time to ... |
Topic: Help With A Script |
Math
Replies: 8
Views: 13986
|
Forum: zMUD General Discussion Posted: Wed Apr 26, 2006 10:55 am Subject: Help With A Script |
Is the identifier passed on to the kk alias always one word consisting only of a-z chars? If it contains spaces, commas or other chars then must you surround the identifier with appropriate delimiters ... |
Topic: Help With A Script |
Math
Replies: 8
Views: 13986
|
Forum: zMUD General Discussion Posted: Wed Apr 26, 2006 10:52 am Subject: Help With A Script |
I have not found a way to resolve passing an array element to an alias correctly, but I did find a work around:
#ALIAS kill_next {
#VAR index 0
#VAR mobs 0
#WHILE (@index <= %arrhigh ... |
Topic: Help With A Script |
Math
Replies: 8
Views: 13986
|
Forum: zMUD General Discussion Posted: Wed Apr 26, 2006 10:30 am Subject: This Is Starting To Look Like An Alias Bug |
To test this out, I removed my kk alias from the kill_next alias as below:
#ALIAS kill_next {
#VAR index 0
#VAR mobs 0
#WHILE (@index <= %arrhigh( mob_types)) {
... |
Topic: Help With A Script |
Math
Replies: 8
Views: 13986
|
Forum: zMUD General Discussion Posted: Wed Apr 26, 2006 10:08 am Subject: I Thought About That |
The mobs are not static. They do wander. When I slow walk into a new room, triggers are detecting the number of different mob types in a zone and updating all counts accordingly. I have triggers also ... |
Topic: Help With A Script |
Math
Replies: 8
Views: 13986
|
Forum: zMUD General Discussion Posted: Tue Apr 25, 2006 11:35 pm Subject: Help With A Script |
I am attempting to create a script to automatically kill all mobs in a single room. I track the IDs of the mobs and the counts of each type with two arrays:
#VAR mob_types %array("dog" ... |
|