torilmud / issues

Bug reports for TorilMUD
11 stars 8 forks source link

Areas feature request - load a range of NPCs instead of just one #1050

Open byzanthia opened 2 months ago

byzanthia commented 2 months ago

This is the easiest form of the command to load an NPC:

  {
    "command": "load npc",
    "vnum": 98301,
    "room": 98325
  }

However, say I have 50 unique NPCs that I want to load into a subzone, then I currently have to enter 50 separate load commands.

Similar to the concept of room vnum ranges for a subzone, the concept of a range of NPC vnums for loading NPCs would be great to load them all at once.

E.g I want to load 50 unique NPCs into a subzone, with quantity 1 each:

  {
      "comment": "All visitor mobs wandering the roads",
      "command": "load npc",
      "vnum": [98301 - 98350],
      "loadRooms": [
        {"subzone": "North roads1", "quantity": 1},
      ]
    }

The vnums range would probably have to be some other syntax, but I trust it works for just this example.

This would of course only work well for mobs without equipment and with quantity 1. But the zone I'm working on (and future zones) have lots of unique quest NPCs that I'd randomly like to distribute into subzones.