Board logo

標題: 用制bind制既問題 [打印本頁]

作者: samhon011328    時間: 2009-8-13 20:56     標題: 用制bind制既問題

小弟好鐘意係game入面玩語音...
之前係網上面發現每個角色都有一d自己既語音(即其他人用唔到, e.g. bill 既whao-ho-ho)....
咁我就幫佢地每人都整左個語音menu....
但我唔想每位入去都要打bind b "+Mouse_menu xxxx" xxxx係我用緊既角色既menu
我想用一個menu幫我bind個b制....如下
------------------------------------------------------------------------------------------------------------------
        "charmenu,Survivor,Alive"
        {
                "Center"
                {
                        "command"        ""
                        "text"                "which one?"
                }
                "North"
                {
                        "command"        "bind b "+Mouse_menu louis""
                        "text"                "Louis"
                }
                "NorthEast"
                {
                        "command"        ""
                        "text"                ""
                }        
                "East"
                {
                        "command"        "bind b "+Mouse_menu zoey""
                        "text"                "Zoey"
                }        
                "SouthEast"
                {
                        "command"        ""
                        "text"                ""
                }        
                "South"
                {
                        "command"        "bind b "+Mouse_menu bill""
                        "text"                "Bill"
                }
                "SouthWest"
                {
                        "command"        ""
                        "text"                ""
                }
                "West"
                {
                        "command"        "bind b "+Mouse_menu francis""
                        "text"                "Francis"
                }        
                "NorthWest"
                {
                        "command"        ""
                        "text"                ""
                }
        }
------------------------------------------------------------------------------------------------------------------
但我發現呢個根本用唔到....因為d引號撞哂
我想問應該點樣去set?
作者: 紀敏    時間: 2009-8-13 23:25

引用:
原帖由 samhon011328 於 13-8-2009 08:56 PM 發表
小弟好鐘意係game入面玩語音...
之前係網上面發現每個角色都有一d自己既語音(即其他人用唔到, e.g. bill 既whao-ho-ho)....
咁我就幫佢地每人都整左個語音menu....
但我唔想每位入去都要打bind b "+Mouse_menu xxxx" ...
你試下唔好加""嚮bind key後面果句度
因為其實你就算BIND KEY都係唔洗打"

即係咁樣
"bind b +Mouse_menu xxxx"
作者: SK     時間: 2009-8-14 09:47

引用:
原帖由 紀敏 於 2009-8-13 11:25 PM 發表

你試下唔好加""嚮bind key後面果句度
因為其實你就算BIND KEY都係唔洗打"

即係咁樣
"bind b +Mouse_menu xxxx"
] bind b +mouse_menu QA
bind <key> [command] : attach a command to a key
] "bind b +mouse_menu QA"
Unknown command "bind b +mouse_menu QA"


兩種格式都錯


[ 本帖最後由 SK  於 2009-8-14 12:23 編輯 ]
作者: SK     時間: 2009-8-14 09:48

引用:
原帖由 samhon011328 於 2009-8-13 08:56 PM 發表


如果搞唔掂索性試下呢個方法 ( 未經測試 )

------------------------------------------------------------------------------------------------------------------
        "charmenu,Survivor,Alive"
        {
                "Center"
                {
                        "command"        ""
                        "text"                "which one?"
                }
                "North"
                {
                        "command"       "exec Louis"
                        "text"                "Louis"
                }
                "NorthEast"
                {
                        "command"        ""
                        "text"                ""
                }        
                "East"
                {
                        "command"       "exec Zoey"
                        "text"                "Zoey"
                }        
                "SouthEast"
                {
                        "command"        ""
                        "text"                ""
                }        
                "South"
                {
                        "command"        "exec Bill"
                        "text"                "Bill"
                }
                "SouthWest"
                {
                        "command"        ""
                        "text"                ""
                }
                "West"
                {
                        "command"       "exec Francis"
                        "text"                "Francis"
                }        
                "NorthWest"
                {
                        "command"        ""
                        "text"                ""
                }
        }
------------------------------------------------------------------------------------------------------------------

再喺 Folder cfg 開四個 *.cfg file

1 : Louis.cfg
     bind "b" "+Mouse_menu Louis"

2 : Zoey.cfg
     bind "b" "+Mouse_menu Zoey"

3 : Bill.cfg
     bind "b" "+Mouse_menu Bill"

4 : Francis.cfg
     bind "b" "+Mouse_menu Francis"




[ 本帖最後由 SK  於 2009-8-14 12:35 編輯 ]
作者: SK     時間: 2009-8-14 11:09

如果都係唔得, 用呢個 : ( 測試成功 )

alias "+SL" "+Mouse_menu louis"
alias "-SL" "-Mouse_menu louis"
alias "+SZ" "+Mouse_menu zoey"
alias "-SZ" "-Mouse_menu zoey"
alias "+SB" "+Mouse_menu bill"
alias "-SB" "-Mouse_menu bill"
alias "+SF" "+Mouse_menu francis"
alias "-SF" "-Mouse_menu francis"
alias "RM" "RM1"
alias "RM1" "bind b +SL;alias RM RM2"
alias "RM2" "bind b +SZ;alias RM RM3"
alias "RM3" "bind b +SB;alias RM RM4"
alias "RM4" "bind b +SF;alias RM RM1"
bind "=" "RM"


放入一個 *.cfg 裡面

如果想知而家用緊邊一個 Menu :

ECHO

alias "+SL" "+Mouse_menu louis"
alias "-SL" "-Mouse_menu louis"
alias "+SZ" "+Mouse_menu zoey"
alias "-SZ" "-Mouse_menu zoey"
alias "+SB" "+Mouse_menu bill"
alias "-SB" "-Mouse_menu bill"
alias "+SF" "+Mouse_menu francis"
alias "-SF" "-Mouse_menu francis"
alias "RM" "RM1"
alias "RM1" "echo Louis;bind b +SL;alias RM RM2"
alias "RM2" "echo Zoey;bind b +SZ;alias RM RM3"
alias "RM3" "echo Bill;bind b +SB;alias RM RM4"
alias "RM4" "echo Francis;bind b +SF;alias RM RM1"
bind "=" "RM"


開 Console 就會睇到




SAY

alias "+SL" "+Mouse_menu louis"
alias "-SL" "-Mouse_menu louis"
alias "+SZ" "+Mouse_menu zoey"
alias "-SZ" "-Mouse_menu zoey"
alias "+SB" "+Mouse_menu bill"
alias "-SB" "-Mouse_menu bill"
alias "+SF" "+Mouse_menu francis"
alias "-SF" "-Mouse_menu francis"
alias "RM" "RM1"
alias "RM1" "say Louis Radial Menu;bind b +SL;alias RM RM2"
alias "RM2" "say Zoey Radial Menu;bind b +SZ;alias RM RM3"
alias "RM3" "say Bill Radial Menu;bind b +SB;alias RM RM4"
alias "RM4" "say Francis Radial Menu;bind b +SF;alias RM RM1"
bind "=" "RM"





[ 本帖最後由 SK  於 2009-8-14 12:32 編輯 ]




歡迎光臨 IPvE vLan 遊戲平台|網吧系統 (https://www.ipve.com/bbs/) Powered by Discuz! 6.0.0