The past couple of days have been a rather interesting challenge, adding
room progs and obj progs to  OLC2 is not something I'd recommend for
most to try **shudder**.
Anyways, my question isn't about adding the progs in themselves (they're
in, and actually working very nicely), it's about adding variables and
checks and whatnot.. For example:
On DR, the code's been modified so that a person can actually smell (not
as in the sense, but as in, take a shower). I'm working with adding
progs so that mobs and objects and whatnot can detect a person's odor,
hlength (hair length) and disposition, yet I'm running into a bit of
major problem. I've spent most of the weekend on this myself, so maybe
someone can offer what I'm doing wrong here.

Here's the code, from mob_prog.c:

#define CHK_ODOR        (52)            /*how does $n smell*/
#define CHK_HAIR        (53)            /*how long is $n's hair*/
#define CHK_DISPOSITION (54)            /*what kind of character is $n*/

in the keywords (the last 3):

    "odor",
    "hair",
    "disposition",

in int cmd_eval_mob (case 3)
case CHK_ODOR: if ( lval_char != NULL && !IS_NPC(lval_char) ) lval =
lval_char->pcdata->bathe; break;
case CHK_HAIR:
if ( lval_char != NULL && !IS_NPC(lval_char) ) lval = lval_char-> 
pcdata->hlength; break;
case CHK_DISPOSITION:
if ( lval_char != NULL && !IS_NPC(lval_char) ) lval = lval_char->
pcdata->disposition; break;

However, the trigger's just not being activated at all.. Am I missing
something here? Here's the code I've got to check the trig, make sure
it's working.

Vnum:       [1204]
Code:
if odor $n > 100
say DAMN, $n, take a shower!!
endif
say testing
Please, ignore the formatting, blame it on Word. It seems to enjoy
wordwrap better than I do. What am I missing here??
-------------------------------------------
TJW: Head tech, Dreamless Realms Mud
Personal: http://twhiting.kyndig.com
Mud: http://drealms.kyndig.com
Snippets http://drealms.kyndig.com/snippets
Telnet telnet://drealms.kyndig.com:9275
The OLC2 Pages http://olc.kyndig.com
-------------------------------------------




Reply via email to