Register to post in forums, or Log in to your existing account
 
:
Search found 232 matches for:
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
  Topic: Help with trigger and DB
hpoonis2010

Replies: 9
Views: 131

PostForum: CMUD General Discussion   Posted: Sun Jan 16, 2022 6:10 pm   Subject: Help with trigger and DB
Take heart, it is not really as bad as you may think.

The variation in item type: worn, armor (armour is worn...ask any mediaeval knight!), container, wand etc is nothing to be concerned about. Wha ...
  Topic: Help with trigger and DB
hpoonis2010

Replies: 9
Views: 131

PostForum: CMUD General Discussion   Posted: Sun Jan 16, 2022 8:25 am   Subject: Help with trigger and DB
Provide more examples of exam and lore.
How many different types of item exist? The type of data specific to an item type looks like it varies.

Your initial trigger(s) can be of type INPUT as you ...
  Topic: Help with trigger and DB
hpoonis2010

Replies: 9
Views: 131

PostForum: CMUD General Discussion   Posted: Mon Jan 10, 2022 10:16 am   Subject: Help with trigger and DB
I have had problems with the database module. It serves little or no purpose really. A lot of the problems in cMud come from window handling (it is unstable) and the DB module is no exception. So you ...
  Topic: variable question
hpoonis2010

Replies: 1
Views: 5411

PostForum: CMUD General Discussion   Posted: Fri Jan 07, 2022 6:05 pm   Subject: variable question
I don't think %w will do it as %w is word and you may have two words, or even word(minus)word. Try

Your (*) is: (%d)
#SH %trim(%1) %2

Alternatively, call your variable @strikeNumber
  Topic: cannot get answer from zugg store for account
hpoonis2010

Replies: 3
Views: 145

PostForum: CMUD General Discussion   Posted: Thu Jan 06, 2022 7:16 pm   Subject: cannot get answer from zugg store for account
I am afraid I have to disagree with you.

"Site admin" is hardly "developer".

An analogy is Audi not producing any new vehicles since 2010, charging people 2021 prices, accepting that there are p ...
  Topic: cannot get answer from zugg store for account
hpoonis2010

Replies: 3
Views: 145

PostForum: CMUD General Discussion   Posted: Wed Jan 05, 2022 6:15 am   Subject: cannot get answer from zugg store for account
I thought these things were automated.

Unfortunately, you are at the mercy of the uncaring developer. No other can help you.

If it is zmud, you can find a pirated version that may serve you unti ...
  Topic: Strange VAR value in editor
hpoonis2010

Replies: 6
Views: 682

PostForum: CMUD General Discussion   Posted: Tue Jan 04, 2022 7:24 am   Subject: Strange VAR value in editor
Recreating the variable has fixed that problem.

No need to express my frustration at the client.
  Topic: Quoting strings (for DBVARS)
hpoonis2010

Replies: 9
Views: 1492

PostForum: CMUD General Discussion   Posted: Tue Jan 04, 2022 7:12 am   Subject: Quoting strings (for DBVARS)
OK...I have narrowed the problem down a little more.

mobstage1tbl

anarrow = mob=Crow, the archer|zone=Goblin Fortress|room=31865|name=an arrow
ashinydullscalpel = mob=a busy surgeon|zone=Ti ...
  Topic: Need help converting something from zmud into cmud.
hpoonis2010

Replies: 1
Views: 120

PostForum: CMUD General Discussion   Posted: Tue Jan 04, 2022 6:19 am   Subject: Need help converting something from zmud into cmud.
#IF ((condition 1) AND (condition2)) {do something} {do something else}

or

#IF ((condition 1) OR (condition2)) {do something} {do something else}

of course these can be more complex

#IF (( ...
  Topic: Quoting strings (for DBVARS)
hpoonis2010

Replies: 9
Views: 1492

PostForum: CMUD General Discussion   Posted: Thu Dec 30, 2021 9:52 pm   Subject: Quoting strings (for DBVARS)
Alas! Did not work. I also tried %string, %insert, %replace and a slew of other things. In every case, surrounding " are stripped out. So, the idea of having

name="(~--bizarre and un-necessary it ...
  Topic: Strange VAR value in editor
hpoonis2010

Replies: 6
Views: 682

PostForum: CMUD General Discussion   Posted: Thu Dec 30, 2021 6:24 am   Subject: Strange VAR value in editor
No. I searched everywhere. In the end I deleted it and recreated it. I shall see how that goes.
  Topic: Strange VAR value in editor
hpoonis2010

Replies: 6
Views: 682

PostForum: CMUD General Discussion   Posted: Wed Dec 29, 2021 5:33 pm   Subject: Strange VAR value in editor
OK. So I re-ran my script to write the portals vars and the editor value was correct but the json value did not change when I viewed the XML.

Then, I changed so that both values were correct and cl ...
  Topic: Strange VAR value in editor
hpoonis2010

Replies: 6
Views: 682

PostForum: CMUD General Discussion   Posted: Wed Dec 29, 2021 5:12 pm   Subject: Strange VAR value in editor
I checked my equipment dbvars after getting the XML into a text editor and 2465638708 exists nowhere.

