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
// 簡(jiǎn)便方式旅东,創(chuàng)建cliff在sw方向人芽,默認(rèn)ne回來(lái)唐断,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í)