act TO_ROOM issue?

Posted by Zeno on Sat 27 Aug 2005 11:17 PM — 3 posts, 15,310 views.

USA #0
I have this single act line for when thrown:
    act( AT_ACTION, "Suddenly $p explodes and smoke covers the room!", pouch->in_room->first_person, pouch, NULL, TO_ROOM  ); 


It displays to everyone except the thrower, even though they are all in the same room. Anyone have any idea what's wrong?
Canada #1
I beleive that you need two lines: one that use TO_CHAR and one that uses TO_ROOM. Act checks against the third argument and does not send to that person with this:
                if (type == TO_ROOM && to == ch)
                        continue;
You could add in a new type for TO_ROOMALL or some such.
Amended on Sun 28 Aug 2005 04:18 AM by Greven
USA #2
Yup. 'ToRoom' is actually a little bit misleading since it really means everybody in the room [i]except[/i] the actor, like Greven said.