Exemplo n.º 1
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super(CharacterCmdSet, self).at_cmdset_creation()
        self.remove(default_cmds.CmdDrop())
        self.remove(default_cmds.CmdGet())
        self.remove(default_cmds.CmdGive())
        self.remove(default_cmds.CmdHome())
        self.remove(default_cmds.CmdInventory())
        self.remove(default_cmds.CmdPose())
        self.remove(default_cmds.CmdSay())
        self.remove(default_cmds.CmdSetDesc())
        self.remove(default_cmds.CmdWho())
        self.remove(default_cmds.CmdWhisper())
        self.remove(default_cmds.CmdAbout())
        self.remove(default_cmds.CmdTime())
        self.remove(default_cmds.CmdAccess())
        self.remove(default_cmds.CmdNick())

        # Add Vancia commands
        self.add(CmdAfk())
        self.add(CmdEmote())
        self.add(CmdSay())
        self.add(CmdTell())
        self.add(CmdWho())
Exemplo n.º 2
0
    def at_cmdset_creation(self):
        from evennia import default_cmds

        self.add(default_cmds.CmdHelp())
        self.add(default_cmds.CmdSay())
        self.add(default_cmds.CmdPose())
        self.add(default_cmds.CmdPage())
        self.add(default_cmds.CmdColorTest())
Exemplo n.º 3
0
 def at_cmdset_creation(self):
     self.add(CmdHit())
     self.add(CmdParry())
     self.add(CmdFeint())
     self.add(CmdDefend())
     self.add(CmdDisengage())
     self.add(CmdEndAll())
     self.add(default_cmds.CmdPose())
     self.add(default_cmds.CmdSay())
Exemplo n.º 4
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super().at_cmdset_creation()
        #
        # any commands you add below will overload the default ones.
        #
        self.add(CmdAttack())
        self.add(CmdBuy())
        self.add(CmdBrief())
        self.add(CmdCast())
        self.add(CmdClear())
        self.add(CmdDebug())
        self.add(CmdDot())
        self.remove(default_cmds.CmdDrop())
        self.add(CmdDrop())
        self.add(CmdEquip())
        self.add(CmdExpress())
        self.remove(default_cmds.CmdGet())
        self.add(CmdGet())
        self.remove(default_cmds.CmdGive())
        self.remove(default_cmds.CmdHome())
        self.add(CmdHide())
        self.remove(default_cmds.CmdInventory())
        self.add(CmdInventory())
        self.add(CmdLearn())
        self.remove(default_cmds.CmdLook())
        self.add(CmdLook())
        self.add(CmdMake())
        self.remove(default_cmds.CmdName())
        self.add(CmdName())
        self.remove(default_cmds.CmdNick())
        self.remove(default_cmds.CmdPose())
        self.add(CmdPunch())
        self.add(CmdRest())
        self.add(CmdReveal())
        self.remove(default_cmds.CmdSay())
        self.add(CmdSay())
        self.add(CmdSheet())
        self.add(CmdShout())
        self.add(CmdShow())
        self.add(CmdSearch())
        self.add(CmdSell())
        self.add(CmdUnequip())
        self.remove(default_cmds.CmdWhisper())
        self.add(CmdWhisper())
        self.remove(default_cmds.CmdWho())
        self.add(CmdWho())

        # add back the original name command as 'rename'
        rename = default_cmds.CmdName(key="rename", aliases="")
        self.add(rename)