Thanks. It's ROMS version of it, mainly because I couldn't figure out what you meant. It works though, so thank you!
Code:
ACMD(do_sreport)
{
char buf[MAX_INPUT_LENGTH];
sprintf (buf,
"\x1B[1;32mYou say 'I have %d/%d HP, %d/%d MANA and %d/%d MOVES.'\x1B[0;0m\r\n",
GET_HIT(ch), GET_MAX_HIT(ch),
GET_MANA(ch), GET_MAX_MANA(ch), GET_MOVE(ch), GET_MAX_MOVE(ch));
send_to_char (ch, buf);
sprintf (buf, "\x1B[1;32m$n says 'I have %d/%d HP, %d/%d MANA and %d/%d MOVES.'\x1B[0;0m\r\n",
GET_HIT(ch), GET_MAX_HIT(ch),
GET_MANA(ch), GET_MAX_MANA(ch), GET_MOVE(ch), GET_MAX_MOVE(ch));
act (buf, FALSE, ch, NULL, NULL, TO_ROOM);
return;
}
Edit before posting: just checked. It works great for being invisible too. Nice tip. Glad you mentioned it!