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 ➜ unique mobs and objects

unique mobs and objects

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


Posted by Garaelb   (54 posts)  Bio
Date Sun 29 Jun 2003 06:30 AM (UTC)
Message
Can Mobs be reset at different times from the area they are in?
Can Objects also be reset independantly of the area?
Can triggers or traps be used to open doors, or cast spells?

Example:
Create a Mob called Balrog.
Balrog has a magical flaming sword
Clicking a button three rooms away opens a gate/door that releases the Balrog.

The Balrog being a very unique Mob in the game should reasonably only appear say once a week or even once a month in the game. Obviously, there would be other Mobs in the area that would be more frequently. The goblins are the area mobs that guard the room with the button in it to open the gate that maybe summons the balrog (ie casts a spell to summon) or 'releases' the balrog from his 'magical' bonds. The area would reset every 30 minutes, but the flaming sword and the balrog would appear 900 minutes or longer if possible.
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 29 Jun 2003 06:58 AM (UTC)
Message
If the Balrog is not in an area reset it shouldn't appear when the area resets, and to make it appear I would probably make a goblin (or whatever) have a low probability of creating one. Or, simply build into the server a timer that fires every so often that puts it there.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #2 on Sun 29 Jun 2003 06:04 PM (UTC)
Message
Easier solution would probly be a mobprog to control the balrog possibly spawning when the button is pressed. Ultra common easily identified mob can be placeholder for the Balrog you want to be the ultra rare spawn. Give the placeholder say 80% probability of spawning when the button is pushed and the Balrog should be quite rare to justify the reward he offers :) Granted, it would be possible to get several Balrog spawns in a row but the odds are quite hellish.

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

Posted by Garaelb   (54 posts)  Bio
Date Reply #3 on Sun 29 Jun 2003 08:39 PM (UTC)
Message
Nick - When you say build a timer into the server I'm not clear what you mean? Can you explain a little more please?

Meerclar - I've never written a Mobprog before. Could you give me an idea on how to do this?

I'm assuming that if it can be done with a Mob then it can be done with Objects as well.

Example:

A magical sword that would only appear on "full moons" or once a month. Is that correct?
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 29 Jun 2003 09:35 PM (UTC)
Message
The server has provision for timed events (eg. a spell wearing off) - you could add one of those. However if you are not familiar with coding then Meerclar's idea is probably better.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #5 on Sun 29 Jun 2003 11:13 PM (UTC)
Message
Oprogs as I recall are used to make the obj do something special rather than control when/how they spawn. Code for the mprog would be something similar to:

act P pushes the button (or whatever other action trigger you want here)
prog code:
[code]
if rand 80
mob at <Balrog's Room> mob load mob <placeholder vnum>
else
mob at <Balrog's Room> mob load mob <Balrog's vnum>
mob load obj <Balrog's sword>
mob at <Balrog's room> give balrog <swordname>
[/code]

Granted, I havent tested that code and it may not be the proper commands for smaug mprogs, but, I dont code/build on a SMAUG mud.

Thats the general idea though. stash that prog on a hidden mob in whatever room the trigger for the Balrog's room is in and it should be a beautiful thing.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.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.


18,592 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.