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

MC and LITE's Nubia for VP

Discussion in 'Mods Repository' started by pineappledan, Jul 20, 2019.

  1. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada

    UA: Ta-Seti
    • +2:c5production: and +10%:c5production: Production in cities with a Garrison.
    • Gain +500:c5goldenage: Golden Age Points and +5XP for all Units for each World Wonder in a newly conquered City.

    UU: Apedemak Archer (Archer)
    50:c5production:
    Unlocked at Trapping

    7:c5strength: CS, 10:c5rangedstrength: RCS
    2 :c5moves: Moves
    1:c5rangedstrength: Range
    Volley Promotion
    Blessing of Apedemak - +1 :c5moves: Movement when starting turn next to River
    Naval Inaccuracy​

    UI: Royal Pyramid

    Unlocked at Construction
    Buildable on flat Desert, Plains, and Grass and not adjacent to each other
    Removes features

    +1:c5culture:, +2:c5faith:
    +1:c5gold: at Mathematics
    +1:c5gold:/:c5culture: at Architecture
    +3:c5culture: at Archaeology
    +1:c5culture:/:c5faith: for each Era between the Era the pyramid was constructed and the current Era
    An Ancient Ruin has a chance to be placed below any Pyramid on construction. Ancient Ruins are of the same era as when the Pyramid was originally constructed.​
    Spoiler More Unique Components Compatibility :

    UU2 (4UC) - Medjay (Unique Mercenary)
    200:c5gold:
    Gold Purchase Only
    Can move after Purchase
    no Purchase cooldown
    Does not require Iron
    Unlocked at Iron Working

    15:c5strength:
    2 :c5moves: Moves
    Shock I
    Temple Guard - +15%:c5strength:CS in friendly Territory, -5% to all :c5unhappy:Needs in City when Garrisoned :c5moves:
    If Nubia is in a game, all players that have an Embassy with Nubia can purchase Medjay. Nubia gains 75:c5gold: whenever any player (including Nubia itself) purchases a Medjay

    UB (4UC) - Cenobium (Workshop)
    350 :c5production: Production OR 300:c5faith:Faith
    Can Purchase with Faith
    Unlocked at Civil Service
    No Gold Maintenance

    3:c5production:3:c5faith:2:c5gold:
    +25% resistance to conversion
    +25% :c5strength:City Strength
    +1 :c5production: Production for every 5 :c5citizen: Citizens in the City
    +1 :c5production: Production and +1 :c5gold: Gold to Forest
    Allows :c5production: Production to be moved from this city along :trade: Trade Routes inside your civilization
    +4:c5production: Production to :c5production: Production :trade: Internal Trade Routes from this city​

    Credits:
    • Pouakai: Code
    • Sukritact: Art, Models
    • Regalman: Art, text
    • COF: Text
    • JFD: Lua
    • Janboruta: Art
    • Tomatekh: Lua
    • JTitan: Models
    • CharlatanAlley: DOM Voiceover
    • Derek Fiechter: Music
    • pineappledan & Enginseer: VP Compatibility
    • Asterix Rage: Promotion Icons
     
    Last edited: Feb 10, 2020
  2. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
  3. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,231
    That's unfortunate
     
  4. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,231
  5. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
    Oh? Why’s that? It’s a unique mercenary unit that Nubia gets gold for other civs buying.
    not right now, no. I might change that, but there’s so many errors in the base mod
     
  6. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,231
    Ah yes I didn't understand that

    EDIT:
    But everyone get Temple Guard. it makes this unit not so unique
    and what if Nubia is killed?
     
  7. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
  8. Jarula

    Jarula King

    Joined:
    Oct 22, 2016
    Messages:
    680
    Gender:
    Male
    Why not up the gold and make it only civs that have met Nubia...?
     
  9. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
    That would probably be better. Makes more sense than everyone on another continent having access to Medjay. How did they get there?
    It's harder to do though. I'm not sure if there's a lua hook for when you meet a new civ.
    If it requires iterating through every civ to see if they have met Nubia yet each turn then I won't bother. As it is right now, it's a single trigger at the start of the game and the lua is done. If it takes processing every turn then it's not something I'm interested in pursuing.

    EDIT: There is a GameEvents.TeamMeet() function, but there isn't a single example of its use according to the wiki. I couldn't find any after a quick google search either. I did find some discussion cautioning against its use for implementing game changes, because if the UI doesn't need it (ie when an AI civ meets another AI civ) then it probably won't fire.

    EDIT EDIT: I could make it so other civs can unlock it by having an embassy with Nubia maybe? That also makes it so a civ can't buy more Medjay if they are at war with Nubia, and means they have to get both writing and Iron Working to unlock Medjay, while Nubia only needs Iron Working.
     
    Last edited: Jul 21, 2019
  10. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,231
    Of course, it's a good idea, but Humans will use this "exotic" mechanisms better than AI
     
  11. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
    I've played a game with Nubia and the AI definitely buys them, so no problem there.
    Having embassies with everyone is something the AI is better at than I am; I always forget until I want an open border agreement or something. AIs don't need to know this unlocks a free unit from Nubia, because AIs already spam embassies to everyone obsessively.

    I'll see if I can figure out how to do this embassy change. It removes Medjay if Nubia is dead and disables Medjay if you are at war or haven't met them yet, so that ties up all loose ends. I might need @Enginseer's help on code.
     
  12. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
    Okay, Medjay rework posted!

    Medjay garrison happiness reduction reduced to 5% for all needs
    Only civs with an embassy with Nubia can purchase Medjay
    ie. Cannot purchase medjay if you have not met Nubia, are at war with Nubia, or Nubia is dead
    Note: Medjay now have a compatibility issue with multi-civ teams. Team games will only give Medjay to the team captain. This is consistent with the rest of 4UC (Russia's Pogost also is not compatible with teams of 2+)
     
    Last edited: Jul 23, 2019
  13. Viralvoid

    Viralvoid Warlord

    Joined:
    Mar 6, 2018
    Messages:
    198
    Location:
    From the Slums of Manila
    Spoiler The Nubian Dream :




    I really like this custom civ, coincidentally, Egypt is in the game as a wonder runaway :mischief::mischief:.
    Thank you!

    I don't understand this part, nothing comes out after construction, or even after discovering archaeology. I'm sorry, I think I misunderstood how this works. But even without it, I think royal pyramid is still powerful after archaeology.
     
  14. Bhawb

    Bhawb Prince

    Joined:
    Nov 11, 2018
    Messages:
    500
    It should mean that when you construct a Pyramid in those two eras, it will place an Ancient Ruin underneath the tile to be unearthed after Archaeology. If that isn't happening it could be a bug, or that you just happened to put those Pyramids on top oftiles that have blocked the ruin spawning, as I believe an Ancient Ruin cannot be placed on strategic resource tiles, for example.
     
  15. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
  16. Guynemer

    Guynemer King

    Joined:
    Feb 20, 2002
    Messages:
    652
    Quick thoughts so far:

    UA: The production bonuses to garrisons are interesting, and obviously plays well with the Medjay. The second part is more situational--obviously extremely powerful, but hard to make use of. Could come in super handy if you started next to, say, Egypt. How appropriate!
    Apedemak Archers: Cool, cool, cool. These guys absolutely wreck barbarian camps, are extremely inexpensive, and thanks to the recent changes to the tech tree can be quickly upgraded to composite bowmen. Even (slightly) effective when trying to take cities. The extra movement from rivers is nice, can be a lifesaver when facing an invasion. One game with them and they are rapidly rising up my list of favorite unique units.
    Medjay: Wow, what a fun unit. A resource free swordsman, can be bought for not too much money, and even helps with happiness. It feels weird to keep a melee unit as a garrison instead of a ranged unit, but trade offs make for interesting gameplay. Being able to move immediately is another lifesaver when facing an invasion. (God, I hate Dido.) I didn't notice any other civ buying one; is there an instant yield notification or something? I think that would come in handy, could even provide a bit of intelligence as to what your rivals are up to.
    Royal Pyramid: That early faith is an absolute godsend, and it picks up extra gold quite early, which is nice synergy with the Medjay. Culture is always welcome as well. And then, a pretty much automatic upgrade to landmarks later on, which can be extraordinarily powerful tiles. Love these. My only criticism would be there aren't the most visually appealing improvement, but c'est la vie.
    Cenobium: The least interesting part of the kit, but still worthwhile. Being purchasable with faith is terrific. The bonus defense from faith is nice, but don't feel a big jump from it compared to walls and castles--which is probably fine, you should rely more on defense buildings for defense.
     
  17. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
    There's a floaty :c5gold: popup on your capital and you get a notification that Medjay mercenaries have been hired abroad.

    I can report that civs have definitely used the Medjay, and I have gotten free gold for it, but that was before the new requirement that civs had to have an embassy with Nubia first. This is a pretty significant hurdle in comparison to them only needing the tech, but some users correctly pointed out that civs actively at war with Nubia still being able to buy Medjay was a bit silly.

    Cenobium is a bit lackluster, yeah. I'm at a loss what to do with it tho.

    On the other hand, methinks the royal library may be a bit too powerful, and deserving of a nerf. Thoughts?
     
  18. Guynemer

    Guynemer King

    Joined:
    Feb 20, 2002
    Messages:
    652
    Royal Pyramid, I think, is in a good place. It's a powerful improvement, but it only gives faith and culture and a little gold, and it has some significant restrictions on placement.

    I think the rest of the kit is powerful enough that the Cenobium doesn't need a whole lot additionally.

    I had embassies with everyone (except f***ing Dido) and no one bought any medjay, alas. Must have just been one of those games. It did look like the other civs I was in contact with were not exactly rolling in cash, to be fair.
     
  19. Dani93

    Dani93 Chieftain

    Joined:
    Oct 4, 2016
    Messages:
    2
    Gender:
    Male
    Hey, guys. This is probably my favorite custom civ, but sadly I am not getting ancient ruins/antiquity sites (or whatever) under the pyramids (built on early eras).

    I mean the civ is probably still good without it but if someone knows what could be the problem I'd appreciate it.

    I play with just some wonders mods, civ events, civics and reforms and unique-city states and i've actually made some tries without them active and nothing. I've looked at the code a bit but I really don't know much about coding. It looked "fine" :crazyeye:

    Code:
    function NubiaRoyalPyramid(iPlayer, x, y, eImprovement)
        local pPlayer = Players[iPlayer]
        local pPlot = Map.GetPlot(x, y)
        
        if pPlayer:GetCurrentEra() > 1 then return end
        
        if eImprovement == GameInfoTypes.IMPROVEMENT_MC_LITE_NUBIAN_ROYAL_PYRAMID then
            pPlot:AddArchaeologicalRecord(GameInfoTypes.ARTIFACT_ANCIENT_RUIN, pPlayer:GetCurrentEra(), iPlayer)
        end
    end
    
    I suppose that's where the problem should be, but I don't know.

    Thanks in advance.
     
  20. pineappledan

    pineappledan Deity

    Joined:
    Aug 9, 2017
    Messages:
    5,198
    Gender:
    Male
    Location:
    Alberta, Canada
    It could be a settings problem. I probably can’t deal with it tonight, but I’ll take a look some time this week

    Edit: I can at least confirm for now, that Nubia does not have a line of SQL code which would activate the lua code. I usually test with 4UC which activates this setting also, so I usually don't catch VP mod options errors. I'll have to test it, but for now you will definitely need this line in your code somewhere:

    UPDATE CustomModOptions SET Value = 1 WHERE Name = 'EVENTS_TILE_IMPROVEMENTS';
     
    Last edited: Oct 30, 2019

Share This Page