import mud, mudsys
def cmd_poke(ch, cmd, arg):
try:
tgt, = mud.parse_args(ch, True, cmd, arg, "ch.room.noself")
except:
return
mud.message(ch, tgt, None, None, True, "to_char", "You poke $N.")
mud.message(ch, tgt, None, None, True, "to_vict", "$n pokes you.")
mud.message(ch, tgt, None, None, True, "to_room", "$n pokes $N.")
tgt.act("say That smarts.")
mudsys.add_cmd("poke", None, cmd_poke, "player", False)
It's hard to say if there's any particular Python-specific knowledge you would need. I think that the hard part here, really, is designing the system and the relevant data and data flows; the implementation is relatively simple as far as programming is concerned: there's just a fair bit of it to do. Perhaps you could say that it's the kind of programming that has a very high thought to line of code ratio.