Author |
Message |
Topic: extracting letters of a certain color from a string |
Zyphrus
Replies: 8
Views: 6172
|
Forum: zMUD General Discussion Posted: Tue Apr 03, 2007 4:36 pm Subject: extracting letters of a certain color from a string |
My solution based on Arminas' approach works completely now, handling the special characters , ( ) % correctly. Also handles all cases of stripped redundant ansi color codes. Displays the final result ... |
Topic: extracting letters of a certain color from a string |
Zyphrus
Replies: 8
Views: 6172
|
Forum: zMUD General Discussion Posted: Tue Apr 03, 2007 9:51 am Subject: extracting letters of a certain color from a string |
thanks for the solutions
works :
%replace( %replace( "%2", %e, "esc"), "esc[", "|")
doesn't work :
%replace( " ... |
Topic: extracting letters of a certain color from a string |
Zyphrus
Replies: 8
Views: 6172
|
Forum: zMUD General Discussion Posted: Mon Apr 02, 2007 11:21 pm Subject: extracting letters of a certain color from a string |
I wish it were :( I'll try to explain the problem better: the mud displays a string of random characters (including non-letters), and you have to find all the ones which have the same color as the las ... |
Topic: extracting letters of a certain color from a string |
Zyphrus
Replies: 8
Views: 6172
|
Forum: zMUD General Discussion Posted: Mon Apr 02, 2007 6:49 pm Subject: extracting letters of a certain color from a string |
this mud is uses scrambled codes for a certain action. the player has to extract all the characters which match the color of the last letter to get the code. Here is what I've got so far (it does not ... |
Topic: numpad != arrow keys |
Zyphrus
Replies: 2
Views: 3655
|
Forum: zMUD General Discussion Posted: Fri May 07, 2004 10:17 am Subject: numpad != arrow keys |
Is it possible to have zMUD react differently to the arrow keys and the numpad (with numlock turned off)? If not, I'd like to file a feature request for that. |
Topic: strange behaviour of %replace inside %eval |
Zyphrus
Replies: 2
Views: 2624
|
Forum: zMUD General Discussion Posted: Sat Mar 27, 2004 11:01 pm Subject: strange behaviour of %replace inside %eval |
Thanks for the fast reply! I just tried your solution and it works perfectly |
Topic: strange behaviour of %replace inside %eval |
Zyphrus
Replies: 2
Views: 2624
|
Forum: zMUD General Discussion Posted: Sat Mar 27, 2004 9:37 pm Subject: strange behaviour of %replace inside %eval |
I've got a trigger that is supposed to do some calculations with a number after stripping all commas from it. But it only works if I don't put %replace inside %eval. Let's say %1 is 250,000. %replace( ... |
|