RealmsMud / RealmsCode

RealmsCode
GNU Affero General Public License v3.0
5 stars 2 forks source link

Feature request: random mobs within mobs #92

Open ocelot134269 opened 2 years ago

ocelot134269 commented 2 years ago

I seem to remember you saying the way we did stuff, we could have mobs inside of mobs. With this in mind, can we set mobs up similar to how random items work? So we could make a "random mob blah" and inside that mob would be listed X..n number of mobs that would spawn if that random mob spawned.

This would make it so we could set up something like "Blah random perm" in a room, and any number of different perms would spawn when the timeout is reached, rather than the same one all the time.

It also could make it so we could make one random mob or different ones containing various mobs we'd want to show up in any given part or parts of a place we are building.

ocelot134269 commented 2 years ago

The dmMoblist() function for *mob command would have to reflect them too though.

Jackbedead commented 2 years ago

That could be cool for something like an ooze or a giant spider monster spawning smaller spiders or something.

ocelot134269 commented 2 years ago

Wouldn't work like that. It'd just be a container for mobs that would spawn. What you're talking about could be done with hooks I think. Like if you kill a mob, others spawn from it.

Jackbedead commented 2 years ago

I haven't used hooks, but that would be cool.

ocelot134269 commented 2 years ago

Yeah i have to figure them out still.

ocelot134269 commented 2 years ago

This would work similarly to how we set up a random item-containing object like "Tokoki Peak trash items", and put that on all the mobs, and the "trash items" we come up with are put inside that object, and the mobs drop them.

Only for mobs instead.

Jackbedead commented 2 years ago

Oh, perming a list of random mobs. So, if the timer was set to say, 20 minutes, it would stay on the existing mob until it was killed or reset by the game, right? So you'd want players checking in and killing it so it resets for the preferential one?

ocelot134269 commented 2 years ago

It'd make it so you could have like3 diff perms that might show up someplace... u make the random perm mob, and put those 3 perms inside it. Every 20 minutes one of them will show up, randomly picked, staying until killed and the timer resets.

ocelot134269 commented 2 years ago

Right now to do that, I think we have to use moving exits and multiple rooms to simulate it.

ocelot134269 commented 2 years ago

Finn did it on the Ironclad

Jackbedead commented 2 years ago

It could be interesting to have a list of perms that could spawn and guard an exit, maybe like using the 6 elemental forms of damage. Then have three appear. So players would want to face maybe three water or ice casters, rather than three hasted lightning or fire casters. So it would change the difficulty of the room, and change how players prepared to face them based on their own skills and equipment. Maybe Mithas would be more challenged if one or more of the resist slash/pierce showed up.

ocelot134269 commented 2 years ago

I'd use it more for the non-perms though. Like if you have an area divided into three different sections...say an entrance, a temple, and a cellar. You could make a "random entrance mob", a "random temple mob", and a "random cellar mob"...each with distinct mobs that could spawn in those areas as you define inside the random mob.

ocelot134269 commented 2 years ago

And yes it could add that kind of flexibility.

jcdevs commented 2 years ago

+1 procedural generation on mobs and items. There's at least 2 other mordor muds that do this, and it opens all kinds of possibilities for other features

Jackbedead commented 2 years ago

I realized a great use for a random mob container last night.

I’m planing out a Yuan-ti area (snake people) and I want to customize different small, low level snakes that each inflict an effect—poison, disease, blindness, silence, etc.

Using the yell command on yuan-ti, I could randomize these assisting snakes using a random mob container, so you have no idea what kind of snakes might show up, and what combination of afflictions you’ll have to deal with. Obviously a couple poison snakes isn’t a bid deal, but if a blind and a silence show up, you could be in trouble.

ocelot134269 commented 2 years ago

"yell command" meaning the ability for mobs to yell for help and call in assisting mobs.

Jackbedead commented 2 years ago

So that would require mobs to have already spawned? Is there a way to just summon mobs to assist? Or spawn mobs from the room list?