1. Firaxis celebrates the "Asian American and Pacific Islander Heritage Month", and offers a give-away of a Civ6 anthology copy (5 in total)! For all the details, please check the thread here. .
    Dismiss Notice
  2. We have selected the winners of the Old World random draw and competition. For the winning entries, please check this thread.
    Dismiss Notice
  3. Old World has finally been released on GOG and Steam, besides also being available in the Epic store . Come to our Old World forum and discuss with us!
    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,587
    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,587
    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,587
    Location:
    Near Portsmouth, UK
    Updated .civbemod files for Civ:BERT can be downloaded from my web-site
     

Share This Page