Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ act TO_ROOM issue?

act TO_ROOM issue?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Sat 27 Aug 2005 11:17 PM (UTC)
Message
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?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Sun 28 Aug 2005 04:13 AM (UTC)

Amended on Sun 28 Aug 2005 04:18 AM (UTC) by Greven

Message
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.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #2 on Sun 28 Aug 2005 04:46 AM (UTC)
Message
Yup. 'ToRoom' is actually a little bit misleading since it really means everybody in the room [i]except[/i] the actor, like Greven said.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,541 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.