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...
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...
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...
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...
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?
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...
function pPlayerMilitarizationBonus(attacker, defender)
local tAttackerID = attacker[CombatResultParameters.ID];
local pAttackingPlayerConfig = PlayerConfigurations[tAttackerID.player];
local tDefenderID = defender[CombatResultParameters.ID];
local pDefendingPlayerConfig =...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.