About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Nayuko
Novice


Joined: 17 Jun 2008
Posts: 41

PostPosted: 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):
Code:

<\/>
 ||
/  \


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.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
Reply with quote
Nayuko
Novice


Joined: 17 Jun 2008
Posts: 41

PostPosted: 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:
Code:

 ----o

If he escaped on northern east, I would like to see:
Code:

         /
       /
     o

Something like that :)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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>
Reply with quote
Nayuko
Novice


Joined: 17 Jun 2008
Posts: 41

PostPosted: Fri Feb 27, 2009 11:07 am   
 
Well, trivial, I didn't know that command! And I was asking for it :)

Thank you!

N.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net