RanvierMUD / core

Core engine code for Ranvier
https://ranviermud.com
MIT License
45 stars 40 forks source link

NPC Class #99

Closed illusaen closed 5 years ago

illusaen commented 5 years ago

Is there a built-in way to set NPC class/race combo so that the NPC's health can auto-calculate?

shawncplus commented 5 years ago

The core doesn't have a concept of race/class for anything. That's all down to bundle-developers to decide on how they want to handle that. The simplest approach is in the metadata of NPCs/Players. The docs for attributes have this exact case as an example:

https://ranviermud.com/coding/attributes/#classrace-modifiers