1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Utils - Tabulated Building Quests

Discussion in 'CivBE - Code Snippets' started by whoward69, Nov 21, 2014.

  1. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,113
    Location:
    Near Portsmouth, UK
    Utils - Tabulated Building Quests

    Relocates the data for building quests out of the Lua file (BuildingChoiceTemplateQuest.lua) that runs the quests and into the database (BuildingQuests table)

    With the data in the database, it is a simple matter to alter existing building quests, add new ones or delete existing ones.

    V2 uses the post-patch method of loading new/alternative quest scripts so no longer depends on (but should still be compatible with) "Utilities -- Modular Script Loading"

    V2 also adds an optional "3rd choice" to building quests and enables Lua to be used to determine the reward from a building quest (as opposed to a fixed PlayerPerk)

    Quests - Research Relics is an example of how to make a "three choice" building quest - adds a +1 science option to the Old Earth Relic quest

    Quests - Headquarters Affinity is an example of a dynamic building quest
     
  2. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,113
    Location:
    Near Portsmouth, UK
    Updated to use the post-patch script loading mechanism, and the new Autoplant rewards

    Enhanced to support a 3rd choice for building quests and Lua based generation of rewards
     
  3. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,113
    Location:
    Near Portsmouth, UK
    Updated .civbemod files for Civ:BERT can be downloaded from my web-site
     

Share This Page

Ebates: Get Paid to Shop