Register to post in forums, or Log in to your existing account
 

 Related 
Contents
See also:
  Display Text Output
Display
  #CLR
  #COLOR
  #CW
  #ECHO
  #ECHOPROMPT
  #EVALUATE
  #FREEZE
  #GAG
  #GAGBLOCK
  #GAGOFF
  #GAGON
  #HIGHLIGHT
  #IMAGE
  #MXP
  #PCOL
  #PSUB
  #SAY
  #SAYPROMPT
  #SCROLL
  #SHOW
  #SHOWARR
  #SHOWDB
  #SHOWPROMPT
  #SUBSTITUTE
  #UNGAG
  #WRAP
  Display
Command Reference
  #nnn
  #ABORT
  #ACTION
  #ADD
  #ADDITEM
  #ADDKEY
  #AFK
  #ALARM
  #ALIAS
  #ALL
  #BACKUP
  #BEEP
  #BREAK
  #BUTTON
  #C-
  #C+
  #CALL
  #CAPTURE
  #CASE
  #CHARACTER
  #CLASS
  #CLOSE
  #CLR
  #CMD
  #COLOR
  #COM
  #CONDITION
  #CONFIGURE
  #CONNECT
  #CONTINUE
  #CR
  #CW
  #DBCLOSE
  #DBDELETE
  #DBFIRST
  #DBGET
  #DBLOAD
  #DBNEXT
  #DBOFFLINE
  #DBONLINE
  #DBPREV
  #DBPUT
  #DBRESET
  #DBSAVE
  #DDE
  #DEBUG
  #DEBUGFILE
  #DEFAULT
  #DELCLASS
  #DELITEM
  #DELKEY
  #DELNITEM
  #DESCRIBE
  #DIRECTION
  #DISCONNECT
  #DOOR
  #ECHO
  #ECHOPROMPT
  #EDITOR
  #ERASE
  #EVALUATE
  #EVENT
  #EXECUTE
  #EXECWIN
  #EXIT
  #FILE
  #FIND
  #FIRE
  #FORALL
  #FREEZE
  #FTP
  #FUNCTION
  #GAG
  #GAGBLOCK
  #GAGLOG
  #GAGOFF
  #GAGON
  #GAGSPACE
  #GAUGE
  #H-
  #H+
  #HELP
  #HIGHLIGHT
  #HISTLOAD
  #HISTORY
  #HISTSAVE
  #HOST
  #IF
  #IGNORE
  #IMAGE
  #INPUT
  #KEY
  #KILLALL
  #LAUNCH
  #LMAP
  #LOAD
  #LOCAL
  #LOCATION
  #LOG
  #LOOK
  #LOOP
  #LOOPDB
  #LOOPVIEW
  #LUA
  #MAKEROOM
  #MAKEWINDOW
  #MAP
  #MAPQUERY
  #MARK
  #MATH
  #MEDIA
  #MENU
  #MERGE
  #MESSAGE
  #MODULE
  #MOVE
  #MSS
  #MXP
  #MXPTRIG
  #NAME
  #NEW
  #NEWVAR
  #NODEF
  #NODIR
  #NOINPUT
  #NOMAP
  #NOOP
  #NOSAVE
  #OK
  #ONINPUT
  #PATH
  #PATHHIGH
  #PAUSE
  #PCOL
  #PICK
  #PLAY
  #PLUGIN
  #PORTAL
  #PRINT
  #PROMPT
  #PSUB
  #PUEBLO
  #PW
  #QUERY
  #QUEUE
  #RAISEEVENT
  #READ
  #RECALL
  #RECORD
  #REGEX
  #RENAME
  #REPEAT
  #RESET
  #RESUME
  #RESULT
  #RETRACE
  #RETURN
  #SAVE
  #SAY
  #SAYADD
  #SAYPROMPT
  #SCRIPT
  #SCROLL
  #SECTION
  #SEND
  #SENDGMCP
  #SENDPROMPT
  #SENDRAW
  #SENDSB
  #SESSION
  #SET
  #SETPROMPT
  #SHOW
  #SHOWARR
  #SHOWDB
  #SHOWPROMPT
  #SHOWTABLE
  #SIGNAL
  #SLOW
  #SORT
  #SQLCLOSE
  #SQLDB
  #SS
  #STATE
  #STATUS
  #STEP
  #STOP
  #STWIN
  #STYLE
  #SUBSTITUTE
  #SUSPEND
  #SWITCH
  #T-
  #T?
  #T+
  #TAB
  #TAG
  #TELEPORT
  #TEMP
  #TEMPVAR
  #THREAD
  #TIMER
  #TRACK
  #TRIGGER
  #TSET
  #TYPE
  #TZERO
  #UNALIAS
  #UNBUTTON
  #UNCLASS
  #UNDIR
  #UNGAG
  #UNKEY
  #UNEVENT
  #UNLOAD
  #UNLOC
  #UNMENU
  #UNPATH
  #UNPORTAL
  #UNSTYLE
  #UNTAB
  #UNTIL
  #UNTRIGGER
  #UNVAR
  #UPDATE
  #URL
  #VARFUNC
  #VARIABLE
  #VERBATIM
  #VERSION
  #VIEW
  #WAIT
  #WAITFOR
  #WAITSIGNAL
  #WAITTHREAD
  #WALK
  #WHILE
  #WINDOW
  #WITHLOC
  #WIZLIST
  #WRAP
  #WRITE
  #WRITELOG
  #YESNO
