The Wrathstone DLC Game Pack and Update 21 base game patch are now available to test on the PTS! Read the full patch notes here: https://forums.elderscrollsonline.com/en/discussion/454456/

Any API Events for Keep Upgrades?

Enodoc
Enodoc
Community Ambassador
@ZOS_BrianWheeler @ZOS_ChipHilseberg I was wondering whether there are any API events which fire when a Keep or Resource loses or gains an Upgrade Level. With the number of upgrade levels reducing from 5 each to 2 and 1 respectively, plus the re-addition of Degrade, Upgrades overall will become more meaningful, so it would be useful if that could be captured.

Does such an event exist already, or could it be added if not? Thanks!
UESP: The Unofficial Elder Scrolls Pages - A collaborative source for all knowledge on the Elder Scrolls series since 1995
  • Enodoc
    Enodoc
    Community Ambassador
    Here are some of the things that would be useful returns from such an event:
    • integer keepId (so you know what keep has changed)
    • #KeepResourceType resourceType (so you know what resource has changed, if a keep)
    • #KeepUpgradePath upgradePath (so you know whether Production or Defence has changed, if a resource)
    • number oldLevel
    • number newLevel (so you know whether the level is going up or down)


    Looking at the existing functions (GetKeepResourceInfo, GetKeepUpgradeInfo, GetKeepResourceLevel, GetKeepProductionLevel, GetKeepDefensiveLevel), it may be easier to work with if this were two separate events, one for keep resource levels, and one for resource upgrade levels, so the events could be something like:
    • EVENT_KEEP_RESOURCE_LEVEL_CHANGED(eventCode, keepId, battlegroundContext, resourceType, oldResourceLevel, newResourceLevel)
    • EVENT_KEEP_UPGRADE_LEVEL_CHANGED(eventCode, keepId, battlegroundContext, upgradePath, oldUpgradeLevel, newUpgradeLevel)
    Edited by Enodoc on July 12, 2018 4:47PM
    UESP: The Unofficial Elder Scrolls Pages - A collaborative source for all knowledge on the Elder Scrolls series since 1995
Sign In or Register to comment.