RealmsMud / RealmsCode

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

postDeath Hook: mud.spawnMonsters #165

Closed mythandier closed 1 year ago

mythandier commented 1 year ago

Similar to mud.spawnObjects, need to add a mechanism to spawn monsters. The function for object spawn is mud.spawnObjects(“area.id”{spawn room},"area.id area.id area.id {spawned objects separated by spaces})

Ideally monster spawn would be the same syntax; however, if we can reference the mob (as the actor), and get the current room.number then adding a “current.room” call for the first argument would allow us to have a dynamic reference rather than static. That way mobile mobs can spawn more, not just perms.