Simple yell/shout #3762
AcoriSage
started this conversation in
Community Contribs & Snippets
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is my simple solution for passing "loud" messages to adjacent rooms. Rather than using some kind of search algorithm, I just use the room exits to pass the message on. It's relatively specific to what I personally wanted but it could probably be modified without too much trouble depending on what you want from it.
The shout command passes the "loud" kwarg to at_say (similar to whisper). Other than that, and some basic flavor tweaks, it's just the same as CmdSay.
Each exit passes the message on to the next room:
I'm sure my code could be greatly improved by a more experienced developer, but I'm pretty proud that I was able to get it to work!
Beta Was this translation helpful? Give feedback.
All reactions