Author |
Message |
Topic: Syntax editor & wildcards in list triggers |
Valint
Replies: 0
Views: 2651
|
Forum: zMUD General Discussion Posted: Sat Jun 11, 2005 1:58 pm Subject: Syntax editor & wildcards in list triggers |
A minor bug that's been around since we gained the ability to put wildcards in triggers of the type {a|b|c}:
Even though it's acceptable syntax for a trigger to be, say, #TR {^You see a {red|blue|% ... |
Topic: Trouble Connecting to Gemstone IV |
Valint
Replies: 7
Views: 11927
|
Forum: zMUD General Discussion Posted: Tue Mar 16, 2004 7:07 am Subject: Trouble Connecting to Gemstone IV |
You might also try EACCESS.PLAY.NET|GS3. For a while, |GS4 was going to the beta test server (no longer active), while |GS3 was going to the actual Gemstone server.
I don't know if that is still t ... |
Topic: Capturing Raw MUD Output |
Valint
Replies: 11
Views: 16261
|
Forum: zMUD General Discussion Posted: Sat Feb 28, 2004 8:36 pm Subject: Capturing Raw MUD Output |
> #TRIGGER {{a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z}} {#WIN GSL {%1 %gsl( %1)}} "" {gsl|case}
Is there a reason not to just use som ... |
Topic: GSL codes |
Valint
Replies: 2
Views: 3927
|
Forum: zMUD General Discussion Posted: Fri Feb 20, 2004 7:14 am Subject: GSL codes |
%ismember is for items in lists, not portions of strings. You want %pos, e.g.,
#TRIGGER {P} {#IF (%pos( N, %gsl( P))) {#VAR stalk 1} {#VAR stalk 0}} "" {gsl|case}
There's a fairly comprehensive ... |
Topic: Alias &/or Trigger "classes" |
Valint
Replies: 2
Views: 4378
|
Forum: zMUD General Discussion Posted: Thu Feb 12, 2004 9:02 pm Subject: Alias &/or Trigger "classes" |
There are a couple of different ways you can do this.
One is to split the triggers up into different classes. Another is to set variables for each character, and check them during execution of a t ... |
Topic: sleep or something like it? |
Valint
Replies: 2
Views: 4063
|
Forum: zMUD General Discussion Posted: Tue Feb 10, 2004 7:03 am Subject: sleep or something like it? |
There is the #wait command, e.g.,
#SAY First line
#WAIT 5000
#SAY Second line
will pause five seconds between those two commands.
However, #WAIT has its own set of problems, and is generally ... |
Topic: Gagging without creating multiple prompts |
Valint
Replies: 6
Views: 7214
|
Forum: zMUD General Discussion Posted: Mon Feb 09, 2004 7:38 pm Subject: Gagging without creating multiple prompts |
Sure, but the problem is that there's not *always* a prompt before or after the gagged line--if there's a lot going on, there might be a few lines of text sent between prompts, in which case I don't w ... |
Topic: Gagging without creating multiple prompts |
Valint
Replies: 6
Views: 7214
|
Forum: zMUD General Discussion Posted: Sun Feb 08, 2004 7:35 am Subject: Gagging without creating multiple prompts |
> does your prompt contain the ">" ?
Let me explain further:
The text displayed without any gagging:
* Joe just joined the adventure
>
* John returns home from a hard day of adve ... |
Topic: IF and conditional status |
Valint
Replies: 6
Views: 8683
|
Forum: zMUD General Discussion Posted: Sat Feb 07, 2004 11:42 pm Subject: IF and conditional status |
If you have other triggers which change the statequilibrium variable as needed, you could use a #TEMP trigger, e.g.:
#ALIAS sh {#IF (@statequilibrium) {get arrow from quiver;nock arrow on bow;shoot ... |
Topic: Gagging without creating multiple prompts |
Valint
Replies: 6
Views: 7214
|
Forum: zMUD General Discussion Posted: Sat Feb 07, 2004 11:26 pm Subject: Gagging without creating multiple prompts |
My dilemma is one that I'm sure has come up before, but after trying a number of different methods without solving it, I'd thought I see if I were overlooking something basic.
The problem is gaggin ... |
Topic: lil #temp help please? |
Valint
Replies: 3
Views: 5019
|
Forum: zMUD General Discussion Posted: Wed Feb 04, 2004 7:27 pm Subject: lil #temp help please? |
As a separate issue, I recommend generally naming temp triggers. Why? It stops you from potentially ending up with multiple temp triggers all going off at once.
For example, in the above situat ... |
Topic: Paths and #slow walking |
Valint
Replies: 2
Views: 5251
|
Forum: zMUD General Discussion Posted: Wed Feb 04, 2004 7:21 pm Subject: Paths and #slow walking |
#STOP is broken in 6.67.
If you're looking to slow down the movement, I'd suggest using alarms, e.g., instead of #TR {You see exits} {#OK} try #TR {You see exits} {#ALARM +0.5 {#OK}}
If you need ... |
Topic: Weird zMUD error |
Valint
Replies: 6
Views: 5452
|
Forum: zMUD General Discussion Posted: Tue Feb 03, 2004 9:03 pm Subject: Weird zMUD error |
I ran into a similar problem, where the culprit was Zmud running out of memory.
This could occur in at least one of two ways: A faulty process taking up 99% of system resources, leaving nothing for ... |
Topic: Cannot get #IF command to work.... |
Valint
Replies: 18
Views: 21651
|
Forum: zMUD General Discussion Posted: Fri Jan 30, 2004 3:16 pm Subject: Cannot get #IF command to work.... |
Try:
#TRIGGER {HP:%s&%dHP} {#IF (@HP<45) {get @food;eat @food}} "" {nocr|prompt}
The last set of options defines this as a prompt trigger, not waiting for a newline character.
Depending on ... |
Topic: Stripping unwanted words, punctuation |
Valint
Replies: 4
Views: 4587
|
Forum: zMUD General Discussion Posted: Fri Jan 30, 2004 2:01 am Subject: Stripping unwanted words, punctuation |
> also if I just want the right most word in each string item, is this possible as well?
One way to do so would be this, though there are likely more elegant ways out there:
#LOOP %numitems( @l ... |
Topic: Some sort of Coding error? (me, zMUD?) |
Valint
Replies: 5
Views: 5737
|
Forum: zMUD General Discussion Posted: Wed Jan 28, 2004 3:42 pm Subject: Some sort of Coding error? (me, zMUD?) |
This seems the longest way possible. Is there a reason not to use something like:
#TRIG {Roundtime: (%d)} {#CO red,bold;#VAR blah %1;#ALARM +@blah {a1}}
#AL a1 {#IF (@countwaiting < 1) {#VAR c ... |
Topic: Saving multiple lines to a var |
Valint
Replies: 6
Views: 6503
|
Forum: zMUD General Discussion Posted: Tue Jan 27, 2004 10:13 pm Subject: Saving multiple lines to a var |
You might find the section on advanced triggers helpful <http://www.zuggsoft.com/library/trigadv.htm>
What you're looking for is something along the lines of:
#TRIG invTrig {backpack ~(used~ ... |
Topic: Multiple line triggers |
Valint
Replies: 3
Views: 5285
|
Forum: zMUD General Discussion Posted: Tue Jan 27, 2004 4:51 pm Subject: Multiple line triggers |
Text wrapped by Zmud is not considered multiple lines, i.e., assuming appropriate settings, the mud is likely to send "You look ... towards you!" all as one line, which is then word-wrapped by Zmud.
... |
Topic: Some sort of Coding error? (me, zMUD?) |
Valint
Replies: 5
Views: 5737
|
Forum: zMUD General Discussion Posted: Tue Jan 27, 2004 4:44 pm Subject: Some sort of Coding error? (me, zMUD?) |
Without knowing where these variables come from, or what is triggering the above, it's tough to say.
I'm also not sure of what the problem is. An alarm of the type #ALARM +X {blah} is *supposed* t ... |
Topic: %match and list variables |
Valint
Replies: 2
Views: 3693
|
Forum: zMUD General Discussion Posted: Mon Jan 26, 2004 7:25 pm Subject: %match and list variables |
This looks like I'm just not finding the right syntax instead of being a bug, so posting this here instead of the beta forum.
I'm trying to use %match for a trigger pattern involving a list variabl ... |
Topic: Lines without line feeds |
Valint
Replies: 2
Views: 4195
|
Forum: zMUD General Discussion Posted: Sun Jan 25, 2004 5:46 pm Subject: Lines without line feeds |
In Gemstone, I'm having a problem with lines not always being preceded with line feeds, which means that I get text occasionally appearing on the same line as my prompt, e.g.,
>
Joe just arrive ... |
Topic: Using trigger types with gsl triggers |
Valint
Replies: 2
Views: 4058
|
Forum: zMUD General Discussion Posted: Sun Jan 11, 2004 5:01 am Subject: Using trigger types with gsl triggers |
Any suggestions on an alternate way to accomplish this?
Here's my attempt, but it seems a bit inelegant:
#TRIGGER "pulseTrig" {r} {#T+ pulsefailsafeTrig} {gsl}
#COND {r} {#T- pulsefailsafeTrig} { ... |
Topic: Using trigger types with gsl triggers |
Valint
Replies: 2
Views: 4058
|
Forum: zMUD General Discussion Posted: Fri Jan 09, 2004 7:04 am Subject: Using trigger types with gsl triggers |
I can't seem to find a way to use trigger type options with gsl triggers, and was hoping someone could suggest a way.
Here's the issue:
In Gemstone, the GSr code is sent at two types: when field e ... |
Topic: Sorting woes (numbers and databases) |
Valint
Replies: 5
Views: 7291
|
Forum: zMUD General Discussion Posted: Tue Dec 30, 2003 8:54 pm Subject: Sorting woes (numbers and databases) |
> Valint, is your alias actually working?
Yes. The alias does, however, have some added linefeeds for readability, so you will have to edit it slightly to remove those extra spaces before cutti ... |
Topic: Sorting woes (numbers and databases) |
Valint
Replies: 5
Views: 7291
|
Forum: zMUD General Discussion Posted: Thu Dec 04, 2003 10:27 pm Subject: Sorting woes (numbers and databases) |
Occasionally, I will want to sort numbers as numbers, rather than alphabetically as text, e.g., I want the sorted list to be 1|3|10 not 1|10|3. While I created an alias to do so, this seems a bit clu ... |
|