Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Message
| Sorry, I was thinking of Smaug.
ROM has its commands hard-coded into interp.c file.
For example:
const struct cmd_type cmd_table [] =
{
/*
* Common movement commands.
*/
{ "north", do_north, POS_STANDING, 0, LOG_NEVER, 0 },
{ "east", do_east, POS_STANDING, 0, LOG_NEVER, 0 },
{ "south", do_south, POS_STANDING, 0, LOG_NEVER, 0 },
{ "west", do_west, POS_STANDING, 0, LOG_NEVER, 0 },
{ "up", do_up, POS_STANDING, 0, LOG_NEVER, 0 },
{ "down", do_down, POS_STANDING, 0, LOG_NEVER, 0 },
/*
* Common other commands.
* Placed here so one and two letter abbreviations work.
*/
{ "at", do_at, POS_DEAD, L6, LOG_NORMAL, 1 },
{ "cast", do_cast, POS_FIGHTING, 0, LOG_NORMAL, 1 },
You would have to change those. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|