On Sat, 6 Feb 1999, Edward J Glamkowski wrote: > Having just added mounts to my mud, I added in a > POS_MOUNTED to allow for certain skills that can be > used only from horseback (e.g. a jousting skill). > To this end, I am thinking of making fighting a state > instead of a position so I can have players engaged > in combat while remaining mounted. > > But before I do this, I would like to hear opinions on > making such a change. The alternative would be to > create an additional position POS_MOUNTED_FIGHTING > and everywhere it currently checks for POS_FIGHTING > have it also check for POS_MOUNTED_FIGHTING. I don't know what your mount system looks like, but I'm assuming that within your char_data struct there is a pointer to the mounted mob. The easiest way to achieve your goal is to just put a check in your "mounted only" skills sorta like this: if (!GET_MOUNT(ch)) { send_to_char("You can only use this skill when mounted.\r\n", ch); return; } Of course you'll want to change GET_MOUNT to whatever your macro or var is. Much easier than playing around with positions or states. My $0.03 (inflation is killing us all) "Misery is boundless" -Xual the Torturer, on the Eve of the Sundering. Danathara Online RPG telnet://danathara.ml.org:4000 +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST