Author |
Message |
Topic: databases |
Atreides_096
Replies: 4
Views: 10190
|
Forum: zMUD General Discussion Posted: Tue Nov 07, 2006 10:22 am Subject: databases |
Try this:
#TRIGGER {^You touch * to a quest card, and * vanishes!} {
#addkey QuestVar Qmob %prompt( %db( @QuestVar, Qmob), "Enter the name of the qmob")
... |
Topic: help w/ triggers |
Atreides_096
Replies: 1
Views: 5652
|
Forum: zMUD General Discussion Posted: Thu Nov 02, 2006 7:17 am Subject: help w/ triggers |
Well this is untested.. and some of this could definitely be written much better in perl... but just as a quick throw-together...
#CLASS {botcity}
#va MobsInRoom 0 0 {botcity} ... |
Topic: #alarm not firing |
Atreides_096
Replies: 4
Views: 7929
|
Forum: zMUD General Discussion Posted: Thu Nov 02, 2006 6:59 am Subject: #alarm not firing |
*1:00:00 would just set it to only fire at 1a, 1pm, 11am and 11pm wouldn't it? |
Topic: #alarm not firing |
Atreides_096
Replies: 4
Views: 7929
|
Forum: zMUD General Discussion Posted: Wed Nov 01, 2006 10:23 am Subject: #alarm not firing |
Some time back I had a problem with an alarm trigger set to go hourly not firing. At the time, I deleted the trigger and re-created it, and it worked fine. The problem has just come up again, but this ... |
Topic: Trigger not importing properly |
Atreides_096
Replies: 6
Views: 11126
|
Forum: zMUD General Discussion Posted: Fri Oct 27, 2006 4:52 am Subject: Trigger not importing properly |
If anyone cares.. I finally found the problem... rather odd, imo. It was in the last line of the "GQ Tracking" section:
#addkey GQTracker_DB QpsAllTime {%eval( %int( %db( @GQTRacker_ ... |
Topic: #TE state |
Atreides_096
Replies: 4
Views: 8661
|
Forum: zMUD General Discussion Posted: Thu Oct 26, 2006 10:10 pm Subject: #TE state |
I think I solved my problem :P I just linked the "sub" alias to the first room of each subbed area in the Room Script section :P |
Topic: #TE state |
Atreides_096
Replies: 4
Views: 8661
|
Forum: zMUD General Discussion Posted: Thu Oct 26, 2006 9:54 pm Subject: #TE state |
Nods, but that really doesn't solve this particular issue.. I'll give more details...
I've got a series of mob subs (instead of seeing long names, I see subbed names). With 2500-some-odd of these tri ... |
Topic: #TE state |
Atreides_096
Replies: 4
Views: 8661
|
Forum: zMUD General Discussion Posted: Thu Oct 26, 2006 9:27 pm Subject: #TE state |
Is there any state or variable set while #te is processing? I want to set up an alias to run only after my current #te has completely processed (since it's based off of %zonename)... I haven't found a ... |
Topic: Trigger not importing properly |
Atreides_096
Replies: 6
Views: 11126
|
Forum: zMUD General Discussion Posted: Thu Oct 26, 2006 9:07 pm Subject: Trigger not importing properly |
I tried importing 10-15 times.. in pre-existing settings files, as well as fresh (empty) ones. I also tried after zmud restarts, etc.. I got the same problem every time. Does anyone have any ideas the ... |
Topic: Trigger not importing properly |
Atreides_096
Replies: 6
Views: 11126
|
Forum: zMUD General Discussion Posted: Thu Oct 26, 2006 9:34 am Subject: Trigger not importing properly |
PS: The exported chunk looks like:#TRIGGER {^Global Quest: The global quest has been won by (%w).$} {#T- "GQRewardTracking";ingquest=1;#if %db( @GQTracker_DB, ... |
Topic: Trigger not importing properly |
Atreides_096
Replies: 6
Views: 11126
|
Forum: zMUD General Discussion Posted: Thu Oct 26, 2006 9:31 am Subject: Trigger not importing properly |
I've got a trigger that isn't re-importing properly after export, and I cannot find the reason for it. It checks out in pretty print, and I've gone over it 3 times (as well as trying things like expor ... |
Topic: Wildcards in alias names or #oninput syntax |
Atreides_096
Replies: 5
Views: 9206
|
Forum: zMUD General Discussion Posted: Thu Sep 28, 2006 11:33 pm Subject: Wildcards in alias names or #oninput syntax |
The problem is, I'm trying to link an alias out of the database.. (there's a command on the MUD, "run" which makes speedwalking faster. Run is also an alias for me, sent as ~run, which updates mapper ... |
Topic: Wildcards in alias names or #oninput syntax |
Atreides_096
Replies: 5
Views: 9206
|
Forum: zMUD General Discussion Posted: Thu Sep 28, 2006 9:56 pm Subject: Wildcards in alias names or #oninput syntax |
Nods I do know... the problem is I've got about 8000 aliases (mostly speedwalks) all in that format... XX-XX. After years of having this style of settings, it's incredibally tough to break the typing ... |
Topic: Wildcards in alias names or #oninput syntax |
Atreides_096
Replies: 5
Views: 9206
|
Forum: zMUD General Discussion Posted: Thu Sep 28, 2006 8:41 pm Subject: Wildcards in alias names or #oninput syntax |
I'm looking for a way to gag the original input when a #oninput trigger is activated, or to set up wild cards in aliases. By this what I mean is, if I have a trigger:
#oninput {^mh-(%w)$ ... |
Topic: BUG: Matching empty lines with Perl regular expressions |
Atreides_096
Replies: 1
Views: 5557
|
Forum: zMUD General Discussion Posted: Mon Jul 17, 2006 3:02 am Subject: BUG: Matching empty lines with Perl regular expressions |
Try this:
#regex {^\n} {#Win Debug ::emptyline found} |
Topic: %replace / %remove replace and removing too much |
Atreides_096
Replies: 1
Views: 4676
|
Forum: zMUD General Discussion Posted: Mon Jul 17, 2006 2:49 am Subject: %replace / %remove replace and removing too much |
In the following trigger:#ac {%d%s{@TallyTarget}%s%w%s%d%s(*)%s%d%s}
I am attempting to capture a formatted number that can range from between 1 and 2.147bil. The trigger ... |
Topic: Comments in import/export text |
Atreides_096
Replies: 7
Views: 12993
|
Forum: zMUD General Discussion Posted: Fri Jul 14, 2006 8:23 pm Subject: Comments in import/export text |
hehe.. I was actually looking for a way to "clean up" a really long alias that was very hard to read, and I came up with the idea of using #1 {} to break up the sections of the alias, utilizing pretty ... |
Topic: Expanding values inside of a loopdb into an alias or var |
Atreides_096
Replies: 1
Views: 5096
|
Forum: zMUD General Discussion Posted: Fri Jul 14, 2006 7:53 am Subject: Expanding values inside of a loopdb into an alias or var |
I got the answer from a friend of mine :)
#EXEC %concat("#al @SwalkWriterTemp {",%val,"} {Swalks} ") |
Topic: Comments in import/export text |
Atreides_096
Replies: 7
Views: 12993
|
Forum: zMUD General Discussion Posted: Fri Jul 14, 2006 7:41 am Subject: Comments in import/export text |
Using ; as a comment character is an option in the zmud preferences, in #menu {View|Preferences|General|Script Parser|General Parsing}, as "Allow ; comments" ... I'm sure you knew that :P But just in ... |
Topic: Expanding values inside of a loopdb into an alias or var |
Atreides_096
Replies: 1
Views: 5096
|
Forum: zMUD General Discussion Posted: Thu Jul 13, 2006 10:22 pm Subject: Expanding values inside of a loopdb into an alias or var |
Trying to write a script that will loop through a db, and then write aliases with the value of the key.. I've tried everything I can think of.. all of the values are there, and zmud sees them, but whe ... |
Topic: Bugs(?) |
Atreides_096
Replies: 17
Views: 29003
|
Forum: CMUD Beta Forum Posted: Thu Jul 06, 2006 2:05 am Subject: Bugs(?) |
I've always used %-1 when I am passing a parameter on from one alias to another (imbedded), from alias to trigger, trigger to alias, etc.. to preserve the paramater. I generally use %0 when I want to ... |
Topic: Bugs(?) |
Atreides_096
Replies: 17
Views: 29003
|
Forum: CMUD Beta Forum Posted: Thu Jun 22, 2006 7:18 am Subject: Bugs(?) |
Fair enough :P Although in imbedded aliases that are triggered, %-1 doesn't seem to work for multiple words ... and of course, %param1 is flaky at best, for large triggers that take time to process, s ... |
Topic: Bugs(?) |
Atreides_096
Replies: 17
Views: 29003
|
Forum: CMUD Beta Forum Posted: Thu Jun 22, 2006 5:44 am Subject: Bugs(?) |
Just for the record, when zMUD files reach a certain size, it seems you cannot export/import the entire file globally.... it doesn't read properly, and gets tons of errors. Also, you cannot import lin ... |
Topic: Bugs(?) |
Atreides_096
Replies: 17
Views: 29003
|
Forum: CMUD Beta Forum Posted: Tue Jun 20, 2006 9:57 am Subject: Bugs(?) |
Hehe, didn't actually expect a point by point explanation, though I appreciate you taking the time to do it :) Wa smostly just trying to help out with bugs I noticed as I went...
As for the screen ... |
Topic: Bugs(?) |
Atreides_096
Replies: 17
Views: 29003
|
Forum: CMUD Beta Forum Posted: Tue Jun 20, 2006 2:45 am Subject: Bugs(?) |
Oh also, aliases that made use of the %0 option (MANY of mine do) were not registering the %0 at all.. so for example, if I had an alias:
#al {tz} {tell zugg {%0}}
And I typed "tz testing" it wo ... |
|