快速开始 Building Quickstart 2018-04-21

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

evennia里面命令格式为:

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

超级管理员<--->开发者 @quell @unquell

创建物品

help create
@create box
help name
@name box = very large box;box;very;crate
help alias
@alias 
drop box 
examine box // 显示所有技术细节
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
// 赋予并启动一个脚本,脚本默认路径evennia/contrib/
@script self = tutorial_examples.bodyfunctions.BodyFunctions
// 检查对象上的脚本
@script self 
@examine self
// 停止脚本
@script/stop self = tutorial_examples.bodyfunctions.BodyFunctions

对象

默认对象类路径evennia/contrib/

@create/drop button:tutorial_examples.red_button.RedButton

制作房间

help dig
@dig[/switches] [;alias;alias...][:typeclass]
        [= [;alias][:typeclass]]
           [, [;alias][:typeclass]]
@dig house = large red door;door;in,to the outside;out
// 简便方式,创建cliff在sw方向,默认ne回来,southwest,northeast自动附带
@tunnel sw = cliff
// 开新的方向

@open north;n,south,s = house

清理房间

@tel/switch [ =] 
@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
// 知道物品编号的话,不需要到物品所在房间可以直接移动
@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 ... 

添加一个世界

@unquell
@batchcommand tutorial_world.build

可以参考https://github.com/evennia/evennia/blob/master/evennia/contrib/tutorial_world/build.ev 学习

你可能感兴趣的:(快速开始 Building Quickstart 2018-04-21)