Esempio n. 1
0
 def add_default_commands(self):
     """Add selected Evennia built-in commands"""
     from evennia.commands.default import (account, building, system, admin,
                                           comms)
     # Player-specific commands
     self.add(account.CmdOOCLook())
     self.add(account.CmdIC())
     self.add(account.CmdOOC())
     self.add(account.CmdOption())
     self.add(account.CmdQuit())
     self.add(account.CmdPassword())
     self.add(account.CmdColorTest())
     self.add(account.CmdQuell())
     self.add(building.CmdExamine())
     # system commands
     self.add(system.CmdReset())
     self.add(system.CmdShutdown())
     self.add(system.CmdPy())
     # Admin commands
     self.add(admin.CmdDelAccount())
     self.add(admin.CmdNewPassword())
     # Comm commands
     self.add(comms.CmdAddCom())
     self.add(comms.CmdDelCom())
     self.add(comms.CmdCemit())
     self.add(comms.CmdIRC2Chan())
     self.add(comms.CmdRSS2Chan())
Esempio n. 2
0
    def at_cmdset_creation(self):
        "Populates the cmdset"

        # Account-specific commands
        self.add(account.CmdOOCLook())
        self.add(account.CmdIC())
        self.add(account.CmdOOC())
        self.add(account.CmdCharCreate())
        self.add(account.CmdCharDelete())
        # self.add(account.CmdSessions())
        self.add(account.CmdWho())
        self.add(account.CmdOption())
        self.add(account.CmdQuit())
        self.add(account.CmdPassword())
        self.add(account.CmdColorTest())
        self.add(account.CmdQuell())
        self.add(account.CmdStyle())

        # nicks
        self.add(general.CmdNick())

        # testing
        self.add(building.CmdExamine())

        # Help command
        self.add(help.CmdHelp())

        # system commands
        self.add(system.CmdReload())
        self.add(system.CmdReset())
        self.add(system.CmdShutdown())
        self.add(system.CmdPy())

        # Admin commands
        self.add(admin.CmdNewPassword())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdIRCStatus())
        self.add(comms.CmdRSS2Chan())
        self.add(comms.CmdGrapevine2Chan())
Esempio n. 3
0
    def at_cmdset_creation(self):

        # Player OOC commands
        self.add(CmdOOCLook())
        self.add(player.CmdIC())
        self.add(player.CmdOOC())
        self.add(player.CmdCharCreate())

        # Player-specific commands
        self.add(player.CmdWho())
        self.add(player.CmdOption())
        self.add(player.CmdQuit())
        self.add(player.CmdPassword())
        self.add(player.CmdColorTest())
        self.add(player.CmdQuell())

        # testing
        self.add(building.CmdExamine())

        # Help command
        self.add(help.CmdHelp())

        # system commands
        self.add(system.CmdReload())
        self.add(system.CmdReset())
        self.add(system.CmdShutdown())
        self.add(system.CmdPy())

        # Admin commands
        self.add(admin.CmdDelPlayer())
        self.add(admin.CmdNewPassword())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdRSS2Chan())
Esempio n. 4
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super(CharacterCmdSet, self).at_cmdset_creation()
        #
        # any commands you add below will overload the default ones.
        #

        self.add(command.CmdWear())
        self.add(command.CmdRemove())
        self.add(command.CmdScore())
        self.add(command.CmdInventory())
        self.add(command.CmdWield())
        self.add(command.CmdUnwield())
        self.add(command.CmdSecure())
        self.add(command.CmdDetach())
        self.add(command.CmdSkin())
        self.add(command.CmdMap())
        self.add(command.CmdDrawMap())
        self.add(command.CmdWalkTo())
        self.add(command.CmdStat())
        self.add(command.CmdFollow())
        self.add(command.CmdLose())

        # Misc
        self.add(gametime.CmdTime())
        self.add(command.CmdHonors())
        #self.add(command.MobCalm())

        # Comm commands
        self.add(comms.CmdAddCom())
        self.add(comms.CmdDelCom())
        self.add(comms.CmdAllCom())
        self.add(comms.CmdChannels())
        self.add(comms.CmdCdestroy())
        self.add(comms.CmdChannelCreate())
        self.add(comms.CmdClock())
        self.add(comms.CmdCBoot())
        self.add(comms.CmdCemit())
        self.add(comms.CmdCWho())
        self.add(comms.CmdCdesc())
        self.add(comms.CmdPage())
        self.add(comms.CmdIRC2Chan())
        self.add(comms.CmdIRCStatus())
        self.add(comms.CmdRSS2Chan())

        # TCN: Melee (basic combat skills) go here
        self.add(melee.CmdAssess2())
        self.add(melee.CmdWielded())
        self.add(melee.CmdAttack())
        self.add(melee.CmdDefend())
        self.add(melee.CmdFeint())
        self.add(melee.CmdMaul())
        self.add(melee.CmdStop())

        # ASH: Fae_Magic skills start here
        self.add(fae_magic.Regeneration())
        self.add(fae_magic.Mend())
        self.add(fae_magic.FaeFire())
        self.add(fae_magic.Web())
        self.add(fae_magic.Wisp())
        self.add(fae_magic.Circle())
        self.add(fae_magic.Pierce())

        # TCN: Default exit error commands (incomplete)
        self.add(movecommands.CmdExitErrorNorth())
        self.add(movecommands.CmdExitErrorEast())
        self.add(movecommands.CmdExitErrorSouth())
        self.add(movecommands.CmdExitErrorWest())

        self.add(movecommands.CmdExitErrorNorthWest())
        self.add(movecommands.CmdExitErrorNorthEast())
        self.add(movecommands.CmdExitErrorSouthWest())
        self.add(movecommands.CmdExitErrorSouthEast())

        self.add(movecommands.CmdExitErrorUp())
        self.add(movecommands.CmdExitErrorDown())

        # TCN: emotes.py
        self.add(emotes.CmdSmile())
        self.add(emotes.CmdGrin())
        self.add(emotes.CmdBow())
        self.add(emotes.CmdKneel())
        self.add(emotes.CmdBeg())
        self.add(emotes.CmdPray())
        self.add(emotes.CmdAnger())
        self.add(emotes.CmdSmirk())
        self.add(emotes.CmdNod())
        self.add(emotes.CmdShake())
        self.add(emotes.CmdSalute())
        self.add(emotes.CmdWink())
        self.add(emotes.CmdDance())
        self.add(emotes.CmdPat())
        self.add(emotes.CmdWince())
        self.add(emotes.CmdApologize())
        self.add(emotes.CmdThank())
        self.add(emotes.CmdLaugh())
        self.add(emotes.CmdWave())
        self.add(emotes.CmdCurtsey())
        self.add(emotes.CmdHug())
        self.add(emotes.CmdKiss())
        self.add(emotes.CmdFrown())
        self.add(emotes.CmdMutter())
        self.add(emotes.CmdScream())
        self.add(emotes.CmdWhine())
        self.add(emotes.CmdPoke())
        self.add(emotes.CmdTear())
        self.add(emotes.CmdCry())
        self.add(emotes.CmdPoint())
        self.add(emotes.CmdFacepalm())
        self.add(emotes.CmdParagon())
        self.add(emotes.CmdSmooth())
        self.add(emotes.CmdFistBump())
        self.add(emotes.CmdHi())
        self.add(emotes.CmdHeh())
        self.add(emotes.CmdOK())
        self.add(emotes.CmdYo())
        self.add(emotes.CmdPonder())
        self.add(emotes.CmdShrug())
        self.add(emotes.CmdGreet())
        self.add(emotes.CmdPet())