testing.py

来自「这也是 Premier.Press.MUD.GAME.PROGRAMMING.」· Python 代码 · 共 15 行

PY
15
字号
import BetterMUD
import data.logics.logic

class superglue( data.logics.logic.logic ):

    def Run( self, action, arg1, arg2, arg3, arg4, data ):
        me = BetterMUD.character( self.me )
        if action == "canleaveroom":
            me.DoAction( "error", 0, 0, 0, 0, "You're superglued to the ground. Sit tight, you ain't goin nowhere." )
            return 1
        if action == "messagelogic":
            if data == "superglue remove":
                self.mud.AddActionAbsolute( 0, "dellogic", 0, self.me, 0, 0, "superglue" )
                self.mud.AddActionAbsolute( 0, "vision", me.Room(), 0, 0, 0, "The superglue on " + me.Name() + " wears off!" )

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?