 |
Nayuko Novice
Joined: 17 Jun 2008 Posts: 41
|
Posted: Wed Feb 25, 2009 7:32 pm
[CMUD 2.37] Drawing on the screen - is it possible ? |
1)
I have a question about possibility of drawing on the Cmud's screen using ansi signs but without 'sub' command.
For example, after matching pattern: abc, I could see something like that(the problem is in few lines graphics):
What for ? During going after the enemies, I would like to see the specific graphic sign in the separated window which could help me choosing right direction.
2)
And the second quesion, is it possible to make the font bigger only in one window of all existed in script ?
Sincerely,
N. |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Feb 25, 2009 9:03 pm |
Each window has it's own individual settings. You can set the fonts, colors, and any other window specifications separately for each window. Just click on the window to put the focus there, and click on Options to set them.
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Feb 25, 2009 9:06 pm |
For the first question, I'm not positive what you mean, but I believe the answer is yes, you can print anything you want to the screen in your trigger. By not using #sub, I presume you mean to leave the original text and print something in addition? You'll have to explain a bit further to get any specific suggestions.
|
|
|
 |
Nayuko Novice
Joined: 17 Jun 2008 Posts: 41
|
Posted: Wed Feb 25, 2009 9:38 pm |
Yes, I would like to add a graphic below the 'oryginal' text from mud. For example:
Somebody has escaped. He left on west.
The graph i would like to draw is:
If he escaped on northern east, I would like to see:
Something like that :) |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Thu Feb 26, 2009 3:05 pm |
Absolutely trivial. It would be something like:
Code: |
<trigger priority="490" id="49">
<pattern>Somebody has escaped. He left on (*). $</pattern>
<value>#switch (%1)
(north) {#print %concat(" | ",%crlf," | ",%crlf," o ")}
(south) {#print %concat(" o ",%crlf," | ",%crlf," | ")}
(east) {#print %concat(" ",%crlf," o----",%crlf," ")}
(west) {#print %concat(" ",%crlf,"----o ",%crlf," ")}
(northeast) {#print %concat(" /",%crlf," / ",%crlf," o ")}
(northwest) {#print %concat("\ ",%crlf," \ ",%crlf," o ")}
(southeast) {#print %concat(" o ",%crlf," \ ",%crlf," \")}
(southwest) {#print %concat(" o ",%crlf," / ",%crlf,"/ ")}</value>
</trigger>
|
|
|
|
 |
Nayuko Novice
Joined: 17 Jun 2008 Posts: 41
|
Posted: Fri Feb 27, 2009 11:07 am |
Well, trivial, I didn't know that command! And I was asking for it :)
Thank you!
N. |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Feb 27, 2009 3:06 pm |
There are numerous commands to print something to the screen. Look up #show, #showprompt, #say, #sayadd, #sayprompt, #echo,, #echoprompt, #print
|
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|