快速開始 Building Quickstart 2018-04-21

https://github.com/evennia/evennia/wiki/Building-Quickstart

evennia里面命令格式為:

command[/switch/switch...] [arguments ...]

超級(jí)管理員<--->開發(fā)者 @quell @unquell

創(chuàng)建物品

help create
@create box
help name
@name box = very large box;box;very;crate
help alias
@alias 
drop box 
examine box // 顯示所有技術(shù)細(xì)節(jié)
look box
@lock box
@lock box = get:false()
get box
@set box/get_err_msg = It's way too heavy for you to lift.
get box

腳本

help script
// 賦予并啟動(dòng)一個(gè)腳本,腳本默認(rèn)路徑evennia/contrib/
@script self = tutorial_examples.bodyfunctions.BodyFunctions
// 檢查對(duì)象上的腳本
@script self 
@examine self
// 停止腳本
@script/stop self = tutorial_examples.bodyfunctions.BodyFunctions

對(duì)象

默認(rèn)對(duì)象類路徑evennia/contrib/

@create/drop button:tutorial_examples.red_button.RedButton

制作房間

help dig
@dig[/switches] <roomname>[;alias;alias...][:typeclass]
        [= <exit_to_there>[;alias][:typeclass]]
           [, <exit_to_here>[;alias][:typeclass]]
@dig house = large red door;door;in,to the outside;out
// 簡便方式,創(chuàng)建cliff在sw方向,默認(rèn)ne回來,southwest,northeast自動(dòng)附帶
@tunnel sw = cliff
// 開新的方向

@open north;n,south,s = house

清理房間

@tel/switch [<object> =] <target location>
@teleport box = house
very large box is leaving Limbo, heading for house.
Teleported very large box -> house.
> @find box
One Match(#1-#8):
very large box(#8) - src.objects.objects.Object
// 知道物品編號(hào)的話,不需要到物品所在房間可以直接移動(dòng)
@teleport #8 = here
@destroy box
@find house
2 Matches(#1-#14):
   house(#5) - typeclasses.rooms.Room
   house(#8) - typeclasses.rooms.Room
@del #5
Are you sure you want to destroy house(#5) [yes]/no?
house was destroyed. Exits to and from house were destroyed as well.

增加命令幫助

@sethelp/add MyTopic = This help topic is about ... 

添加一個(gè)世界

@unquell
@batchcommand tutorial_world.build

可以參考https://github.com/evennia/evennia/blob/master/evennia/contrib/tutorial_world/build.ev 學(xué)習(xí)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容