Name:
Extended Dwellings
Version: 1.0.0
Requires: Era 2.9.9+
Download:
Extended Dwellings
; Extended Dwellings Mod
; Author: Berserker
; Version: 1.0.0
;
; The mod allows to set up to 4 slots for each town dwelling.
; Each slot can be either an alternative creature or additional creature.
;
; Alternative creature uses native dwelling population, though custom quantity ratio can be set.
; For instance, 1 golem can be bought at the cost of 12 gremlins population. Such slots
; are called alternatives, because you cannot buy max creatures from several alt slots.
;
; Additional slots are not connected to native dwellings population. Their population can be set manually
; via ERM or be increased automatically every week, like it's done for native dwellings.
;
; Use the following documented functions:
; "dex_DwellingPopulation" to set/mofidy additional slots population amount
; "dex_SetDwellingSlotByTownType" to configure slot for all towns of given type.
; "dex_GetDwellingSlotByTownType" to get slot configuration for particular all towns of given type.
; "dex_SetDwellingSlotByTownId" to configure slot for particular town (has priority over dex_SetDwellingSlotByTownType).
; "dex_GetDwellingSlotByTownId" to get slot configuration for particular town (has priority over dex_GetDwellingSlotByTownType).
;
; For old mods, depending on battery.dll plugin, an extra "dex_CA_D" function was added with almost same syntax as CA:D.
; Better use newer API for much easier setup, including real alternative slots and auto-growing population for additional slots.
Example:
!?FU(OnAfterErmInstructions);
!!re i/0/8:;
!!FU(dex_SetDwellingSlotByTownType):Pi/0/0/2/120/-1007;
!!en:;
For each town type assigns to non-upgraded level 1 dwelling one extra slot with standalone auto-growing population of 7 Physic Elementals per week. Build Castle to have 14 elementals per week or 21 with Grail.
!?FU(OnAfterErmInstructions);
!!re i/0/8:;
!!FU(dex_SetDwellingSlotByTownType):Pi/0/0/2/120/5;
!!en:;
Same as above, but elementals are ALTERNATIVE to native creatures and can be hired at ratio 1 elemental at cost of 20 native creatures (5% = 1/20).[/smileys]