- elif self.mode.name == 'teleport':
- self.log_msg("@ May teleport to %s" % (self.teleport_target_host)),
- self.log_msg("@ Enter 'YES!' to enthusiastically affirm.");
- elif self.mode.name == 'annotate' and self.explorer in self.game.info_db:
- info = self.game.info_db[self.explorer]
- if info != '(none)':
- self.input_ = info
- elif self.mode.name == 'portal' and self.explorer in self.game.portals:
- self.input_ = self.game.portals[self.explorer]
- elif self.mode.name == 'password':
- self.input_ = self.password
-
- def help(self):
- self.log_msg("HELP:");
- self.log_msg("chat mode commands:");
- self.log_msg(" /nick NAME - re-name yourself to NAME");
- self.log_msg(" /msg USER TEXT - send TEXT to USER");
- self.log_msg(" /help - show this help");
- self.log_msg(" /%s or /play - switch to play mode" % self.keys['switch_to_play']);
- self.log_msg(" /%s or /study - switch to study mode" % self.keys['switch_to_study']);
- self.log_msg("commands common to study and play mode:");
- if 'MOVE' in self.game.tasks:
- self.log_msg(" %s - move" % ','.join(self.movement_keys));
- self.log_msg(" %s - switch to chat mode" % self.keys['switch_to_chat']);
- self.log_msg("commands specific to play mode:");
- self.log_msg(" %s - enter terrain password" % self.keys['switch_to_password']);
- if 'WRITE' in self.game.tasks:
- self.log_msg(" %s - write following ASCII character" % self.keys['switch_to_edit']);
- if 'FLATTEN_SURROUNDINGS' in self.game.tasks:
- self.log_msg(" %s - flatten surroundings" % self.keys['flatten']);
- self.log_msg(" %s - switch to study mode" % self.keys['switch_to_study']);
- self.log_msg("commands specific to study mode:");
- self.log_msg(" %s - switch to play mode" % self.keys['switch_to_play']);
- if 'MOVE' not in self.game.tasks:
- self.log_msg(" %s - move" % ','.join(self.movement_keys));
- self.log_msg(" %s - annotate terrain" % self.keys['switch_to_annotate']);
- self.log_msg(" %s - toggle terrain/control view" % self.keys['toggle_map_mode']);