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 ➜ Random things in the mud...

Random things in the mud...

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


Posted by Nick Cash   USA  (626 posts)  Bio
Date Sat 14 Jun 2003 03:35 AM (UTC)
Message
Quick question. Is there a way to make it in area resets so a room loads a random mob (between a couple..) or an object radomly (between a couple..), or make it so that an exit is randomly selected, say a room connects north, but randomly is connect ne instead of north? Anyway, ideas, examples, snippets I could use to code this in if its not?

Thanks as always for any and all help.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Celestine   (29 posts)  Bio
Date Reply #1 on Sat 14 Jun 2003 04:08 AM (UTC)
Message
You might want to look at the astral plane area for the random exits thing. The astral plane is fixed exits, but the room it goes to is random (I think).
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #2 on Sat 14 Jun 2003 06:19 PM (UTC)
Message
The best way to do random mob loadings is with a mob program. There is no hardcoded support for such a feature but thats not a problem for a talented builder. Same style program can handle random objects as well. As far as random exits, the RANDOM rflag scrambles the links for all existing exits in the room. Does wonders to screw up players that use bot scripts extensively.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #3 on Sat 14 Jun 2003 08:05 PM (UTC)
Message
I'm quite sure Whiteknight runs a SWR mud. Which is modified Smaug1.2. Never the less, the RANDOM rflag doesn't exist in stock SWR.

The RANDOM reset may be an option. It's my understanding it'll randomly open a door in a room out of a range of exits. Setting all of the exits to hidden and pointing them to the same room would accomplish the same affect. Then again, that's considering the 'random' reset does what I think it does. Never actually used it ;-P
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.


14,248 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.