Template talk:Monsters in quest with slayer

Smart slayer fields
Currently, slayer fields must be set explicitly for all monsters. However, on most maps, most monsters are part of the slayer quest (all except ambients) and the name of the slayer quest matches the map name. This means that each monster needs two identical entries (one for habitat, and one for hslayN) and the monster display ends up having a "slayer" entry that appears redundant (as it matches the quest name).

The ideal:
 * monsters default to being part of the slayer quest that matches the map name
 * monsters can be explicitly marked as being:
 * not counting for slayer
 * count for a non-default slayer
 * count for the default slayer - this is important from an editing perspective, as it allows subsequent editors to know if the monster has been checked against the default slayer group or hasn't been updated.

Proposed design
For 'monsters in quest with slayer':


 * 'Monsters in quest with slayer' takes an extra parameter / set of parameters that lists the slayer quests associated with the area. If left blank, it is assumed that there is a single slayer quest that matches the "quest" name.


 * Monsters with no 'hslayN' (or 'slayer') entry are defaulted as part of the main quest.


 * Monsters with an explicit entry are part of that slayer quest.


 * Monsters with an entry of '-' are not part of any slayer quest. Monsters with an entry of '+' are explicitly part of the default slayer quest (if and only if there is one quest).

For 'monster':


 * The slayer entry is compared against the habitat field. If they match, no slayer comment is generated.  For this purpose, '+' always matches the habitat field.

Note: I need to think about how to implement some aspects of this. Due to parameter passing across DPL, it might be easier to just make two templates - one for 'default slayer' (supports '+' and undefined entries) and one for 'multiple slayers' (does not support '+').

Is '+' the right delimiter?

&rArr; Nom (Contribs • Message • Email ) 21:27, September 19, 2021 (EDT)