Author |
Message |
Topic: using match and a string list off a pattern match |
Vijilante
Replies: 7
Views: 2497
|
Forum: CMUD General Discussion Posted: Thu Jun 05, 2025 3:10 pm Subject: using match and a string list off a pattern match |
Sorry I am quite a bit rusty with my CMud. Properly tested this trigger for the function and left in the testing stuff so you can get a good look at it.<?xml version="1.0" encoding=" ... |
Topic: using match and a string list off a pattern match |
Vijilante
Replies: 7
Views: 2497
|
Forum: CMUD General Discussion Posted: Sat May 24, 2025 1:26 pm Subject: using match and a string list off a pattern match |
Copy and paste into the package editor<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<class name="Party" copy="yes">
<trigger ... |
Topic: download trouble |
Vijilante
Replies: 6
Views: 2290
|
Forum: zMUD General Discussion Posted: Sat May 17, 2025 1:09 pm Subject: download trouble |
Probably not a problem with Windows 11. That is what I am running on my laptop which is what I used for checking it over before my previous reply. Perhaps try a different browser. I find Opera GX to b ... |
Topic: download trouble |
Vijilante
Replies: 6
Views: 2290
|
Forum: zMUD General Discussion Posted: Tue May 13, 2025 2:16 pm Subject: download trouble |
I had no problems with downloading it on my system. I click on zMud in the Products drop down on this page, then followed a few links to the download section where it finally downloaded. As a shortcut ... |
Topic: leading space after prompt on CR+LF |
Vijilante
Replies: 4
Views: 1884
|
Forum: CMUD General Discussion Posted: Fri May 09, 2025 1:42 pm Subject: leading space after prompt on CR+LF |
The only option I can think of that might apply is in the Session section "Use GA/EOR for prompt". |
Topic: Old Script Need Help |
Vijilante
Replies: 11
Views: 29150
|
Forum: zMUD General Discussion Posted: Fri May 05, 2017 6:06 pm Subject: Old Script Need Help |
Parenthesis should be used for the condition part of an #IF. There are 2 lines to correct; one is in the pk alias the other is in a trigger:
#if (%1=in) {@action @target} {
#IF (@celdarianissexy) { |
Topic: Cant Save Font, Font Color, Macros, Etc. How do I fix? |
Vijilante
Replies: 1
Views: 9645
|
Forum: zMUD General Discussion Posted: Thu Apr 06, 2017 4:00 am Subject: Cant Save Font, Font Color, Macros, Etc. How do I fix? |
Check where it is trying to save to. Newer versions of Windows restrict certain locations to administrator only. You may have to grant yourself access to write files in that location. |
Topic: Functions for accessing/manipulating nested variables? |
Vijilante
Replies: 1
Views: 7933
|
Forum: CMUD General Discussion Posted: Thu Mar 02, 2017 12:02 am Subject: Functions for accessing/manipulating nested variables? |
Sure you can, and like most things in zScript you can do it many ways.$temp="key=valueA|key2=valueB|key3=valueC"
#ADDKEY $temp {key4} {valueD}
#ADDKEY SomeVar {key ... |
Topic: Saving literal evaluations of functions at menu creation? |
Vijilante
Replies: 4
Views: 14412
|
Forum: CMUD General Discussion Posted: Mon Feb 27, 2017 11:08 pm Subject: Saving literal evaluations of functions at menu creation? |
The Planets variable is a permanent list variable. You set its sorting order directly in its settings and that will eliminate the need to play with the sort whenever you execute the alias to rebuild t ... |
Topic: Saving literal evaluations of functions at menu creation? |
Vijilante
Replies: 4
Views: 14412
|
Forum: CMUD General Discussion Posted: Mon Feb 27, 2017 4:06 pm Subject: Saving literal evaluations of functions at menu creation? |
I created some test data and things to make sure I got it right. In writing it I reordered some lines based on the probability that the Destination variable might need to be set for aliases called by ... |
Topic: [3.34][Discworld] Adding a string identifier to a room to help with identifying? |
Vijilante
Replies: 4
Views: 13021
|
Forum: CMUD General Discussion Posted: Mon Feb 27, 2017 3:15 pm Subject: [3.34][Discworld] Adding a string identifier to a room to help with identifying? |
You might want to use the [[%roomnote]] field instead, because the ID field is for a short name that can be interacted with by commands like [[#WALK]]. |
Topic: Recognize / differentiate CMUD pro or basic |
Vijilante
Replies: 2
Views: 9982
|
Forum: CMUD General Discussion Posted: Sat Feb 25, 2017 12:50 pm Subject: Recognize / differentiate CMUD pro or basic |
I don't know of any specific way. I think there are no features that are scripting exclusive and different between the 2 versions. I think the Pro version may include support for the zMapper plugin ca ... |
Topic: Triggers not working correctly. |
Vijilante
Replies: 2
Views: 9997
|
Forum: CMUD General Discussion Posted: Sat Feb 18, 2017 12:12 am Subject: Triggers not working correctly. |
Also you should use a command of #SEND {%1} rather than just %1. |
Topic: Looking for a specific Room Name |
Vijilante
Replies: 15
Views: 31193
|
Forum: CMUD General Discussion Posted: Thu Feb 16, 2017 6:31 pm Subject: Looking for a specific Room Name |
SQL likes to have its quotes too.
$str = %concat("[Name] = '", %replace($room, "'", "''"), "'") |
Topic: Menu-type Button? |
Vijilante
Replies: 12
Views: 31507
|
Forum: CMUD General Discussion Posted: Thu Feb 16, 2017 6:29 pm Subject: Menu-type Button? |
You can make it a little simpler by putting the repeated expressions into functions. Using that method you can simplify the caption ones by using #RETURN "" to make the blank caption instead of the me ... |
Topic: Menu-type Button? |
Vijilante
Replies: 12
Views: 31507
|
Forum: CMUD General Discussion Posted: Wed Feb 15, 2017 8:48 am Subject: Menu-type Button? |
Since the technique for doing this really complex I decided to mock up an example for you.<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<class name="B ... |
Topic: Menu-type Button? |
Vijilante
Replies: 12
Views: 31507
|
Forum: CMUD General Discussion Posted: Wed Feb 15, 2017 2:05 am Subject: Menu-type Button? |
You can make it do pages by having other buttons increment a page number variable. A single bar on one side with 10-15 gauges and page control buttons should not be hard. With a little bit of work you ... |
Topic: Menu-type Button? |
Vijilante
Replies: 12
Views: 31507
|
Forum: CMUD General Discussion Posted: Sat Feb 11, 2017 10:19 pm Subject: Menu-type Button? |
If you are looking to make dynamic buttons I always recommend making multiple nearly identical buttons. The buttons should each have a unique number that corresponds to their position/order, and that ... |
Topic: math in a variable and test value with an IF |
Vijilante
Replies: 2
Views: 11363
|
Forum: zMUD General Discussion Posted: Fri Feb 10, 2017 4:49 am Subject: math in a variable and test value with an IF |
This gives you the short command 'fbp' to do all of it.
#ALIAS fpb {#SEND {fill pot bucket};#ADD bucket 1;#IF (@bucket=8) {bucket=1;#SEND {put bucket bag}}} |
Topic: Menu-type Button? |
Vijilante
Replies: 12
Views: 31507
|
Forum: CMUD General Discussion Posted: Thu Feb 09, 2017 1:34 pm Subject: Menu-type Button? |
It is in in the help, but a little buried. The Introduction to Buttons mentions how to do it. Anyhow, here is an example.<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmu ... |
Topic: Window texts squashed |
Vijilante
Replies: 1
Views: 8011
|
Forum: CMUD General Discussion Posted: Sat Feb 04, 2017 4:30 am Subject: Window texts squashed |
The only things I can recall as causing such problems were the DPI setting and some window docking/decoration managers. The DPI setting got a little buried and renamed in newer version of Windows; it ... |
Topic: cMud licence key |
Vijilante
Replies: 1
Views: 7779
|
Forum: CMUD General Discussion Posted: Wed Feb 01, 2017 8:33 pm Subject: cMud licence key |
You should be able to go to your store account and request a key to apply in the program. If you can't access your store account or it does not show the purchase there, then you can mailto://support@z ... |
Topic: zMUD script rewrite |
Vijilante
Replies: 8
Views: 32256
|
Forum: zMUD General Discussion Posted: Sun Jan 29, 2017 10:39 am Subject: zMUD script rewrite |
What works is what counts. I have never had a problem using a blank pattern with a loop lines trigger. If you look at the trigger state in the settings editor is its type set to loop lines?
I coul ... |
Topic: zMUD script rewrite |
Vijilante
Replies: 8
Views: 32256
|
Forum: zMUD General Discussion Posted: Fri Jan 27, 2017 11:55 am Subject: zMUD script rewrite |
Use the blank pattern with looplines. Use a pattern of * with looppat.
%mapquery returns a list, so just as in your first %mapquery if multiple rooms match they will all be in the list. My assumpti ... |
Topic: zMUD script rewrite |
Vijilante
Replies: 8
Views: 32256
|
Forum: zMUD General Discussion Posted: Mon Jan 23, 2017 10:43 pm Subject: zMUD script rewrite |
#ALIAS findMatchDesc {
#VAR findRoomByDesc {}
#FORALL @findRoomByName {#IF (%subchar(%subchar(%roomdesc(%i),%crlf,"")," |"," ... |
|