Register to post in forums, or Log in to your existing account
 
:
Search found 327 matches for:
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
Author Message
  Topic: How to prevent duplicate variable creation?
Tarn

Replies: 23
Views: 770

PostForum: CMUD General Discussion   Posted: Mon Aug 01, 2022 1:44 am   Subject: How to prevent duplicate variable creation?
When I have a need that I think is the same as what's in your original example (loop which waits for timeouts or a prompt), I prefer to add two triggers/events/what have you:

1) a single trigger on ...
  Topic: How to prevent duplicate variable creation?
Tarn

Replies: 23
Views: 770

PostForum: CMUD General Discussion   Posted: Sat Jul 30, 2022 4:03 am   Subject: How to prevent duplicate variable creation?
So you think there's something different about my cmud install, compared to a normal one? That would be really good news, because I could fix it, and then I wouldn't need a workaround for the behavio ...
  Topic: temporary variable
Tarn

Replies: 3
Views: 227

PostForum: CMUD General Discussion   Posted: Sat Jul 23, 2022 6:18 pm   Subject: temporary variable
If you mean that you want to get rid of it when you're done using it,
#UNVAR

Or, you can create one that has only local scope within the script:
#LOCAL
  Topic: Does cmud still work under windows 11 ?
Tarn

Replies: 4
Views: 563

PostForum: CMUD General Discussion   Posted: Fri Jul 15, 2022 7:27 pm   Subject: Does cmud still work under windows 11 ?
Update:

Seems to be working fine with multis and with the mapper (but I just gave the mapper a quick whirl).

Only anomalies are:

1) (trivial) a few labels are too big for the space so you los ...
  Topic: accidental misclick with consequences
Tarn

Replies: 8
Views: 1255

