本帖最后由 cyqsimon 于 2014-2-9 03:17 编辑
Searge: Players should see a scoreboard objective based on which team they joined? Maybe /scoreboard objectives setdisplay team.yellow theObjective
Searge: 应该能根据玩家们所处的队伍来决定他们能看到什么计分板objectives项?也许这样吧 /scoreboard objectives setdisplay team.yellow theObjective
注1:/scoreboard objectives setdisplay team.yellow theObjective 可以把名字为theObjective的objective显示给所有在黄队(team.yellow)中的玩家
注2:没听说过计分板的请自己去读wiki
这对于地图制作者应该是一个非常有用的功能,它不仅使得多队间的竞争变得更加有趣,其实也给了地图制作者“存储多套分数模板”的能力,示例如下:(非技术宅请自行略过)
添加objectives项:
/scoreboard objectives add eg1 dummy example-one #这是第一个objectives项
/scoreboard objectives add eg2 dummy example-two #这是第二个objectives项
/scoreboard objectives add eg3 dummy example-three #这是第三个objectives项
/scoreboard objectives add eg4 dummy example-four #这是第四个objectives项
创建teams:
/scoreboard teams add show-one #这是第一套模板
/scoreboard teams add show-two #这是第二套模板
设置objectives项显示:
/scoreboard objectives setdisplay show-one sidebar eg1 #把第一个objectives项加入第一套模板
/scoreboard objectives setdisplay show-one sidebar eg2 #把第二个objectives项加入第一套模板
/scoreboard objectives setdisplay show-two sidebar eg3 #把第三个objectives项加入第二套模板
/scoreboard objectives setdisplay show-two sidebar eg4 #把第四个objectives项加入第二套模板
使用:
/scoreboard teams join show-one <player> #让某个玩家看见第一套模板(包含第一、二个objectives项)
/scoreboard teams join show-two <player> #让某个玩家看见第二套模板(包含第三、四个objectives项)
/scoreboard teams leave <player> #让某个玩家看不见第一套模板(包含第一、二个objectives项)
/scoreboard teams leave <player> #让某个玩家看不见第二套模板(包含第三、四二个objectives项) |
此调整对于计分板使用方式的最终影响还未正式确定,以后请以官方说法为准。