do_function( ch, &do_say, string );
if( fail > 0 )
interpret( victim, buf );
if (!str_prefix(buf, "influences"))
{
send_to_char("You don't have enough control for that.\n\r",ch);
return;
}
if (expect(buf, "influences", "You don't have enough control for that.\n\r", ch)) return;
// expect handles send_to_char for you.
I have a dominate command which should compel the victim, if the user get's enough successes, to do something. But, after looking at it, it does not look like it is affecting the victim. I'm looking at it and I think I see a few things wrong with it, but I'm not confident in my own coding yet to make sure.
Shouldn't the char buf[MAX_INPUT_LENGTH] be char buf [MAX_STRING_LENGTH]? And unless I'm mistaken, it's actually making the user say something regardless of what the command is, as opposed to what the compel should be doing or am I totally off base on it?
Can someone help me fix this? Thank you.
Arholly