Recent content by Lenin1870

  1. Lenin1870

    [BNW] Could I maintain promotions during constant time from the points of gaining or removing them?

    function YuyukoFunction(iPlayerID) local pPlayer = Players[iPlayerID] if pPlayer:GetCivilizationType() == pYuyukoCiv and pPlayer:IsAlive() then for pUnit in pPlayer:Units() do if not pUnit:IsHasPromotion(GameInfoTypes["PROMOTION_RINMEIKAN_YUYUKO"]) then...
  2. Lenin1870

    [NFP] Could I control Random Events using Lua?

    Umm... Thanks, but my intention was not to 'create' random events from an lua. Sorry to do inaccurate description. I exactly want to "load" random events from custom SQL/XML. I made the SQL to modify existing natural disasters added in GS. However, I did not absolutely find how to load random...
  3. Lenin1870

    [BNW] Could I load all Lua scripts of other mods for integrating unique abilities?

    Thank you. I was wondering if it was possible, but it's impossible. I'll think about other effects.
  4. Lenin1870

    [BNW] Could I load all Lua scripts of other mods for integrating unique abilities?

    I planned to make unique ability that is able to select other civs' unique abilities as 'Advanced Policies', but embodied unique abilities using Lua are not available using normal ways. My idea about Lua scripts is following: I wrote 'include("%w+.lua", true)' first for loading all Lua...
  5. Lenin1870

    [NFP] Could I control Random Events using Lua?

    I planned to make a panel manipulating custom natural disasters, but did not find related Lua API in Modding Companion. But I think SetProperty in Game context or SetValues in GameConfiguration context may be associated with Random Events. Are there way using it, or any other way to occur Random...
  6. Lenin1870

    [NFP] How to count government policy slots in Lua?

    Thank you all. I'll find the info.
  7. Lenin1870

    [NFP] How to count government policy slots in Lua?

    I found GetNumPolicySlots function in Civ VI Modding Companion. But it should only use UI context and not return integer, 'amount'. I wonder if there is any other way. Is there a function about government slots that returns an integer in the Gameplay context?
  8. Lenin1870

    Where could I refer to the correct usage of the Lua objects?

    Thank you. It may be helpful.
  9. Lenin1870

    Where could I refer to the correct usage of the Lua objects?

    https://docs.google.com/spreadsheets/d/1CXLHOBhOKXB9X9kOgED_xTTld4sFEyMxrDoPwX2NUFc/edit#gid=1205978888 Sometimes I refer to this link for making Lua scripts. But although I do it always, I don't know correct usage of the Lua objects. I think I might understand mechanism of the Lua objects...
  10. Lenin1870

    [NFP] About my functions using combat event

    function pPlayerMilitarizationBonus(attacker, defender) local tAttackerID = attacker[CombatResultParameters.ID]; local pAttackingPlayerConfig = PlayerConfigurations[tAttackerID.player]; local tDefenderID = defender[CombatResultParameters.ID]; local pDefendingPlayerConfig =...
  11. Lenin1870

    [NFP] Unknown issue about works of functions

    -- YukinoGermany_GamePlay -- Author: Yukino-Chan -- DateCreated: 3/30/2020 9:14:40 PM --========================================================================================================================== -- INCLUDES...
  12. Lenin1870

    [NFP] [Solved] Why specific function in GameEvents is perceived as nil?

    Sorry, but I don't understood your intention. Could you tell me the details?
  13. Lenin1870

    Leaderhead creation

    I already know that janboruta made Frederick the Great 2D Leader Screen. But I need a new leader screen because I'm creating a different Frederick the Great mod. By the way, Is there anyone who could help make new model or screen of Frederick the Great?
  14. Lenin1870

    [NFP] [Solved] Why specific function in GameEvents is perceived as nil?

    -- JFD_YukinoGermany_Decisions_UIFunctions -- Author: JFD -- DateCreated: 12/11/2018 7:55:56 AM --========================================================================================================================== -- INCLUDES...
Top Bottom