whoward69
DLL Minion
Any and all requests for Lua API extensions.
The API methods added by the DLL are given below, the format is method_name, return_type, parameter(s)
Game.
- see post #2
pCity:
- see post #3
pLeague:
- see post #2
pPlayer:
pPlot:
- see post #3
pTeam:
pUnit:
- see post #3
[1] - excludes Barbarians
At some point I may get around to reformatting these lists and sorting them into function groups
Alphabetical order provided by JFD
The API methods added by the DLL are given below, the format is method_name, return_type, parameter(s)
Game.
- see post #2
pCity:
- see post #3
pLeague:
- see post #2
pPlayer:
- AddMessage, void, sMessage
- CanAdoptIdeology, bool, iIdeologyBranch
- CanAdoptTenet, bool, iTenetPolicy, bIgnoreCost
- ChangeCityWorkingChange, void, iChange
- DismissNotification, void, iIndex, bUserInvoked
- DoForceDefPact, void, iOtherPlayer
- DoSwapGreatWorks, void, iFocusYield
- EspionageCreateSpy, void
- EspionagePromoteSpy, void, iSpyIndex
- EspionageSetOutcome, void, iSpyIndex, iSpyResult, bAffectsDiplomacy
- EspionageSetPassive, void, iSpyIndex, bPassive
- GetBeliefsInPantheon, table
- GetBuyPlotDistance, int
- GetCityWorkingChange, int
- GetGreatDiplomatRateModifier, int
- GetHappinessFromVassals, int
- GetJerk, int
- GetJONSCulturePerTurnFromVassals, int
- GetLeagueCultureCityModifier, int
- GetMaxStockpile, int
- GetMilitaryAggressivePosture, int, iOtherPlayer
- GetNumDenouncements, int
- GetNumDenouncementsofPlayer, int
- GetPlayerMoveTroopsRequestCounter, int, iOtherPlayer
- GetPolicyConversionModifier, int, iPolicyType
- GetPolicyGreatDiplomatRateModifier, int
- GetPotentialInternationalTradeRouteDestinationsFro m, table, pUnit, pCity
- GetScienceFromVassalTimes100, int
- GetScienceRateFromLeagueAid, int
- GetScienceRateFromMinorAllies, int
- GetScoreFromVassals, int
- GetSpecificBuildingType, int, sBuildingClass
- GetSpecificUnitType, int, sUnitClass
- GetVassalGoldMaintenance, int
- GetWorkPlotDistance, int
- HasAnyDomesticTradeRoute, bool
- HasAnyHolyCity, bool
- HasAnyInternationalTradeRoute, bool
- HasAnyNaturalWonder, bool
- HasAnyReligion, bool
- HasAnyTradeRoute, bool
- HasAnyTradeRouteWith, bool, iPlayer
- HasAnyWonder, bool
- HasBuilding, bool, iBuildingType
- HasBuildingClass, bool, iBuildingClassType
- HasBelief, bool, iBeliefType
- HasCapturedHolyCity, bool, iReligionType
- HasEmbassyWith, bool, iOtherPlayer
- HasEnhancedReligion, bool
- HasHolyCity, bool, iReligionType
- HasIdeology, bool, iPolicyBranchType
- HasNaturalWonder, bool, iFeatureType
- HasPantheon, bool
- HasPolicyBranch, bool, iPolicyBranchType
- HasProject, bool, iProjectType
- HasReachedEra, bool, iEraType
- HasReligion, bool, iReligionType
- HasSpecialist, bool, iSpecialistType
- HasSpecialistSlot, bool, iSpecialistType
- HasTech, bool, iTechType
- HasTenet, bool, iPolicyType
- HasTrait, bool, iTraitType
- HasUnit, bool, iUnitType
- HasUnitClass, bool, iUnitClassTypeHasWonder, bool, iBuildingType
- IsAtPeace, bool [1]
- IsAtPeaceAllMajors, bool
- IsAtPeaceAllMinors, bool [1]
- IsAtPeaceWith, bool, iPlayer
- IsAtWar, bool [1]
- IsAtWarAnyMajor, bool
- IsAtWarAnyMinor, bool [1]
- IsAtWarWith, bool, iPlayer
- IsCityNameValid, bool, sName, bTestDestroyed
- IsCivilization, bool, iCivilizationType
- IsConnectedTo, bool, iPlayer
- IsInEra, bool, iEraType
- IsPlotConnectedToPlot, bool, pFromPlot, pToPlot
- IsTraitAnyBelief, bool
- IsVassalageAcceptable, bool, iOtherPlayer
- MoveRequestTooSoon, bool, iOtherPlayer
- SetPersonality, void, iPersonality
pPlot:
- see post #3
pTeam:
- CanBecomeVassal, bool, iTeam
- CanEndVassal, bool, iTeam
- ChangeCityWorkingChange, void, iChange
- DoBecomeVassal, void, iTeam, bVoluntary
- DoEndVassal, void, iTeam, bPeaceful, bSuppressNotification
- GetCityWorkingChange, int
- GetMaster, int
- GetNumTurnsIsVassal, int, iTeam
- GetNumTurnsSinceVassalEnded, int, iTeam
- HasSpyAtTeam, bool, iTeam
- IsCityWorkingChange, bool
- IsTooSoonForVassal, bool, iTeam
- IsVassal, bool, iteam
- IsVassalLockedIntoWar, bool, iTeam
- IsVassalOfSomeone, bool
- IsVassalageTradingAllowed, bool
- IsVoluntaryVassal, bool, iTeam
pUnit:
- see post #3
[1] - excludes Barbarians
At some point I may get around to reformatting these lists and sorting them into function groups
Alphabetical order provided by JFD