Register to post in forums, or Log in to your existing account
 
:
Search found 10 matches for:
Page 1 of 1
Author Message
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Mon Aug 01, 2022 9:02 am   Subject: How to prevent duplicate variable creation?
Well, even the helpfile tells you not to use #WAIT for complicated cross thread things...

If you really want to do it that way then I'd try encasing any access (read or write) of shared variables i ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Sun Jul 31, 2022 9:50 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?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Sun Jul 31, 2022 9:31 am   Subject: How to prevent duplicate variable creation?
Who told you that those things were bad?Nobody told me these things were bad, those are all things I've observed. For example:There is nothing wrong with #EVENTs.I once tried to refactor one of my mu ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Fri Jul 29, 2022 7:43 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: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Thu Jul 28, 2022 1:51 pm   Subject: How to prevent duplicate variable creation?
I have experimented with that kind of design in the past, but couldn't make it reliable: list variables seem to have a chance to become corrupt every time you write to them, much like DB variables do, ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Thu Jul 28, 2022 7:27 am   Subject: How to prevent duplicate variable creation?
I have a trigger like that, see the first post, but I still need a blocking loop in the alias. The usecase is, the MUD doesn't allow a lot of command stacking: if I send four commands in a row, `a;b; ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Wed Jul 27, 2022 7:30 am   Subject: How to prevent duplicate variable creation?
@shalimar Thanks for your replies. I'm not sure what you mean; what depends on my system? I'm on windows 10, cmud 3.34. As for dbvars, I do use them in several places, for example to keep track of ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Tue Jul 26, 2022 9:54 am   Subject: How to prevent duplicate variable creation?
I do feel like things get worse when cmud has been up for a long time, or when Windows has; I try not to let cmud run for more than 2 or 3 hours at a time. But this isn't always good enough, sometime ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Mon Jul 25, 2022 8:42 pm   Subject: How to prevent duplicate variable creation?
I don't think that's it. The class it's in is called Data, and it contains a bunch of core functionality for my scripts like hit point tracking, room contents parsing, and so on. If it were disabled ...
  Topic: How to prevent duplicate variable creation?
Conradin

Replies: 23
Views: 11779

PostForum: CMUD General Discussion   Posted: Mon Jul 25, 2022 3:10 pm   Subject: How to prevent duplicate variable creation?
I have a simple that's just supposed to block until cmud reads a prompt from the mud. It's defined as a simple alias/trigger pair, like so:

// #alias await-prompt
#var awaiting_prompt 1 0 Data
...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net