Register to post in forums, or Log in to your existing account
 
:
Search found 4488 matches for:
Page 1 of 180 Goto page 1, 2, 3 ... 178, 179, 180  Next
Author Message
  Topic: Formatting the status window text...and everywhere else
shalimar

Replies: 1
Views: 22

PostForum: CMUD General Discussion   Posted: Mon Aug 15, 2022 8:49 pm   Subject: Formatting the status window text...and everywhere else
You would use the %format function

#HELP %format - to pull up the help file
  Topic: using temp variables / #local to create new variable and/or update variables
shalimar

Replies: 5
Views: 90

PostForum: CMUD General Discussion   Posted: Wed Aug 10, 2022 4:02 pm   Subject: using temp variables / #local to create new variable and/or update variables
Due to the indirect way they are referenced, exec forces things to evaluate/be parsed that otherwise wouldn't.

Personally, I would use a dbVar to handle storage, which means the local variables can ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Tue Aug 02, 2022 12:39 pm   Subject: How to prevent duplicate variable creation?
I tend to break stuff down and segment it to protect from corruption.
Compartmentalization.
It effectively serves as a backup of known good code as well

Any corruption that matters will only be ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Mon Aug 01, 2022 6:55 am   Subject: How to prevent duplicate variable creation?
I have had to Would you be willing to share a copy of one of your mud packages? The whole thing, I mean, modulo any sensitive data. I'm curious what good cmud style looks like from your perspective, ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Fri Jul 29, 2022 10:52 pm   Subject: How to prevent duplicate variable creation?
Who told you that those things were bad?

There is nothing wrong with #EVENTs.
#SIGNAL is another threading command.

Enabling and disabling is also fine, so long as you aren't turning off variab ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Fri Jul 29, 2022 3:52 am   Subject: How to prevent duplicate variable creation?
This outlier situation probably has more to do with whatever caused the corruption in the first place.
Variable definitions are usually very reliable.

#SECTION and threading, in general, is one of ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Thu Jul 28, 2022 11:37 am   Subject: How to prevent duplicate variable creation?
I think it would only be using more in those high-stress situations.
Or maybe it uses more CPU processing instead.

As for the command stacking issue, you could always set a command queue for thos ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Wed Jul 27, 2022 6:35 pm   Subject: How to prevent duplicate variable creation?
More that the amount of RAM your system has can drastically affect the performance of laggy scripts.

