Register to post in forums, or Log in to your existing account
 
:
Search found 35 matches for:
Page 1 of 2 Goto page 1, 2  Next
Author Message
  Topic: Counting keys in record var that match a specific prefix.
JRSteensen

Replies: 3
Views: 1690

PostForum: CMUD General Discussion   Posted: Fri Oct 07, 2022 10:10 am   Subject: Counting keys in record var that match a specific prefix.
Awesome! Thanks Shalimar! That is very very useful!

On the same vein, is there a link to examples of using nested record variables? Been having a tough time locating any simple examples to build of ...
  Topic: Counting keys in record var that match a specific prefix.
JRSteensen

Replies: 3
Views: 1690

PostForum: CMUD General Discussion   Posted: Sun Oct 02, 2022 1:58 am   Subject: Counting keys in record var that match a specific prefix.
Have a number of keys in a record variable with different prefixes. (OHS_xxx and THS_xxx)

I'm curious how I can countkeys of only the OHS prefixed keys?

%numkeys(%match(@StatusDB,"O ...
  Topic: NOPE, REALLY SOLVED NOW: Trigger not iterating properly...
JRSteensen

Replies: 1
Views: 1227

PostForum: CMUD General Discussion   Posted: Tue Sep 27, 2022 4:14 pm   Subject: NOPE, REALLY SOLVED NOW: Trigger not iterating properly...
Okay, kinda solved. Removed the ReportImp = 0, and it reports, but then I can't figure out where to put a ReportImp = 0 to disable it after it iterates.
  Topic: NOPE, REALLY SOLVED NOW: Trigger not iterating properly...
JRSteensen

Replies: 1
Views: 1227

PostForum: CMUD General Discussion   Posted: Tue Sep 27, 2022 4:05 pm   Subject: NOPE, REALLY SOLVED NOW: Trigger not iterating properly...
ALMOST SOLVED: Had misplaced ImpReport = 0. Figured it out as soon as I hit submit. *laughs*
See second post for new issue with figuring out where to put ImpReport = 0.

Nope, really solved now. Ha ...
  Topic: Reset Variables after midnight, game time zone?
JRSteensen

Replies: 4
Views: 2659

PostForum: CMUD General Discussion   Posted: Sat Jun 18, 2022 4:38 pm   Subject: Reset Variables after midnight, game time zone?
So, I wanted to close the loop on this. I found an Elapsed Minutes function on here, and I modified it to ElapsedSeconds. Then, I wrote another function to display elapsed time in a human facing forma ...
  Topic: Reset Variables after midnight, game time zone?
JRSteensen

Replies: 4
Views: 2659

PostForum: CMUD General Discussion   Posted: Fri Jun 10, 2022 10:32 pm   Subject: Reset Variables after midnight, game time zone?
Best option for that is setting the default variable for those variables.

It already resets the values whenever the session is loaded.

And you can also reset them with the #RESET command.

Odd ...
  Topic: Reset Variables after midnight, game time zone?
JRSteensen

Replies: 4
Views: 2659

PostForum: CMUD General Discussion   Posted: Fri Jun 10, 2022 4:58 pm   Subject: Reset Variables after midnight, game time zone?
Hey all!

I was just trying to figure out a simple way to reset a number of variables if it is past midnight game time. (Game is on EST, I am on MDT, so 2200 local time)
I don't want to reset if it ...
  Topic: Need help calculating distance between 2 XYZ coordinates.
JRSteensen

Replies: 4
Views: 4940

PostForum: CMUD General Discussion   Posted: Wed Aug 19, 2020 12:06 am   Subject: Need help calculating distance between 2 XYZ coordinates.
or

$x=(%4-%1)
$y=(%5-%2)
$z=(%6-%3)
$ab=%sqrt(%float(($x*$x)+($y*$y)+($z*$z)))

P.S. It is + not -, you had the formulae wrong.

Yeah I did. Thanks!
  Topic: Need help calculating distance between 2 XYZ coordinates.
JRSteensen

Replies: 4
Views: 4940

PostForum: CMUD General Discussion   Posted: Tue Aug 18, 2020 6:53 pm   Subject: Need help calculating distance between 2 XYZ coordinates.
I got her solved! The below does famously.


$AB = {%sqrt(((%4-%1)*(%4-%1))+((%5-%2)*(%5-%2))+((%6-%3)*(%6-%3))) ...
  Topic: Need help calculating distance between 2 XYZ coordinates.
JRSteensen

Replies: 4
Views: 4940

PostForum: CMUD General Discussion   Posted: Mon Aug 17, 2020 6:32 pm   Subject: Need help calculating distance between 2 XYZ coordinates.
Hey all. Been a long time since I did much scripting in CMUD, but getting back into it.

I am running the following and consistently getting a result of "0" regardless of input. I am guessing it has ...
  Topic: Automapper Questions: Voice activated exits and MDSP Exits
JRSteensen

Replies: 3
Views: 6672

PostForum: CMUD General Discussion   Posted: Sun May 21, 2017 12:33 am   Subject: Automapper Questions: Voice activated exits and MDSP Exits
Awesome! That is a great jumping off point. Thank you.

How can I pull the ROOMVNUM variable to the automapper as the room vnum while mapping?
  Topic: Automapper Questions: Voice activated exits and MDSP Exits
JRSteensen

Replies: 3
Views: 6672

PostForum: CMUD General Discussion   Posted: Sat May 20, 2017 9:33 pm   Subject: Automapper Questions: Voice activated exits and MDSP Exits
Never really played much with the automapper and just now starting to dive into it.

Looking for a few things: Voice activated exits are a major thing in my MUD.

Exits may be activated via a vari ...
  Topic: How to hide informational CMUD messages when deleting a trigger, or on a #C+/#C-
JRSteensen

Replies: 5
Views: 9158

PostForum: CMUD General Discussion   Posted: Fri Apr 28, 2017 7:28 am   Subject: How to hide informational CMUD messages when deleting a trigger, or on a #C+/#C-
Not just for this - I use the debug variable all over in case I want verbose output for...stuff.

Even cutting everything out and just putting in a #GAG, doesn't seem to gag the CMUD generated outpu ...
  Topic: Buttons on Status bar
JRSteensen

Replies: 3
Views: 7610

PostForum: CMUD General Discussion   Posted: Tue Apr 25, 2017 12:15 pm   Subject: Buttons on Status bar
I don't believe there is. If there is, I certainly haven't seen it.
  Topic: Optional trigger state?
JRSteensen

Replies: 1
Views: 5732

PostForum: CMUD General Discussion   Posted: Tue Apr 25, 2017 12:13 pm   Subject: Optional trigger state?
Currently, I have multiple trigger states to capture various gauges to track certain stats.

The third state in the following appears sometimes, otherwise it doesn't appear in input. If it doesn't e ...
  Topic: How to hide informational CMUD messages when deleting a trigger, or on a #C+/#C-
JRSteensen

Replies: 5
Views: 9158

PostForum: CMUD General Discussion   Posted: Tue Apr 25, 2017 9:48 am   Subject: How to hide informational CMUD messages when deleting a trigger, or on a #C+/#C-
Oh, that was just a typo when I was typing it out here. Sorry about that.

Still can't gag it though. See here:

<trigger priority="28740" linecolor="11" id="2874" ...
  Topic: How to hide informational CMUD messages when deleting a trigger, or on a #C+/#C-
JRSteensen

Replies: 5
Views: 9158

PostForum: CMUD General Discussion   Posted: Mon Apr 24, 2017 10:33 am   Subject: How to hide informational CMUD messages when deleting a trigger, or on a #C+/#C-
Good evening! How would I suppress "informational" CMUD messages when I delete a trigger, or use the #C+/#C- commands?

I tried a trigger on the informational message of "Capture text ON" using "^Ca ...
  Topic: Checking for duplicate variables throughout a package?
JRSteensen

Replies: 2
Views: 5929

PostForum: CMUD General Discussion   Posted: Mon Apr 24, 2017 10:23 am   Subject: Checking for duplicate variables throughout a package?
Dang, thank you.
  Topic: Checking for duplicate variables throughout a package?
JRSteensen

Replies: 2
Views: 5929

PostForum: CMUD General Discussion   Posted: Sun Apr 23, 2017 11:12 am   Subject: Checking for duplicate variables throughout a package?
Had a malformed alias corrupt my package. Though some very careful xml manipulation, I was able to get it cleaned up, however I now have duplicate variables riddled throughout. (Hundreds of them) Is t ...
  Topic: Menu-type Button?
JRSteensen

Replies: 12
Views: 24529

PostForum: CMUD General Discussion   Posted: Sun Apr 23, 2017 10:38 am   Subject: Menu-type Button?
Quick, hopefully easy, question:

Is there a way to sort the submenu items in the menu?
  Topic: Functions for accessing/manipulating nested variables?
JRSteensen

Replies: 1
Views: 6086

PostForum: CMUD General Discussion   Posted: Wed Mar 01, 2017 8:37 pm   Subject: Functions for accessing/manipulating nested variables?
Does anyone have any simple functions to manipulate data in nested record variables?

Also, is there a way to nest records in a record variable?

I'd love to do something like this: (pardon the ne ...
  Topic: Saving literal evaluations of functions at menu creation?
JRSteensen

Replies: 4
Views: 11158

PostForum: CMUD General Discussion   Posted: Mon Feb 27, 2017 9:30 pm   Subject: Saving literal evaluations of functions at menu creation?
Works absolutely perfectly. Thank you.

Only minor issue is that it populates the calc menu in ascending alphabetical (Z->A) instead of descending (A->Z) order.

Fixed that with:


#WHIL ...
  Topic: Saving literal evaluations of functions at menu creation?
JRSteensen

Replies: 4
Views: 11158

PostForum: CMUD General Discussion   Posted: Sun Feb 26, 2017 9:34 pm   Subject: Saving literal evaluations of functions at menu creation?
i.e. I'd want the expressions to evaluate at the time of the menu creation, versus having the evaluations placed inside the MENU command for future evaluation. Been banging my head on how to accomplis ...
  Topic: Saving literal evaluations of functions at menu creation?
JRSteensen

Replies: 4
Views: 11158

PostForum: CMUD General Discussion   Posted: Sun Feb 26, 2017 4:32 am   Subject: Saving literal evaluations of functions at menu creation?
So, populating a menu like this:


counter = 1
#SORT planets

#WHILE (@counter <> %numitems(@Planets)) {

#SAY Adding %concat("'",%item(Planets,@co ...
  Topic: Menu-type Button?
JRSteensen

Replies: 12
Views: 24529

PostForum: CMUD General Discussion   Posted: Thu Feb 16, 2017 4:46 pm   Subject: Menu-type Button?
Fantastic! Thank you.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net