Related Links:
  Display
  Display Text Output
#PRINT [[cmud_#PRINT]] 
PRINT

Syntax: #PRINT text

Display the specified text to the screen without sending it to the MUD. A Newline is added to the end of the string. To put a newline in the middle of the text, use the %cr predefined variable. The displayed text will not fire triggers.

PRINT example

#PRINT You have @gold coins
Prints You have nnnn coins to the screen where nnnn is the current value of the @gold variable.


#TRIGGER {Zugg} {#SUB Darker}
#PRINT "Something to do with Zugg."
Prints "Something to do with Zugg." to the screen. The #sub trigger won't be activated.

 User comments 
Seb: Wed Jul 23, 2008 10:33 pm    

What's the difference between #PRINT and #ECHO (or #SAY)? #PRINT always goes to the main MUD window??? I assume #PRINT is not parsed by triggers like #SHOW is...
Arde: Thu Jul 24, 2008 9:51 am    

Seb wrote:
What's the difference between #PRINT and #ECHO (or #SAY)? #PRINT always goes to the main MUD window??? I assume #PRINT is not parsed by triggers like #SHOW is...

#PRINT is not parsed by triggers like #SHOW, #ECHO, #SAY are - this was the main reason for adding the #PRINT command. You can use it in your scripts and be assured that no triggers will be mistakenly fired.
Seb: Thu Jul 24, 2008 10:52 am    

Hmm, I thought #ECHO and #SAY weren't parsed by triggers (in zMUD)... Seems I'm wrong though. Probably getting rusty on this stuff.
Arde: Thu Jul 24, 2008 11:33 am    

You are right, but it was oh so many years ago. Last zMUD I used was 4.62. Back then #ECHO and #SAY did not cause triggers to fire. When I ask here why cMUD acts different, I have been told that cMUD acts the same way zMUD did.
Seb: Thu Jul 24, 2008 12:13 pm    

Aha! I did use 4.62 for some years! (Until I got my own computer where I could actually install stuff.)
Vijilante: Thu Jul 24, 2008 11:00 pm    

As far as I can gather, the difference is:
#SHOW goes into the lowest level buffer and is treated exactly as mud text would be. This means even Telnet codes can be controlled and emulated here.
#SAY goes into the window buffer that is considered as the originator of the controlling script. This means where the alias, function, trigger, etc was activated from. The particular buffer is still triggerable, but only recognizes display type codes (ie. MXP and ANSI).
#ECHO goes into the same level buffer as #SAY, however it always uses the currently focused window.
#PRINT goes into a buffer that is display only. I handles all of the same display codes as #SAY and #ECHO, but is above what triggers look at.

All of this is a general way of looking at it.
Seb: Fri Jul 25, 2008 10:15 am    

Cheers, Vij. I think adding something like what you wrote to all 4 help ages would be useful (saves going into each one and comparing the text).
Tech: Tue Jan 20, 2009 9:04 am    

I've added the Display Output Text KB items to call out these subtle differences more and link them together.
haidivolume: Mon Jul 12, 2010 9:16 am    

Good post.

Chinese Gifts, White Robe
Viewer Comments [9 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net