Do you have a permanent prompt trigger?
Seems like you could do away with that unfortunate-loo ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Tue Jul 26, 2022 10:14 am   Subject: How to prevent duplicate variable creation?
That also depends on your system.
Have you looked into using a dbVar?
With that, you could house all of your utility variables in one master variable...at root.
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Tue Jul 26, 2022 5:20 am   Subject: How to prevent duplicate variable creation?
Typically I have it up for running till I finally give in to the windows update requests.
A week or three at a time.
It was a bit more frequent when creating and coding new scripts (several times a ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Mon Jul 25, 2022 11:47 pm   Subject: How to prevent duplicate variable creation?
It is possible, though I am unaware of the circumstances for such off the top of my head.

I know editing multiple rooms on the map simultaneously can mess up the creation of the next room, but that ...
  Topic: How to prevent duplicate variable creation?
shalimar

Replies: 23
Views: 768

PostForum: CMUD General Discussion   Posted: Mon Jul 25, 2022 7:51 pm   Subject: How to prevent duplicate variable creation?
My guess is that the class/folder you house the variable in is getting disabled somewhere.

This forces the next definition to resolve at the root because there is no active variable with the name. ...
  Topic: Module/package disappeared
shalimar

Replies: 1
Views: 173

PostForum: CMUD General Discussion   Posted: Fri Jul 22, 2022 9:46 pm   Subject: Module/package disappeared
I have seen settings become attached to the map before.

You need a clean export to Import properly, and if your settings are corrupt, well, you might not get it all.

This is why proper backup pr ...
  Topic: #addkey issues
shalimar

Replies: 2
Views: 216

PostForum: CMUD General Discussion   Posted: Sun Jul 17, 2022 2:50 am   Subject: #addkey issues
You don't use the @ of the dbVar when going an #ADDKEY.
You also want to enclose your expression in parentheses.
  Topic: accidental misclick with consequences
shalimar

Replies: 8
Views: 1255

PostForum: CMUD General Discussion   Posted: Wed Jul 13, 2022 3:22 pm   Subject: accidental misclick with consequences
I have never seen this issue myself.

Speculation... there is usually a master window of a given tabbed group (all the other windows are tabbed to it, and its position is usually relative to the mai ...
  Topic: getting my syntax right
shalimar

Replies: 5
Views: 542

PostForum: CMUD General Discussion   Posted: Wed Jul 13, 2022 2:41 pm   Subject: getting my syntax right
I take the boolean method one step further and do a test for any non null value, and since 0 is equivilent to null...:

#IF (@autosc) {autosc=0} {autosc=1}
  Topic: New to scripting with zmud/cmud and I cant figure out how to grab a variable
shalimar

Replies: 1
Views: 212

PostForum: zMUD General Discussion   Posted: Sat Jul 09, 2022 10:25 pm   Subject: New to scripting with zmud/cmud and I cant figure out how to grab a variable
There is a helper for this very thing built into CMUD.

If you make a new trigger via the settings editor, switch to the pattern tab and enter the raw text into the line marked Text.

But in this ...
  Topic: converting a large inventory into a list variable
shalimar

Replies: 3
Views: 281

PostForum: CMUD General Discussion   Posted: Thu Jul 07, 2022 4:36 pm   Subject: converting a large inventory into a list variable
It's a 2 state trigger, only numbering starts at 0.

State 0
Just resets the Variable

State 1
Is of type within, with a param of 1.
This means: check the next one line for this pattern before ...
  Topic: Couple of stumper questions
shalimar

Replies: 1
Views: 187

PostForum: CMUD General Discussion   Posted: Thu Jul 07, 2022 3:50 pm   Subject: Couple of stumper questions
Unfortunately, you cannot delete map rooms via script, only via the GUI.
It's possible the room is stacked under another room square.
You may be able to select it by turning on panels under view and ...
  Topic: auto cast above a certain percent
shalimar

Replies: 1
Views: 198

PostForum: CMUD General Discussion   Posted: Wed Jul 06, 2022 10:12 pm   Subject: auto cast above a certain percent
#TR {<(%d)H (%d)M (%d)V (%d)X (%d)~%D (%d):(%d):(%d)>} {#IF (%5>70) {weave fireball}} "" "prompt"

Should do it.
  Topic: converting a large inventory into a list variable
shalimar

Replies: 3
Views: 281

PostForum: CMUD General Discussion   Posted: Tue Jul 05, 2022 9:18 am   Subject: converting a large inventory into a list variable
You need a stated trigger, something like this:

#TR {It contains:} {contents=""}
#COND {*} {
contents=%concat(@contents, %line)
#IF & ...
  Topic: CMUD Issues
shalimar

Replies: 2
Views: 238

PostForum: CMUD General Discussion   Posted: Tue Jul 05, 2022 9:08 am   Subject: CMUD Issues
Try exporting your settings to XML and then import them to the new session.

You should simply be able to load in the map file of your choice.
  Topic: Making a spontaneous action list, specifically grouped/spammed commands
shalimar

Replies: 8
Views: 602

PostForum: CMUD General Discussion   Posted: Thu Jun 30, 2022 8:23 pm   Subject: Making a spontaneous action list, specifically grouped/spammed commands
Parenthesis() are only needed when passing arguments to a function, or when defining an equation to be tested against.

Which works for %exec as it is a function.

But not with #EXEC which is a co ...
  Topic: Making a spontaneous action list, specifically grouped/spammed commands
shalimar

Replies: 8
Views: 602

PostForum: CMUD General Discussion   Posted: Thu Jun 30, 2022 1:36 am   Subject: Making a spontaneous action list, specifically grouped/spammed commands
#exec {#rep @howmanytimes {%item(@anything,@anythingListRowNum)}}

#rep @howmanytimes {#exec %item(@anything,@anythingListRowNum)}
  Topic: Making a spontaneous action list, specifically grouped/spammed commands
shalimar

Replies: 8
Views: 602

PostForum: CMUD General Discussion   Posted: Tue Jun 28, 2022 8:29 pm   Subject: Making a spontaneous action list, specifically grouped/spammed commands
I am thinking it might be the quote marks, try pulling those out.
 
Page 1 of 180 Goto page 1, 2, 3 ... 178, 179, 180  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net