精華區beta mud_sanc 關於我們 聯絡資訊
I-082 pick 原文:display a picklist and let the user choose one or more strings from the list 中文:跳出一個選單提示框,供使用者選擇項目。它有三個宣告符號:    "p:" 宣告該項為說明文字。    "o:1" 宣告本選單是單選;不宣告時,預設複選。    "*" 宣告該項為預設反白選項。    如果選項的文字和執行的內容要分開設,如一個選項:你好嗎?,而執行內容為    say how are you?時,用":"區隔,即"你好嗎?:say how are you?" 格式:%pick(s1,s2,s3,...) 範例:#VAR mode %pick("p:Pick a Mode of Communication","o:1","say", "ctell","gtell","auction","shout","dream","gossip")    跳出一個選單提示框,說明文字為:Pick a Mode of Communication    設定為單選:o:1    項目有:    say    ctell    gtell    auction    shout    dream    gossip    選擇後按下OK,會將內容紀錄到變數mode。     message="reHuHu"    #VAR tellList {hmml5|hmml|*magdalene|windman}    #FORALL %pick('p:Select whom to answer',@tellList) {tell %i @message}    建立兩個變數:    message內容為reHuHu    tellList則是字串表: hmml5|hmml|magdalene|windman    執行後會跳出選單,選項有:    hmml5    hmml(假設選中本項)    magdalene(有*字號,所以預設反白此項)    windman    選擇後,按下OK,將選中的項目代到%i,下指令:tell hmml reHuHu。