PostForum: CMUD General Discussion   Posted: Thu Jul 14, 2022 1:50 pm   Subject: havior no
Did this to myself recently, all of the character windows closed (not sure what I did either, but it was definitely not the minimize to tabbed window when you doubleclick the window bar behavior noted ...
  Topic: is it possible to execute keyboard commands?
Tarn

Replies: 2
Views: 235

PostForum: CMUD General Discussion   Posted: Sun Jul 10, 2022 5:56 am   Subject: is it possible to execute keyboard commands?
#input has a second optional parameter.

#input "this sample will be highlighted"
will put that text in the box but not select it

#input "this sample will be highlighted" 1
will put that text i ...
  Topic: Does cmud still work under windows 11 ?
Tarn

Replies: 4
Views: 563

PostForum: CMUD General Discussion   Posted: Thu Jun 30, 2022 10:41 pm   Subject: Does cmud still work under windows 11 ?
Update:

Short version: I'm doing fine so far:

Details:

My triggers and other settings seem to be fine.

Some of the UI formatting is a little bit off (label size next to controls)- no big d ...
  Topic: Failed Hard Drive - No license Key
Tarn

Replies: 6
Views: 543

PostForum: CMUD General Discussion   Posted: Mon Jun 27, 2022 1:51 pm   Subject: Failed Hard Drive - No license Key
I just did an install with a new key request about two(?) weeks ago. Logged into the store account, asked for a key, and it was there within a minute or so.
  Topic: Does cmud still work under windows 11 ?
Tarn

Replies: 4
Views: 563

PostForum: CMUD General Discussion   Posted: Sun Jun 26, 2022 8:52 pm   Subject: Does cmud still work under windows 11 ?
I thought it was working ok (new laptop+os, not a Win 11 upgrade from Win 10, and bringing my settings over from the old one via XML) but this morning I got a notice on open that the database was lock ...
  Topic: Nested SWITCHes
Tarn

Replies: 10
Views: 4018

PostForum: CMUD General Discussion   Posted: Thu May 13, 2021 8:00 pm   Subject: Nested SWITCHes
We avoid the databases as that is not a completely useful module.
...
So client is currently is happy with

forall
if

but not

switch
switch

or

switch
if

Ok on the db.

So ...
  Topic: Nested SWITCHes
Tarn

Replies: 10
Views: 4018

PostForum: CMUD General Discussion   Posted: Tue May 11, 2021 6:48 pm   Subject: Nested SWITCHes
This seems like what the database is for.

You're trying to search for a value by two fields (category like "arm" or "invis" and level).

Could you make a table with those values and then use %que ...
  Topic: Speedwalks...are not
Tarn

Replies: 1
Views: 1885

PostForum: CMUD General Discussion   Posted: Wed May 05, 2021 12:51 am   Subject: Speedwalks...are not
I'd probably try
#DEBUGFILE
(raw logging) to confirm what's actually being sent to the server.
  Topic: Support for COM events
Tarn

Replies: 7
Views: 10888

PostForum: CMUD General Discussion   Posted: Wed Oct 19, 2016 6:40 am   Subject: Support for COM events
It sounds like you've got a COM exe, not just a DLL with blocking calls.

CMud does have its own COM API, so you could run it from the other end... get a handle and force a command or alias to run. ...
  Topic: CMud crashes
Tarn

Replies: 5
Views: 9939

PostForum: CMUD General Discussion   Posted: Sat Jun 18, 2016 3:32 am   Subject: CMud crashes
I have not had this problem with general windows but don't generally use the mapper.

I did not do file transfer back and forth between other machines.

In case it's relevant, my install is a full ...
  Topic: Converting Zscript to Lua
Tarn

Replies: 3
Views: 6779

PostForum: CMUD General Discussion   Posted: Wed Mar 02, 2016 2:32 am   Subject: Converting Zscript to Lua
Lua is a scripting language.

It doesn't have things like triggers built in; that would be part of the client which then runs Lua scripts.

So are you asking how to translate the "action" portion ...
  Topic: cMUD and Javascript
Tarn

Replies: 17
Views: 24595

PostForum: CMUD General Discussion   Posted: Sun Nov 29, 2015 5:52 pm   Subject: cMUD and Javascript
In short, you can get a handle to the CMUD application object, and through that to the current session. You can then ask the session to do various things including execute scripts.

You actually don ...
  Topic: cMUD and Javascript
Tarn

Replies: 17
Views: 24595

PostForum: CMUD General Discussion   Posted: Sat Nov 28, 2015 6:52 pm   Subject: cMUD and Javascript

I don't understand the COM stuff. The examples I've looked at, I just don't understand. I don't know if it is something that would benefit me or not but I'll try to look into it again. I'd love t ...
  Topic: Having problems sending multiple lines to the mud
Tarn

Replies: 11
Views: 14878

PostForum: CMUD General Discussion   Posted: Sat Nov 28, 2015 6:01 pm   Subject: Re: Having problems sending multiple lines to the mud

What would be an acceptable way to add a delay or a break between each line ? Using #wait in a huge loop like this will surely cause issues, wont it ? And i'am adamant about spamming my cmud with 50 ...
  Topic: cMUD and Javascript
Tarn

Replies: 17
Views: 24595

PostForum: CMUD General Discussion   Posted: Sat Nov 28, 2015 5:50 pm   Subject: cMUD and Javascript
Wow guys, you are very appreciated.

I'm getting it to work now. However, the "alert()" function of Javascript still does not appear to work.

...

However, if I add "alert(x);" before the "ret ...
  Topic: Having problems sending multiple lines to the mud
Tarn

Replies: 11
Views: 14878

PostForum: CMUD General Discussion   Posted: Sat Nov 28, 2015 12:23 am   Subject: Re: Having problems sending multiple lines to the mud

I've spent about 40 minutes now trying to change different prefs including anti-spam and word-wrap settings to no avail.
Any ideas what is causing this?


Speculation:

It wouldn't surprise m ...
  Topic: cMUD and Javascript
Tarn

Replies: 17
Views: 24595

PostForum: CMUD General Discussion   Posted: Thu Nov 26, 2015 8:46 pm   Subject: cMUD and Javascript

If cMUD can't do full blown javascript, that's ok, i just need to know that so I quit thinking about it.


I'm not sure what you mean by "full blown javascript". Individual functions or aliases/ ...
  Topic: cMUD and Javascript
Tarn

Replies: 17
Views: 24595

PostForum: CMUD General Discussion   Posted: Wed Nov 25, 2015 10:17 pm   Subject: cMUD and Javascript
I'm still wanting to know how to do Javascript though.
I appreciate all the ZScript options that replace things I'd be using Javascript for but it IS something cMUD is supposed to do (use javascript) ...
  Topic: cMUD and Javascript
Tarn

Replies: 17
Views: 24595

PostForum: CMUD General Discussion   Posted: Wed Nov 25, 2015 8:56 pm   Subject: cMUD and Javascript

can Zscript do methods or functions or subroutines?

Check out #FUNCTION (which can return a value)

I assume you're familiar with triggers and aliases.
  Topic: SOLVED - Hide return value of a function
Tarn

Replies: 4
Views: 6786

PostForum: CMUD General Discussion   Posted: Thu Sep 24, 2015 12:18 am   Subject: SOLVED - Hide return value of a function
%additem doesn't modify the list but does return a value.
#additem does modify the list but does not return a value (but note that #additem has the name of the list first and thing to add second, vs ...
  Topic: i just cant remeber how...
Tarn

Replies: 3
Views: 6802

PostForum: CMUD General Discussion   Posted: Thu Sep 18, 2014 2:23 am   Subject: Re: i just cant remeber how...

Thanks in advance for solving this simple mystery.

Have you configured a prompt trigger yet? (so that CMud regognizes the line as complete even though it doesn't have the normal end of line signa ...
 
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net