This is certainly perplexing. I can find no scripts which write to the above vars which specif ...
  Topic: Strange VAR value in editor
hpoonis2010

Replies: 6
Views: 682

PostForum: CMUD General Discussion   Posted: Tue Dec 28, 2021 2:32 pm   Subject: Strange VAR value in editor
I have a bunch of vars, each has a unique number. They relate to mud portal tokens. Holds the token, enter the portal.

One portal token ID for area 'goldrush' is 2219436672 and, when I look at the ...
  Topic: Counting MOBS
hpoonis2010

Replies: 7
Views: 3212

PostForum: CMUD General Discussion   Posted: Tue Dec 28, 2021 1:36 pm   Subject: Counting MOBS
#TRIG {The corpse of * is here.} {num=@num+1}

Obviously you initialise your corpse counter at the point when you want to start counting.

Eg., for each session maybe an ONCONNECT event, and for e ...
  Topic: Windows 11, Mapper Non Function, Arctic Mud
hpoonis2010

Replies: 7
Views: 401

PostForum: CMUD General Discussion   Posted: Tue Dec 28, 2021 1:33 pm   Subject: Windows 11, Mapper Non Function, Arctic Mud
For myself, I have never managed to get full room mapping working with cmud. I can get name and exits but no description. Fortunately, aardwolf supplies a room vnum via gmcp and this proivides a uni ...
  Topic: Windows 11, Mapper Non Function, Arctic Mud
hpoonis2010

Replies: 7
Views: 401

PostForum: CMUD General Discussion   Posted: Mon Dec 27, 2021 8:15 pm   Subject: Windows 11, Mapper Non Function, Arctic Mud
Another way may have been to just install a virtual machine and run it in an older version: XP or Win7.

Alas! for the world, avoiding win11 may not be an option in 3-4 years. Unless (hoping against ...
  Topic: a Little help please and thank you! <3
hpoonis2010

Replies: 10
Views: 576

PostForum: CMUD General Discussion   Posted: Mon Dec 27, 2021 8:10 pm   Subject: a Little help please and thank you! <3
Once one begins writing one's own code it can become a bit obsessive. Where a thing can be improved or streamlined there is a kind of compulsion to act.
  Topic: How to Increment Lines/Rows?
hpoonis2010

Replies: 6
Views: 674

PostForum: CMUD General Discussion   Posted: Sun Nov 14, 2021 8:46 am   Subject: How to Increment Lines/Rows?
%len(string)/2 will give you a mid point for odd number of chars and an approximate for even length. You can try

#IF (%mod(%len(string),2)=0)

in a function, which should test for even length or ...
  Topic: Mid Function?
hpoonis2010

Replies: 1
Views: 296

PostForum: CMUD General Discussion   Posted: Sun Nov 14, 2021 8:40 am   Subject: Mid Function?
Depends on what you are trying to extract. One of:

%left, %right, %leftback, %rightback

coupled with

%len

will achieve the same results.
  Topic: How to Increment Lines/Rows?
hpoonis2010

Replies: 6
Views: 674

PostForum: CMUD General Discussion   Posted: Thu Nov 11, 2021 6:19 am   Subject: How to Increment Lines/Rows?
EG.,

#trigger {/---} {#T+ grabdata}
#addkey database %1 %2
#trigger {\---} {#T- grabdata}

You have a class that contains the pattern(s) for storing the data which enables/disables when you wan ...
  Topic: Disabling Classes within a parent Class
hpoonis2010

Replies: 5
Views: 1150

PostForum: CMUD General Discussion   Posted: Wed Sep 15, 2021 6:12 am   Subject: Disabling Classes within a parent Class
What shalimar wrote is correct: if the class is disabled, everything in the class is disabled. The fact that the items do NOT appear disabled in the package editor is immaterial.

Test it yourself. ...
  Topic: Question about #walk
hpoonis2010

Replies: 13
Views: 2460

PostForum: CMUD General Discussion   Posted: Tue Sep 14, 2021 9:51 am   Subject: Question about #walk
Is it likely to just be the case where everything in the walk is done first then whatever is queued up comes next?

Do you possibly have 'trigger on trigger' unchecked somewhere in the scripts?
  Topic: Any use for 'function/command'...
hpoonis2010

Replies: 1
Views: 807

PostForum: CMUD General Discussion   Posted: Fri Aug 20, 2021 5:37 am   Subject: Any use for 'function/command'...
#UNVAR - Contemplating life (as one does on the toilet) I wondered if there was any real application for #unvar. If a var is to be short-lived, just use local vars.
  Topic: Command input trigger
hpoonis2010

Replies: 6
Views: 1499

PostForum: CMUD General Discussion   Posted: Sun Aug 15, 2021 8:31 am   Subject: Command input trigger
"Fixed number of rooms": yes. Fixed to all of the rooms in that zone >150

There is no problem really with locating. The mapper has the flag for mud-delivered numbers so I am always 'found'. Als ...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net