def at_cmdset_creation(self): from evennia import default_cmds self.add(default_cmds.CmdHelp()) self.add(default_cmds.CmdLook()) self.add(default_cmds.CmdGet()) self.add(default_cmds.CmdDrop()) self.add(default_cmds.CmdInventory()) self.add(default_cmds.CmdExamine()) self.add(default_cmds.CmdPy())
def at_cmdset_creation(self): """ Populates the cmdset """ super().at_cmdset_creation() # remove these so they don't exist anymore alongside their # translated versions. self.remove(default_cmds.CmdLook()) self.remove(default_cmds.CmdInventory()) self.remove(default_cmds.CmdGet()) self.remove(default_cmds.CmdDrop()) self.remove(default_cmds.CmdGive()) # # overriding default commands with they translated version: # self.add(translated.CmdLook()) self.add(translated.CmdInventory()) self.add(translated.CmdGet()) self.add(translated.CmdDrop()) self.add(translated.CmdGive()) # slow exit module self.add(slow_exit.CmdSetSpeed()) # new commands from scratch: self.add(wilderness.CmdOrienta()) self.add(general.CmdRimappa()) self.add(general.CmdVai()) # custom building tools: self.add(building.CmdTunnel()) self.add(building.CmdPortal()) # noexit "fake" commands: self.add(noexit.CmdNord()) self.add(noexit.CmdSud()) self.add(noexit.CmdOvest()) self.add(noexit.CmdEst()) self.add(noexit.CmdAlto()) self.add(noexit.CmdBasso()) self.add(noexit.CmdDentro()) self.add(noexit.CmdFuori()) self.add(noexit.CmdNordovest()) self.add(noexit.CmdNordest()) self.add(noexit.CmdSudovest()) self.add(noexit.CmdSudest()) # # disabled: # self.remove( default_cmds.CmdWhisper()) # whispers are handled by CmdSay self.remove(default_cmds.CmdHome())
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)