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

 Related 
Contents
User Interface I/O
  #AFK
  #H+
  #H-
  #HISTORY
  #INPUT
  #MENU
  #MESSAGE
  #PICK
  #PROMPT
  #YESNO
  %pick
  %yesno
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dblist
  %dbmax
  %dbmin
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %item
  %lastdir
  %left
  %leftback
  %len
  %literal
  %look
  %lower
  %match
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %param
  %parsemode
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommob
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomobj
  %roomportal
  %roomvnum
  %roomzone
  %round
  %setglobal
  %sort
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
Related Links:
  IMAP MessageStore
  Setting up the automapper.
  Creating a Database
  Configuring the Mapper
  Manual Mapper configuration
  Overriding the Mapper
  Improving Room Detection
  Emulation
  MUD Prompt
  Trigger Options
  Trigger Types
  Command Reference
  #MXPTRIG
  #OK
  #PICK
  #PROMPT
  #SETPROMPT
  #STEP
  #T-
  #T+
  #TAG
  #TRIGGER
  Function Reference
  %prompt
  Trigger Command Options
  Username
  Password
  ConnectionString
  LoginPrompt
  Prompt
  Confirm
  IMAP Email Demo
  Licensing
  %prompt
  Display
  #MXPTRIG
  #OK
  #ONINPUT
  #PICK
  #PROMPT
  Triggers
  #SETPROMPT
  #SHOWPROMPT
  #STEP
  #T-
  #T+
  #TAG
  #TRIGGER
  Windows
  Sessions
  Editing Triggers
  Events
  User Interface I/O
  Creating a Database
  Configuration
  Manual Mapper configuration
  Overriding the Mapper
  Improving Room Detection
  Introduction to Events
  Emulation
  Prompt
  DNS Lookup
  General GSL
  Simutronics Support
  Character
  0: For the Novice
  4: Simple Functions
  6: Branching
  7: More Flow Control
  8: Writing Functions
  #SECTION
  ATCP
  cmd
  Triggers
  Cannot connect to server
  %sqldb
  GMCP Support
%prompt [[%prompt]] 
prompt

Syntax: %prompt(d,s,p)

prompt the user for a value. d is the default value displayed in the prompt window. s is the optional string message to give to the user ("Enter a value" is used by default). And p, if present, indicates the character to echo instead of the characters typed (for example, use "*" to display asterisks when enter a password value).

Examples:

amount=%prompt(500,"How many to sell?")
displays a dialog box with the default value 500, and assigns the number (or string) entered to the variable amount.

#SEND %prompt("","Enter password","#")
prompts for a password string, hides the input while typing, and sends it to the mud without displaying it in the output buffer.

NOTE: Since #SEND can also be used to send the contents of a file to the mud, this example won't work, if the password is identical to a filename in the zMUD directory.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net