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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ In a bit of a sticky spot (ha)

In a bit of a sticky spot (ha)

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


Posted by Chaz   (2 posts)  Bio
Date Sat 26 Feb 2011 07:01 PM (UTC)
Message
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
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #1 on Sun 27 Feb 2011 03:30 AM (UTC)
Message
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?

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Chaz   (2 posts)  Bio
Date Reply #2 on Sun 10 Apr 2011 10:57 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 11 Apr 2011 12:50 AM (UTC)
Message
http://www.gammon.com.au/smaug/howtocompile.htm

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


19,298 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.