Author |
Message |
Topic: What else do i need to add |
Troubadour
Replies: 3
Views: 5256
|
Forum: zMUD General Discussion Posted: Fri Aug 22, 2003 7:54 pm Subject: What else do i need to add |
To stuff the data into the database, I like to create an alias:
#ALIAS addnewrecord {#DBLOAD Eq; #NEW All @newrecord; #DBRESET}
and call the alias using a temp trigger. The temp trigger is creat ... |
Topic: Multi - line trigger |
Troubadour
Replies: 6
Views: 8622
|
Forum: zMUD General Discussion Posted: Wed Aug 06, 2003 6:22 pm Subject: Multi - line trigger |
You cannot place a wildcard in one of those [either|or] elements. You will have to make two triggers -- one for single line, one for double line. |
Topic: Help with Trigger which shows gains. |
Troubadour
Replies: 4
Views: 5957
|
Forum: zMUD General Discussion Posted: Wed Aug 06, 2003 6:13 pm Subject: Help with Trigger which shows gains. |
TonDiening gave you the actual trigger you need in the first line of his post. Just paste it to the command line and you're set. (%trigger is a predefined variable which returns the line which set off ... |
Topic: Imbedded Triggers |
Troubadour
Replies: 7
Views: 8449
|
Forum: zMUD General Discussion Posted: Wed Aug 06, 2003 1:32 pm Subject: Imbedded Triggers |
Instead of storing your variables in umpteen different variables store them in one db variable.
#VAR allherbs {balherb=0|ginseng=6|bloodroot=3|goldenseal=0|kelp=69}
#LOOPDB @allherbs {#IF (%val ... |
Topic: a [] symbols trigger problem |
Troubadour
Replies: 1
Views: 3649
|
Forum: zMUD General Discussion Posted: Thu Mar 20, 2003 8:15 pm Subject: a [] symbols trigger problem |
Use the quote character, ~, to tell zMUD to treat it as a literal [, rather than part of the range expression.
#Trigger {str ~[%d} {#var str %1}
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Script Assistance |
Troubadour
Replies: 5
Views: 6339
|
Forum: zMUD General Discussion Posted: Wed Mar 19, 2003 8:37 am Subject: Script Assistance |
#TR {^(*) waits here to be killed.} {kill %word("%1",%numwords(%1)); #ALARM relook +10 {look}}
#TR {^(*) is DEAD!} {#T- relook; skin %word("%1",%numwords(%1))}
Upon looking a ... |
Topic: 6.40 is extremely slow for me |
Troubadour
Replies: 4
Views: 5438
|
Forum: zMUD General Discussion Posted: Wed Mar 19, 2003 8:14 am Subject: 6.40 is extremely slow for me |
What operating system are you using? If it's not Windows XP, it's possible you need to update your MDAC protocols.
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Winsock error |
Troubadour
Replies: 4
Views: 5975
|
Forum: zMUD General Discussion Posted: Wed Mar 19, 2003 8:12 am Subject: Winsock error |
*BUMP*
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Windows 98, ME, and 2000 Users Please Read |
Troubadour
Replies: 9
Views: 15278
|
Forum: zMUD General Discussion Posted: Wed Mar 19, 2003 8:11 am Subject: Windows 98, ME, and 2000 Users Please Read |
*BUMP*
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Checking for no variable |
Troubadour
Replies: 4
Views: 7678
|
Forum: zMUD General Discussion Posted: Fri Mar 14, 2003 8:45 pm Subject: Checking for no variable |
You might employ the %null function.
#IF %null(@lastrequest) {#NOOP} {say Hello Sailor!}
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Dumb |
Troubadour
Replies: 7
Views: 7701
|
Forum: zMUD General Discussion Posted: Fri Mar 07, 2003 7:40 am Subject: Dumb |
A simple example of #UNTIL would be:
batches = 0
#UNTIL (@batches = 12) {pick %1; #ADD batches 1}
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Alias Issues |
Troubadour
Replies: 2
Views: 4414
|
Forum: zMUD General Discussion Posted: Fri Mar 07, 2003 7:32 am Subject: Alias Issues |
%-1 (note the -) will be assigned all parameters.
%-2 would be assigned parameters 2 thru 99.
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Removing items from a list |
Troubadour
Replies: 14
Views: 17433
|
Forum: zMUD General Discussion Posted: Mon Mar 03, 2003 10:17 am Subject: Removing items from a list |
I understand your problem as being you wish to create a list of trades comprising the best compensation involving a primary good regardless of what the secondary good may be. In the examples you gave ... |
Topic: status bar |
Troubadour
Replies: 3
Views: 5770
|
Forum: zMUD General Discussion Posted: Sat Mar 01, 2003 8:35 am Subject: status bar |
I'm guessing that what you've given us for your tank's information will look exactly like what YOUR prompt will look like. So if there's any other text associated with the tank info please post it.
... |
Topic: OT: Mud recomendation Request |
Troubadour
Replies: 12
Views: 20004
|
Forum: zMUD General Discussion Posted: Fri Feb 28, 2003 3:34 am Subject: OT: Mud recomendation Request |
The purpose of these forums is the discussion of zMUD and other Zuggsoft products.
Discussion of the merits and demerits of particular MUDs should be performed elsewhere. I recommend The MUD Connec ... |
Topic: Putting two dice totals into variable |
Troubadour
Replies: 2
Views: 3503
|
Forum: zMUD General Discussion Posted: Thu Feb 27, 2003 9:28 pm Subject: Putting two dice totals into variable |
The #WAIT command and temporary triggers can be a bit squirrely. I suggest you rewrite this to not use either of them.
The following triggers store all dierolls as a string list in a variable named ... |
Topic: Medievia |
Troubadour
Replies: 3
Views: 4774
|
Forum: zMUD General Discussion Posted: Thu Feb 27, 2003 10:50 am Subject: Medievia |
The purpose of these forums is the discussion of zMUD and other Zuggsoft products. Discussion of particular MUDs should be done elsewhere.
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Milliseconds |
Troubadour
Replies: 5
Views: 7457
|
Forum: zMUD General Discussion Posted: Thu Feb 20, 2003 10:41 am Subject: Milliseconds |
Hmmph, can't seem to get the %float function to work, so it'll report in milliseconds.
#TR {~ (%w):*blue} {#SHOW %1 answered in %eval(%secs-@start) ms.}
Troubadour
(Win 98, Pentium III, 550 MH ... |
Topic: Not match |
Troubadour
Replies: 6
Views: 7425
|
Forum: zMUD General Discussion Posted: Mon Feb 03, 2003 6:28 am Subject: Not match |
It sounds like you do not wish to trigger on what someone says. The best way to do this is to use the ^ and $ anchors with your triggers.
^ will anchor a pattern to the beginning of a line; $ will ... |
Topic: Mob Triggers |
Troubadour
Replies: 9
Views: 10280
|
Forum: zMUD General Discussion Posted: Tue Jan 28, 2003 5:59 am Subject: Mob Triggers |
#ALARM "checkmob" -2:00 {tell mob hi}
#TRIGGER {You tell mob, 'hi'} {#T- checkmob}
#TRIGGER {Mob is DEAD!} {#T+ checkmob}
Troubadour
(Win 98, Pentium III, 550 MHz) |
Topic: Problems with my hilighter in the new zmud |
Troubadour
Replies: 6
Views: 8736
|
Forum: zMUD General Discussion Posted: Sat Dec 21, 2002 10:58 pm Subject: Problems with my hilighter in the new zmud |
I've written a script (it's in the Finished Scripts section) that tracks when I've quested. It stores (day-of-year|time-of-day) pairs to a list. The list looks like "(335|139495)|(335|200382)|(33 ... |
Topic: Problems with my hilighter in the new zmud |
Troubadour
Replies: 6
Views: 8736
|
Forum: zMUD General Discussion Posted: Sat Dec 21, 2002 8:53 pm Subject: Problems with my hilighter in the new zmud |
In version 6.40, you can now have nested lists, meaning a list can be a list item within another list.
As Belmyrddyn pointed out, you have reversed the arguements in the %additem function. The synt ... |
Topic: Using databases |
Troubadour
Replies: 2
Views: 6222
|
Forum: zMUD General Discussion Posted: Fri Dec 20, 2002 9:30 am Subject: Using databases |
To expand the above to react to any better, use a record variable.
#TR {You have become better at (*)!} {#ADDKEY betters "%1" %eval(%db(@betters,"%1") + 1)}
#TR {You learn fr ... |
Topic: Windows 98, ME, and 2000 Users Please Read |
Troubadour
Replies: 9
Views: 15278
|
Forum: zMUD General Discussion Posted: Wed Dec 18, 2002 10:38 pm Subject: Windows 98, ME, and 2000 Users Please Read |
Attention users of Windows 98, Windows ME, and Windows 2000:
zMUD version 6.40 uses Microsoft Data Access Components for its mapper. The converted maps are stored as a Microsoft database.
In ord ... |
Topic: Finding certain rooms? |
Troubadour
Replies: 1
Views: 3496
|
Forum: zMUD General Discussion Posted: Mon Dec 09, 2002 10:57 pm Subject: Finding certain rooms? |
Here's something to get you started. I didn't try to test it. It assumes that each of your safe rooms has been an id with the word "safe" and a sequential number, i.e. safe1, safe2, safe3... ... |
|