Author |
Message |
Topic: %expanddb with /class/subclass/@var |
yorcadon
Replies: 4
Views: 5284
|
Forum: CMUD General Discussion Posted: Wed Jun 08, 2011 2:09 pm Subject: %expanddb with /class/subclass/@var |
That doesn't seem to work. It just displays:
/%1
Where %1 is whatever I happen to type with the alias. Doesn't actually expand anything.
I'm trying to make it so I can have alias1:
#ECHO %expa ... |
Topic: %expanddb with /class/subclass/@var |
yorcadon
Replies: 4
Views: 5284
|
Forum: CMUD General Discussion Posted: Wed Jun 08, 2011 12:11 pm Subject: %expanddb with /class/subclass/@var |
Ok so I kept messing with it and found something that worked.
#VAR {TestClass/TestSub/TestTemp} @%proper(%1)
#ECHO %expanddb(@TestClass/TestSub/TestTemp," ")
... |
Topic: %expanddb with /class/subclass/@var |
yorcadon
Replies: 4
Views: 5284
|
Forum: CMUD General Discussion Posted: Wed Jun 08, 2011 11:40 am Subject: %expanddb with /class/subclass/@var |
Basically I am trying to expand a database in a specified class.
The database Test has keys/values (obviously it's just temporary so the key and values don't matter):
test1 1
test2 10
test3 100
... |
Topic: Providing line numbers while searching text files for specific text |
yorcadon
Replies: 2
Views: 5754
|
Forum: CMUD General Discussion Posted: Mon Mar 28, 2011 1:48 am Subject: Providing line numbers while searching text files for specific text |
Basically I am looking for a way to be able to %read a file to search for certain things, but at the same time retrieve the line number in the file that it is in.
The goal is to be able to search sev ... |
Topic: Comparing individual characters in variables and string lists! |
yorcadon
Replies: 3
Views: 7071
|
Forum: CMUD General Discussion Posted: Fri Sep 03, 2010 6:27 pm Subject: Comparing individual characters in variables and string lists! |
That should work. Seems a bit sloppy combining %right and %left to reach the middle letter, but should work anyways.
Thanks!
Edit: %copy works perfectly. Thank you. |
Topic: Comparing individual characters in variables and string lists! |
yorcadon
Replies: 3
Views: 7071
|
Forum: CMUD General Discussion Posted: Fri Sep 03, 2010 5:53 pm Subject: Comparing individual characters in variables and string lists! |
I need to compare single characters from a variable against single characters in a string list to see if they match.
For example if I have a variable set to "abc" and a string list, the first entry ... |
Topic: Subtracting from all database values |
yorcadon
Replies: 2
Views: 4443
|
Forum: CMUD Beta Forum Posted: Mon Aug 02, 2010 6:54 pm Subject: Subtracting from all database values |
So I found an alternative that seems to work fine.
#LOOPDB @Database {#ADDKEY Database %key (%val-1)}
That seems to do the trick. Not sure why I didn't just do that before. |
Topic: Subtracting from all database values |
yorcadon
Replies: 2
Views: 4443
|
Forum: CMUD Beta Forum Posted: Mon Aug 02, 2010 6:19 pm Subject: Subtracting from all database values |
I'm using 3.22. This used to work fine but after updating a few new beta releases at once it has a problem.
I need to subtract 1 from all values in a database.
#LOOPDB @Database {Database.% ... |
Topic: Flashing highlights when status window is active. |
yorcadon
Replies: 0
Views: 2781
|
Forum: CMUD Beta Forum Posted: Fri Jul 31, 2009 5:08 am Subject: Flashing highlights when status window is active. |
Sorry if this has already been brought up.
When I switched from 3.08 to 3.10 I had an interesting problem.
Occasionally all white text in my main window will flash to grey, then back to white. A ... |
Topic: Trigger problems. Maybe I need to use regex? |
yorcadon
Replies: 0
Views: 2771
|
Forum: CMUD General Discussion Posted: Mon Jul 27, 2009 10:10 pm Subject: Trigger problems. Maybe I need to use regex? |
Ok, so I'll start off by showing an example of text from the mud:
A watchman is one west, a door northeast of one east and one southeast, a jovial priestess, a prayerful woman, a troll bodyguard an ... |
Topic: Line color for triggers more than one line long. |
yorcadon
Replies: 6
Views: 8319
|
Forum: CMUD General Discussion Posted: Mon Jul 06, 2009 7:53 am Subject: Line color for triggers more than one line long. |
I'll ask one more time to see if anyone else has any suggestions. I have colored text. I am using the line color option in a trigger.
I know it's detecting line color and that I have the right colo ... |
Topic: Line color for triggers more than one line long. |
yorcadon
Replies: 6
Views: 8319
|
Forum: CMUD General Discussion Posted: Sat Jun 27, 2009 4:27 am Subject: Line color for triggers more than one line long. |
Anyone have any ideas? I tried removing the ^. Tried checking for the ANSI code in the debugger, and it didn't give any ansi code for the colored text I need.
It appears to be more of a word proble ... |
Topic: Line color for triggers more than one line long. |
yorcadon
Replies: 6
Views: 8319
|
Forum: CMUD General Discussion Posted: Thu Jun 25, 2009 6:23 am Subject: Line color for triggers more than one line long. |
It is necessary to force it to start at the beginning of the line. How would I force it to recognize an ansi pattern? Using %linecol? I'd rather not do that, but I can if that's the only way. |
Topic: Line color for triggers more than one line long. |
yorcadon
Replies: 6
Views: 8319
|
Forum: CMUD General Discussion Posted: Tue Jun 23, 2009 6:52 am Subject: Line color for triggers more than one line long. |
So I'm trying count how many times something shows up. I'm using a string list to trigger off of, and if I do something like ^({@string}) it works fine.
Once I add in the Line Color check, it only ... |
Topic: Splitting the trigger pattern abnormally |
yorcadon
Replies: 3
Views: 5425
|
Forum: zMUD General Discussion Posted: Fri Jun 12, 2009 10:16 am Subject: Splitting the trigger pattern abnormally |
So how would that translate into this
^~(chatname~) Person wisps: Q%d. &Var1. &Var2
Thanks in advance. Apparently I don't know much about regex. I'll do some reading. |
Topic: Splitting the trigger pattern abnormally |
yorcadon
Replies: 3
Views: 5425
|
Forum: zMUD General Discussion Posted: Thu Jun 11, 2009 10:16 pm Subject: Splitting the trigger pattern abnormally |
So here is the best way I can think of to explain what I want to do.
"This is an example paragraph. I want it split and saved into two variables. Lets call the first variable Var1 and the second va ... |
|