Bug(?) in 'Check Area' Routine...

Posted by Gatewaysysop2 on Thu 22 Jul 2004 08:13 AM — 5 posts, 24,336 views.

USA #0
Nick,

There appears to be a bug in the check areas routine. I have two mobs setup to use the 'knee' skill but for some reason, it reads this as an attempt to use the 'kneel' social. Obviously they're similar so I would guess that has a lot to do with the mismatching in the search routine.

Anyway, just thought you should know it's picking that one up a bit wrong when it provides the summary of skills and socials that are being used. Not so much a functionality problem as it is annoying though. I spent more time trying to figure out where I'd used 'kneel' in any of my mobs than was necessary. :)



Australia Forum Administrator #1
Unfortunately the skills and socials seem a bit ambiguous. Try this:


<1000hp 100m 110mv> 
knee
You kneel down.


See how typing "knee" invokes the "kneel" social?

Thus when the Area Editor checks your mob programs, it uses the same checks that SMAUG does, that you don't have to type the whole word. Thus when it sees "knee" and it matches the start of the "kneel" social it counts it as a match.
USA #2
I'm curious about whether or not this is the case during combat as well. Has anyone given it a try? I can't remember off the top of my head whether I've ever had a problem with it trying to make my mobs 'kneel' during a fight. In fact, if memory serves, I've never seen them do that before. I'm almost certain that they've 'kneed' their opponent during the fight though.

Just something to consider.
USA #3
Just a quick update:

Verified using the pre-compiled smaug 1.4a available here (don't have a compiler handy on the laptop, no room for Cygwin)...

Using 'knee' during combat works. Typing 'knee' appears to work too, asking for a target??

Typing 'kneel' invoked the social.

I know this was never a problem in the FUSS package I had been using (and am still modifying) back at home. I can check on it in August when I get back, but I am certain that it works fine during combat, which is the only time the mobs try to knee anyone. :)

Anyway, just wanted to point out that it does in fact differentiate when it's supposed to, and apparently outside of combat too.

Out of curiosity, did the test character you used actually have the knee skill? If not, it probably skipped it and tried to do the social instead. I know I 'sset self all 100' before I tried this using a player character.

Australia Forum Administrator #4
OK, it should probably check in a different order. I have added that as bug/suggestion #520.