1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

New UA - Production Bonus when constructing Factory or Public School

Discussion in 'CivBE - Modding Help & Mod Creation' started by hburak, May 18, 2020.

  1. hburak

    hburak Chieftain

    Joined:
    May 18, 2020
    Messages:
    1
    Hi,

    I'm creating a new civ, and i want to create an UA that provides produciton bonus when constructing Factory or Public School. Or maybe reducing production cost for factory and public school. (either way ok for me)

    I think it is not possible with xml.

    How about Lua ? Basically, i need to get what is constructing in city. If its factory or public school , give production bonus to city. Or if civilization type is my new civilization then reduce production cost for factory and public school. But how ? :)

    I searched and find this https://forums.civfanatics.com/threads/changing-a-citys-production-for-a-specific-building.564948/
    But i couldnt figure out after that.

    This is my first modding try and i dont have any experience with lua.

    And also english is not my native language. I hope you guys understand what i'm trying to do.
     
  2. Mtech25

    Mtech25 Chieftain

    Joined:
    Aug 22, 2020
    Messages:
    11
    Gender:
    Male
    Not to sure about Lua personally but what I think under XML I would say have a look at \Sid Meier's Civilization Beyond Earth\assets\Gameplay\XML\Buildings\CivBEBuildings.xml an example of the current buildings are there. One thing to remember is they are split in two so the first part is details of the building then down at Building_YieldModifiers is where you can set the yield typ for production you want <YieldType>YIELD_PRODUCTION</YieldType>. I am not to sure if it possible to lock it down to a civ but I noitced that there is a playerperk PLAYERPERK_THORIUM_REACTORS_PRODUCTION_FLAT under \Sid Meier's Civilization Beyond Ejarth\assets\DLC\Expansion1\Gameplay\XML\Civilizations\CivBEPlayerPerks.xml might be worth seeing that helps.
     
    Last edited by a moderator: Aug 22, 2020

Share This Page