In a bit of a sticky spot (ha)

Posted by Chaz on Sat 26 Feb 2011 07:01 PM — 4 posts, 20,224 views.

#0
So, I'm helping out some friends with a SMAUG-based MUD, and we're wondering if there's a way of applying a "sticky" property to an item, spell or room, effectively stopping a person from moving out of the room they're currently in for a short amount of time.

Item example: A silly joke item idea I had was a tube of superglue (Or possibly a glue gun) that, when applied to yourself or another player (Given their permission of course), sticks them to the floor for a minute or two, before dissipating (or being broken with solvent).

Spell example: A traditional "Web" or similar binding spell, sticking an enemy to the spot for a set amount of time, giving you a chance to escape from a difficult fight.

Room example: The MUD I'm helping out with has a few rooms basically consisting of a trail composed of clay, that has a spring running under it, causing the clay to become soft. Ideally, a player entering these rooms would have a small chance of sinking into the clay and becoming stuck for a short while before freeing their feet and moving on.

Trouble is, I can't seem to find an appropriate room effect -or- object/trap effect in the SMAUG help documents I've found online so far. Does anyone have any idea if the effect I'm looking for is actually possible, and if so, how?

Thanks in advance for helping us out,
~Chaz
USA #1
In programming your own code into the game, anything is possible. If you're trying to use just the stuff that's already in the game, about the closest I can think of that even might help accomplish what you're suggesting are room push/pull types. If that's not able to do what you're thinking, maybe it'd at least give you some ideas in the right direction?
#2
Sorry for the really late response to this post. Thanks for letting me know about that, though!

So, how would I go about writing my own code into the game? All I know at the moment is that SMAUG runs on C, but I'm not sure where I'm supposed to start with regards to writing or modifying files.
Australia Forum Administrator #3
http://www.gammon.com.au/smaug/howtocompile.htm