User:DonQuich: Difference between revisions
From Civilization Modding Wiki
Jump to navigationJump to search
m (testing my bot) |
m (testing my bot) |
||
Line 7: | Line 7: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/AddFeatureDummyModel|AddFeatureDummyModel]]('''string''' dummyTag, '''string''' modelTag)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: dummyTag: | |||
|- | |- | ||
| | | | ||
| | | | ||
: modelTag: | |||
<!-- | <!-- | ||
AREA | AREA | ||
Line 21: | Line 21: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/Area|Area]]()</code> | ||
<!-- | <!-- | ||
AT | AT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/At|At]]('''int''' x, '''int''' y)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: x: | |||
|- | |- | ||
| | | | ||
| | | | ||
: y: | |||
<!-- | <!-- | ||
CALCULATEBESTNATUREYIELD | CALCULATEBESTNATUREYIELD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CalculateBestNatureYield|CalculateBestNatureYield]]([[Civ5Lua/YieldID|YieldID]] yieldID, [[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: yieldID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
CALCULATEIMPROVEMENTYIELDCHANGE | CALCULATEIMPROVEMENTYIELDCHANGE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CalculateImprovementYieldChange|CalculateImprovementYieldChange]]([[Civ5Lua/ImprovementID|ImprovementID]] improvementID, [[Civ5Lua/YieldID|YieldID]] yieldID, [[Civ5Lua/PlayerID|PlayerID]] ePlayer, '''bool''' optimal, [[Civ5Lua/RouteID|RouteID]] assumeThisRouteID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: improvementID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: yieldID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
|- | |- | ||
| | | | ||
| | | | ||
: optimal: | |||
|- | |- | ||
| | | | ||
| | | | ||
: assumeThisRouteID: | |||
<!-- | <!-- | ||
CALCULATENATUREYIELD | CALCULATENATUREYIELD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CalculateNatureYield|CalculateNatureYield]]([[Civ5Lua/YieldID|YieldID]] yieldID, [[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' ignoreFeature)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: yieldID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: ignoreFeature: | |||
<!-- | <!-- | ||
CALCULATETOTALBESTNATUREYIELD | CALCULATETOTALBESTNATUREYIELD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CalculateTotalBestNatureYield|CalculateTotalBestNatureYield]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
CALCULATEYIELD | CALCULATEYIELD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CalculateYield|CalculateYield]]([[Civ5Lua/YieldID|YieldID]] yieldID, '''bool''' display)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: yieldID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: display: | |||
<!-- | <!-- | ||
CANBUILD | CANBUILD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CanBuild|CanBuild]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID, [[Civ5Lua/PlayerID|PlayerID]] ePlayer, '''bool''' testVisible)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
|- | |- | ||
| | | | ||
| | | | ||
: testVisible: | |||
<!-- | <!-- | ||
CANHAVEFEATURE | CANHAVEFEATURE | ||
Line 141: | Line 141: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CanHaveFeature|CanHaveFeature]]()</code> | ||
<!-- | <!-- | ||
CANHAVEIMPROVEMENT | CANHAVEIMPROVEMENT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CanHaveImprovement|CanHaveImprovement]]([[Civ5Lua/ImprovementID|ImprovementID]] improvementID, [[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' potential)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: improvementID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: potential: | |||
<!-- | <!-- | ||
CANHAVERESOURCE | CANHAVERESOURCE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CanHaveResource|CanHaveResource]]([[Civ5Lua/ResourceID|ResourceID]] resourceID, '''bool''' ignoreLatitude)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: resourceID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: ignoreLatitude: | |||
<!-- | <!-- | ||
CANSEEPLOT | CANSEEPLOT | ||
Line 179: | Line 179: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CanSeePlot|CanSeePlot]]()</code> | ||
<!-- | <!-- | ||
CHANGEBUILDPROGRESS | CHANGEBUILDPROGRESS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeBuildProgress|ChangeBuildProgress]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID, '''int''' change, [[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
CHANGEEXTRAMOVEPATHCOST | CHANGEEXTRAMOVEPATHCOST | ||
Line 203: | Line 203: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeExtraMovePathCost|ChangeExtraMovePathCost]]('''int''' change)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
<!-- | <!-- | ||
CHANGEIMPROVEMENTDURATION | CHANGEIMPROVEMENTDURATION | ||
Line 213: | Line 213: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeImprovementDuration|ChangeImprovementDuration]]('''int''' change)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
<!-- | <!-- | ||
CHANGEINVISIBLEVISIBILITYCOUNT | CHANGEINVISIBLEVISIBILITYCOUNT | ||
Line 223: | Line 223: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeInvisibleVisibilityCount|ChangeInvisibleVisibilityCount]]([[Civ5Lua/TeamID|TeamID]] eTeam, [[Civ5Lua/InvisibilityScopeID|InvisibilityScopeID]] invisibleID, '''int''' change)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: invisibleID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
<!-- | <!-- | ||
CHANGENUMRESOURCE | CHANGENUMRESOURCE | ||
Line 241: | Line 241: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeNumResource|ChangeNumResource]]('''int''' change)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
<!-- | <!-- | ||
CHANGEOWNERSHIPDURATION | CHANGEOWNERSHIPDURATION | ||
Line 251: | Line 251: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeOwnershipDuration|ChangeOwnershipDuration]]('''int''' change)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
<!-- | <!-- | ||
CHANGEUPGRADEPROGRESS | CHANGEUPGRADEPROGRESS | ||
Line 261: | Line 261: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeUpgradeProgress|ChangeUpgradeProgress]]('''int''' change)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
<!-- | <!-- | ||
CHANGEVISIBILITYCOUNT | CHANGEVISIBILITYCOUNT | ||
Line 271: | Line 271: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ChangeVisibilityCount|ChangeVisibilityCount]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''int''' change, [[Civ5Lua/InvisibilityScopeID|InvisibilityScopeID]] seeInvisibleTypeID, '''bool''' informExplorationTracking, '''bool''' alwaysSeeInvisible)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: change: | |||
|- | |- | ||
| | | | ||
| | | | ||
: seeInvisibleTypeID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: informExplorationTracking: | |||
|- | |- | ||
| | | | ||
| | | | ||
: alwaysSeeInvisible: | |||
<!-- | <!-- | ||
COUNTNUMAIRUNITS | COUNTNUMAIRUNITS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/CountNumAirUnits|CountNumAirUnits]]([[Civ5Lua/TeamID|TeamID]] ePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
<!-- | <!-- | ||
DEFENSEMODIFIER | DEFENSEMODIFIER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/DefenseModifier|DefenseModifier]]([[Civ5Lua/TeamID|TeamID]] iDefendTeam, '''bool''' ignoreBuilding, '''bool''' help)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: iDefendTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: ignoreBuilding: | |||
|- | |- | ||
| | | | ||
| | | | ||
: help: | |||
<!-- | <!-- | ||
ERASE | ERASE | ||
Line 325: | Line 325: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/Erase|Erase]]()</code> | ||
<!-- | <!-- | ||
GETACTIVEFOGOFWARMODE | GETACTIVEFOGOFWARMODE | ||
Line 331: | Line 331: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetActiveFogOfWarMode|GetActiveFogOfWarMode]](''<unknown>'')</code> | ||
<!-- | <!-- | ||
GETAREA | GETAREA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetArea|GetArea]]()</code> | ||
<!-- | <!-- | ||
GETBESTDEFENDER | GETBESTDEFENDER | ||
Line 343: | Line 343: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetBestDefender|GetBestDefender]]([[Civ5Lua/PlayerID|PlayerID]] eOwner, [[Civ5Lua/PlayerID|PlayerID]] eAttackingPlayer, [[Civ5Lua/Unit|Unit]] attacker, '''bool''' testAtWar, '''bool''' testPotentialEnemy, '''bool''' testCanMove)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eOwner: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eAttackingPlayer: | |||
|- | |- | ||
| | | | ||
| | | | ||
: attacker: | |||
|- | |- | ||
| | | | ||
| | | | ||
: testAtWar: | |||
|- | |- | ||
| | | | ||
| | | | ||
: testPotentialEnemy: | |||
|- | |- | ||
| | | | ||
| | | | ||
: testCanMove: | |||
<!-- | <!-- | ||
GETBUILDPROGRESS | GETBUILDPROGRESS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetBuildProgress|GetBuildProgress]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
<!-- | <!-- | ||
GETBUILDTIME | GETBUILDTIME | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetBuildTime|GetBuildTime]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
<!-- | <!-- | ||
GETBUILDTURNSLEFT | GETBUILDTURNSLEFT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetBuildTurnsLeft|GetBuildTurnsLeft]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID, '''int''' nowExtra, '''int''' thenExtra)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: nowExtra: | |||
|- | |- | ||
| | | | ||
| | | | ||
: thenExtra: | |||
<!-- | <!-- | ||
GETBUILDTURNSTOTAL | GETBUILDTURNSTOTAL | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetBuildTurnsTotal|GetBuildTurnsTotal]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
<!-- | <!-- | ||
GETCITYRADIUSCOUNT | GETCITYRADIUSCOUNT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetCityRadiusCount|GetCityRadiusCount]]()</code> | ||
<!-- | <!-- | ||
GETCONTINENTARTTYPE | GETCONTINENTARTTYPE | ||
Line 427: | Line 427: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetContinentArtType|GetContinentArtType]]()</code> | ||
|- | |- | ||
| | | | ||
| ''''Determines continent for plot type.'''' | | ''''Determines continent for plot type.'''' | ||
|- | |||
| | |||
| | |||
:Returned value: ''Returns number 0=Ocean, 1=America, 2=Asia, 3=Africa, 4=Europa'' | |||
<!-- | <!-- | ||
GETEXTRAMOVEPATHCOST | GETEXTRAMOVEPATHCOST | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetExtraMovePathCost|GetExtraMovePathCost]]()</code> | ||
<!-- | <!-- | ||
GETFEATUREPRODUCTION | GETFEATUREPRODUCTION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetFeatureProduction|GetFeatureProduction]]([[Civ5Lua/BuildActionID|BuildActionID]] buildID, [[Civ5Lua/TeamID|TeamID]] eTeam, [[Civ5Lua/City|City]] city)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: buildID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: city: | |||
<!-- | <!-- | ||
GETFEATURETYPE | GETFEATURETYPE | ||
Line 460: | Line 464: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetFeatureType|GetFeatureType]]()</code> | ||
<!-- | <!-- | ||
GETFEATUREVARIETY | GETFEATUREVARIETY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetFeatureVariety|GetFeatureVariety]]()</code> | ||
<!-- | <!-- | ||
GETFOUNDVALUE | GETFOUNDVALUE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetFoundValue|GetFoundValue]]([[Civ5Lua/PlayerID|PlayerID]] eIndex)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eIndex: | |||
<!-- | <!-- | ||
GETIMPROVEMENTDURATION | GETIMPROVEMENTDURATION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetImprovementDuration|GetImprovementDuration]]()</code> | ||
<!-- | <!-- | ||
GETIMPROVEMENTTYPE | GETIMPROVEMENTTYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/ImprovementID|ImprovementID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetImprovementType|GetImprovementType]]()</code> | ||
<!-- | <!-- | ||
GETINLANDCORNER | GETINLANDCORNER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/Plot|Plot]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetInlandCorner|GetInlandCorner]]()</code> | ||
<!-- | <!-- | ||
GETINVISIBLEVISIBILITYCOUNT | GETINVISIBLEVISIBILITYCOUNT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetInvisibleVisibilityCount|GetInvisibleVisibilityCount]]([[Civ5Lua/TeamID|TeamID]] eTeam, [[Civ5Lua/InvisibilityScopeID|InvisibilityScopeID]] invisibleID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: invisibleID: | |||
<!-- | <!-- | ||
GETLATITUDE | GETLATITUDE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetLatitude|GetLatitude]]()</code> | ||
<!-- | <!-- | ||
GETNEARESTLANDAREA | GETNEARESTLANDAREA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNearestLandArea|GetNearestLandArea]]()</code> | ||
<!-- | <!-- | ||
GETNEARESTLANDPLOT | GETNEARESTLANDPLOT | ||
Line 526: | Line 530: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNearestLandPlot|GetNearestLandPlot]]()</code> | ||
<!-- | <!-- | ||
GETNONOBSOLETERESOURCETYPE | GETNONOBSOLETERESOURCETYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/ResourceID|ResourceID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNonObsoleteResourceType|GetNonObsoleteResourceType]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
GETNUMDEFENDERS | GETNUMDEFENDERS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNumDefenders|GetNumDefenders]]([[Civ5Lua/PlayerID|PlayerID]] ePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
<!-- | <!-- | ||
GETNUMFRIENDLYUNITSOFTYPE | GETNUMFRIENDLYUNITSOFTYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNumFriendlyUnitsOfType|GetNumFriendlyUnitsOfType]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
GETNUMRESOURCE | GETNUMRESOURCE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNumResource|GetNumResource]]()</code> | ||
<!-- | <!-- | ||
GETNUMUNITS | GETNUMUNITS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNumUnits|GetNumUnits]]()</code> | ||
<!-- | <!-- | ||
GETNUMVISIBLEENEMYDEFENDERS | GETNUMVISIBLEENEMYDEFENDERS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNumVisibleEnemyDefenders|GetNumVisibleEnemyDefenders]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
GETNUMVISIBLEPOTENTIALENEMYDEFENDERS | GETNUMVISIBLEPOTENTIALENEMYDEFENDERS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetNumVisiblePotentialEnemyDefenders|GetNumVisiblePotentialEnemyDefenders]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
GETOWNER | GETOWNER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/PlayerID|PlayerID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetOwner|GetOwner]]()</code> | ||
<!-- | <!-- | ||
GETOWNERSHIPDURATION | GETOWNERSHIPDURATION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetOwnershipDuration|GetOwnershipDuration]]()</code> | ||
<!-- | <!-- | ||
GETPLAYERCITYRADIUSCOUNT | GETPLAYERCITYRADIUSCOUNT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetPlayerCityRadiusCount|GetPlayerCityRadiusCount]]([[Civ5Lua/PlayerID|PlayerID]] eIndex)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eIndex: | |||
<!-- | <!-- | ||
GETPLOTCITY | GETPLOTCITY | ||
Line 616: | Line 620: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetPlotCity|GetPlotCity]]()</code> | ||
<!-- | <!-- | ||
GETPLOTTYPE | GETPLOTTYPE | ||
Line 622: | Line 626: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetPlotType|GetPlotType]]()</code> | ||
<!-- | <!-- | ||
GETRECONCOUNT | GETRECONCOUNT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetReconCount|GetReconCount]]()</code> | ||
<!-- | <!-- | ||
GETRESOURCETYPE | GETRESOURCETYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/ResourceID|ResourceID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetResourceType|GetResourceType]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
GETREVEALEDIMPROVEMENTTYPE | GETREVEALEDIMPROVEMENTTYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/ImprovementID|ImprovementID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRevealedImprovementType|GetRevealedImprovementType]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
GETREVEALEDOWNER | GETREVEALEDOWNER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/PlayerID|PlayerID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRevealedOwner|GetRevealedOwner]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
GETREVEALEDROUTETYPE | GETREVEALEDROUTETYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/RouteID|RouteID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRevealedRouteType|GetRevealedRouteType]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
GETREVEALEDTEAM | GETREVEALEDTEAM | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/TeamID|TeamID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRevealedTeam|GetRevealedTeam]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
GETRIVERCROSSINGCOUNT | GETRIVERCROSSINGCOUNT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRiverCrossingCount|GetRiverCrossingCount]]()</code> | ||
<!-- | <!-- | ||
GETRIVEREFLOWDIRECTION | GETRIVEREFLOWDIRECTION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/FlowDirectionID|FlowDirectionID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRiverEFlowDirection|GetRiverEFlowDirection]]()</code> | ||
<!-- | <!-- | ||
GETRIVERSEFLOWDIRECTION | GETRIVERSEFLOWDIRECTION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/FlowDirectionID|FlowDirectionID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRiverSEFlowDirection|GetRiverSEFlowDirection]]()</code> | ||
<!-- | <!-- | ||
GETRIVERSWFLOWDIRECTION | GETRIVERSWFLOWDIRECTION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/FlowDirectionID|FlowDirectionID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRiverSWFlowDirection|GetRiverSWFlowDirection]]()</code> | ||
<!-- | <!-- | ||
GETROUTETYPE | GETROUTETYPE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>[[Civ5Lua/RouteID|RouteID]]</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetRouteType|GetRouteType]]()</code> | ||
<!-- | <!-- | ||
GETSCRIPTDATA | GETSCRIPTDATA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''string'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetScriptData|GetScriptData]]()</code> | ||
<!-- | <!-- | ||
GETSELECTEDUNIT | GETSELECTEDUNIT | ||
Line 736: | Line 740: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetSelectedUnit|GetSelectedUnit]]()</code> | ||
<!-- | <!-- | ||
GETTEAM | GETTEAM | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetTeam|GetTeam]]()</code> | ||
<!-- | <!-- | ||
GETTERRAINTYPE | GETTERRAINTYPE | ||
Line 748: | Line 752: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetTerrainType|GetTerrainType]]()</code> | ||
<!-- | <!-- | ||
GETUNIT | GETUNIT | ||
Line 754: | Line 758: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetUnit|GetUnit]]('''int''' index)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: index: | |||
<!-- | <!-- | ||
GETUNITPOWER | GETUNITPOWER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetUnitPower|GetUnitPower]]([[Civ5Lua/PlayerID|PlayerID]] eOwner)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eOwner: | |||
<!-- | <!-- | ||
GETUPGRADEPROGRESS | GETUPGRADEPROGRESS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetUpgradeProgress|GetUpgradeProgress]]()</code> | ||
<!-- | <!-- | ||
GETUPGRADETIMELEFT | GETUPGRADETIMELEFT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetUpgradeTimeLeft|GetUpgradeTimeLeft]]([[Civ5Lua/ImprovementID|ImprovementID]] improvementID, [[Civ5Lua/PlayerID|PlayerID]] ePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: improvementID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
<!-- | <!-- | ||
GETVISIBILITYCOUNT | GETVISIBILITYCOUNT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetVisibilityCount|GetVisibilityCount]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
GETWORKINGCITY | GETWORKINGCITY | ||
Line 804: | Line 808: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetWorkingCity|GetWorkingCity]]()</code> | ||
<!-- | <!-- | ||
GETWORKINGCITYOVERRIDE | GETWORKINGCITYOVERRIDE | ||
Line 810: | Line 814: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetWorkingCityOverride|GetWorkingCityOverride]]()</code> | ||
<!-- | <!-- | ||
GETX | GETX | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetX|GetX]]()</code> | ||
<!-- | <!-- | ||
GETY | GETY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetY|GetY]]()</code> | ||
<!-- | <!-- | ||
GETYIELD | GETYIELD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetYield|GetYield]]([[Civ5Lua/YieldID|YieldID]] yieldID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: yieldID: | |||
<!-- | <!-- | ||
GETYIELDWITHBUILD | GETYIELDWITHBUILD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/GetYieldWithBuild|GetYieldWithBuild]]()</code> | ||
<!-- | <!-- | ||
HASBARBARIANCAMP | HASBARBARIANCAMP | ||
Line 844: | Line 848: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/HasBarbarianCamp|HasBarbarianCamp]]()</code> | ||
<!-- | <!-- | ||
HASYIELD | HASYIELD | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/HasYield|HasYield]]()</code> | ||
<!-- | <!-- | ||
ISACTIVEVISIBLE | ISACTIVEVISIBLE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsActiveVisible|IsActiveVisible]]('''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
ISADJACENTNONREVEALED | ISADJACENTNONREVEALED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentNonrevealed|IsAdjacentNonrevealed]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
ISADJACENTNONVISIBLE | ISADJACENTNONVISIBLE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentNonvisible|IsAdjacentNonvisible]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
ISADJACENTOWNED | ISADJACENTOWNED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentOwned|IsAdjacentOwned]]()</code> | ||
<!-- | <!-- | ||
ISADJACENTPLAYER | ISADJACENTPLAYER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentPlayer|IsAdjacentPlayer]]([[Civ5Lua/PlayerID|PlayerID]] ePlayer, '''bool''' landOnly)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
|- | |- | ||
| | | | ||
| | | | ||
: landOnly: | |||
<!-- | <!-- | ||
ISADJACENTREVEALED | ISADJACENTREVEALED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentRevealed|IsAdjacentRevealed]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
ISADJACENTTEAM | ISADJACENTTEAM | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentTeam|IsAdjacentTeam]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' landOnly)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: landOnly: | |||
<!-- | <!-- | ||
ISADJACENTTOAREA | ISADJACENTTOAREA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentToArea|IsAdjacentToArea]]([[Civ5Lua/Area|Area]] area)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: area: | |||
<!-- | <!-- | ||
ISADJACENTTOLAND | ISADJACENTTOLAND | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentToLand|IsAdjacentToLand]]()</code> | ||
<!-- | <!-- | ||
ISADJACENTTOSHALLOWWATER | ISADJACENTTOSHALLOWWATER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentToShallowWater|IsAdjacentToShallowWater]]()</code> | ||
<!-- | <!-- | ||
ISADJACENTVISIBLE | ISADJACENTVISIBLE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsAdjacentVisible|IsAdjacentVisible]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
ISBARBARIAN | ISBARBARIAN | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsBarbarian|IsBarbarian]]()</code> | ||
<!-- | <!-- | ||
ISBEINGWORKED | ISBEINGWORKED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsBeingWorked|IsBeingWorked]]()</code> | ||
<!-- | <!-- | ||
ISBESTADJACENTFOUND | ISBESTADJACENTFOUND | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsBestAdjacentFound|IsBestAdjacentFound]]([[Civ5Lua/PlayerID|PlayerID]] eIndex)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eIndex: | |||
<!-- | <!-- | ||
ISBUILDREMOVESFEATURE | ISBUILDREMOVESFEATURE | ||
Line 988: | Line 992: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsBuildRemovesFeature|IsBuildRemovesFeature]]()</code> | ||
<!-- | <!-- | ||
ISCITY | ISCITY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsCity|IsCity]]()</code> | ||
<!-- | <!-- | ||
ISCITYRADIUS | ISCITYRADIUS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsCityRadius|IsCityRadius]]()</code> | ||
<!-- | <!-- | ||
ISCOASTALLAND | ISCOASTALLAND | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsCoastalLand|IsCoastalLand]]()</code> | ||
<!-- | <!-- | ||
ISENEMYCITY | ISENEMYCITY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsEnemyCity|IsEnemyCity]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
ISFIGHTING | ISFIGHTING | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsFighting|IsFighting]]()</code> | ||
<!-- | <!-- | ||
ISFLATLANDS | ISFLATLANDS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsFlatlands|IsFlatlands]]()</code> | ||
<!-- | <!-- | ||
ISFRESHWATER | ISFRESHWATER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsFreshWater|IsFreshWater]]()</code> | ||
<!-- | <!-- | ||
ISFRIENDLYCITY | ISFRIENDLYCITY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsFriendlyCity|IsFriendlyCity]]([[Civ5Lua/Unit|Unit]] unit, '''bool''' checkImprovement)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
|- | |- | ||
| | | | ||
| | | | ||
: checkImprovement: | |||
<!-- | <!-- | ||
ISFRIENDLYTERRITORY | ISFRIENDLYTERRITORY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsFriendlyTerritory|IsFriendlyTerritory]]([[Civ5Lua/PlayerID|PlayerID]] ePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
<!-- | <!-- | ||
ISGOODY | ISGOODY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsGoody|IsGoody]]()</code> | ||
<!-- | <!-- | ||
ISHILLS | ISHILLS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsHills|IsHills]]()</code> | ||
<!-- | <!-- | ||
ISIMPASSABLE | ISIMPASSABLE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsImpassable|IsImpassable]]()</code> | ||
<!-- | <!-- | ||
ISIMPROVEMENTPILLAGED | ISIMPROVEMENTPILLAGED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsImprovementPillaged|IsImprovementPillaged]]()</code> | ||
<!-- | <!-- | ||
ISINVISIBLEVISIBLE | ISINVISIBLEVISIBLE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsInvisibleVisible|IsInvisibleVisible]]([[Civ5Lua/TeamID|TeamID]] eTeam, [[Civ5Lua/InvisibilityScopeID|InvisibilityScopeID]] invisibleID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: invisibleID: | |||
<!-- | <!-- | ||
ISLAKE | ISLAKE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsLake|IsLake]]()</code> | ||
<!-- | <!-- | ||
ISMOUNTAIN | ISMOUNTAIN | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsMountain|IsMountain]]()</code> | ||
<!-- | <!-- | ||
ISNEOFRIVER | ISNEOFRIVER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsNEOfRiver|IsNEOfRiver]]()</code> | ||
<!-- | <!-- | ||
ISNONE | ISNONE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsNone|IsNone]]()</code> | ||
<!-- | <!-- | ||
ISNWOFRIVER | ISNWOFRIVER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsNWOfRiver|IsNWOfRiver]]()</code> | ||
<!-- | <!-- | ||
ISOPENGROUND | ISOPENGROUND | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsOpenGround|IsOpenGround]]()</code> | ||
<!-- | <!-- | ||
ISOWNED | ISOWNED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsOwned|IsOwned]]()</code> | ||
<!-- | <!-- | ||
ISOWNERSHIPSCORE | ISOWNERSHIPSCORE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsOwnershipScore|IsOwnershipScore]]()</code> | ||
<!-- | <!-- | ||
ISPLAYERCITYRADIUS | ISPLAYERCITYRADIUS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsPlayerCityRadius|IsPlayerCityRadius]]([[Civ5Lua/PlayerID|PlayerID]] eIndex)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eIndex: | |||
<!-- | <!-- | ||
ISPOTENTIALCITYWORK | ISPOTENTIALCITYWORK | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsPotentialCityWork|IsPotentialCityWork]]()</code> | ||
<!-- | <!-- | ||
ISPOTENTIALCITYWORKFORAREA | ISPOTENTIALCITYWORKFORAREA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsPotentialCityWorkForArea|IsPotentialCityWorkForArea]]([[Civ5Lua/Area|Area]] area)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: area: | |||
<!-- | <!-- | ||
ISRESOURCECONNECTEDBYIMPROVEMENT | ISRESOURCECONNECTEDBYIMPROVEMENT | ||
Line 1,176: | Line 1,180: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsResourceConnectedByImprovement|IsResourceConnectedByImprovement]]()</code> | ||
<!-- | <!-- | ||
ISREVEALED | ISREVEALED | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRevealed|IsRevealed]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
ISREVEALEDBARBARIAN | ISREVEALEDBARBARIAN | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRevealedBarbarian|IsRevealedBarbarian]]()</code> | ||
<!-- | <!-- | ||
ISREVEALEDGOODY | ISREVEALEDGOODY | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRevealedGoody|IsRevealedGoody]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
ISRIVER | ISRIVER | ||
Line 1,212: | Line 1,216: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRiver|IsRiver]]()</code> | ||
<!-- | <!-- | ||
ISRIVERCONNECTION | ISRIVERCONNECTION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRiverConnection|IsRiverConnection]]([[Civ5Lua/DirectionID|DirectionID]] directionID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: directionID: | |||
<!-- | <!-- | ||
ISRIVERCROSSING | ISRIVERCROSSING | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRiverCrossing|IsRiverCrossing]]([[Civ5Lua/DirectionID|DirectionID]] directionID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: directionID: | |||
<!-- | <!-- | ||
ISRIVERCROSSINGFLOWCLOCKWISE | ISRIVERCROSSINGFLOWCLOCKWISE | ||
Line 1,238: | Line 1,242: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRiverCrossingFlowClockwise|IsRiverCrossingFlowClockwise]]()</code> | ||
<!-- | <!-- | ||
ISRIVERCROSSINGTOPLOT | ISRIVERCROSSINGTOPLOT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRiverCrossingToPlot|IsRiverCrossingToPlot]]([[Civ5Lua/DirectionID|DirectionID]] directionID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: directionID: | |||
<!-- | <!-- | ||
ISRIVERSIDE | ISRIVERSIDE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRiverSide|IsRiverSide]]()</code> | ||
<!-- | <!-- | ||
ISROUGHGROUND | ISROUGHGROUND | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRoughGround|IsRoughGround]]()</code> | ||
<!-- | <!-- | ||
ISROUTE | ISROUTE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRoute|IsRoute]]()</code> | ||
<!-- | <!-- | ||
ISROUTEPILLAGED | ISROUTEPILLAGED | ||
Line 1,272: | Line 1,276: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsRoutePillaged|IsRoutePillaged]]()</code> | ||
<!-- | <!-- | ||
ISSTARTINGPLOT | ISSTARTINGPLOT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsStartingPlot|IsStartingPlot]]()</code> | ||
<!-- | <!-- | ||
ISTRADEROUTE | ISTRADEROUTE | ||
Line 1,284: | Line 1,288: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsTradeRoute|IsTradeRoute]]()</code> | ||
<!-- | <!-- | ||
ISUNIT | ISUNIT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsUnit|IsUnit]]()</code> | ||
<!-- | <!-- | ||
ISVALIDDOMAINFORACTION | ISVALIDDOMAINFORACTION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsValidDomainForAction|IsValidDomainForAction]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
ISVALIDDOMAINFORLOCATION | ISVALIDDOMAINFORLOCATION | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsValidDomainForLocation|IsValidDomainForLocation]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
ISVISIBLE | ISVISIBLE | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsVisible|IsVisible]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' debug)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: debug: | |||
<!-- | <!-- | ||
ISVISIBLEENEMYDEFENDER | ISVISIBLEENEMYDEFENDER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsVisibleEnemyDefender|IsVisibleEnemyDefender]]([[Civ5Lua/Unit|Unit]] unit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
<!-- | <!-- | ||
ISVISIBLEENEMYUNIT | ISVISIBLEENEMYUNIT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsVisibleEnemyUnit|IsVisibleEnemyUnit]]([[Civ5Lua/PlayerID|PlayerID]] ePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
<!-- | <!-- | ||
ISVISIBLEOTHERUNIT | ISVISIBLEOTHERUNIT | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsVisibleOtherUnit|IsVisibleOtherUnit]]([[Civ5Lua/PlayerID|PlayerID]] ePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: ePlayer: | |||
<!-- | <!-- | ||
ISVISIBLETOWATCHINGHUMAN | ISVISIBLETOWATCHINGHUMAN | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsVisibleToWatchingHuman|IsVisibleToWatchingHuman]]()</code> | ||
<!-- | <!-- | ||
ISWATER | ISWATER | ||
Line 1,366: | Line 1,370: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsWater|IsWater]]()</code> | ||
<!-- | <!-- | ||
ISWITHINTEAMCITYRADIUS | ISWITHINTEAMCITYRADIUS | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsWithinTeamCityRadius|IsWithinTeamCityRadius]]([[Civ5Lua/TeamID|TeamID]] eTeam, [[Civ5Lua/PlayerID|PlayerID]] eIgnorePlayer)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eIgnorePlayer: | |||
<!-- | <!-- | ||
ISWOFRIVER | ISWOFRIVER | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/IsWOfRiver|IsWOfRiver]]()</code> | ||
<!-- | <!-- | ||
MOVEMENTCOST | MOVEMENTCOST | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/MovementCost|MovementCost]]([[Civ5Lua/Unit|Unit]] unit, [[Civ5Lua/Plot|Plot]] fromPlot)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: unit: | |||
|- | |- | ||
| | | | ||
| | | | ||
: fromPlot: | |||
<!-- | <!-- | ||
NUKEEXPLOSION | NUKEEXPLOSION | ||
Line 1,406: | Line 1,410: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/NukeExplosion|NukeExplosion]]('''int''' range, [[Civ5Lua/Unit|Unit]] nukeUnit)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: range: | |||
|- | |- | ||
| | | | ||
| | | | ||
: nukeUnit: | |||
<!-- | <!-- | ||
PICKFEATUREDUMMYTAG | PICKFEATUREDUMMYTAG | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''string'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/PickFeatureDummyTag|PickFeatureDummyTag]]('''int''' mouseX, '''int''' mouseY)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: mouseX: | |||
|- | |- | ||
| | | | ||
| | | | ||
: mouseY: | |||
<!-- | <!-- | ||
REMOVEGOODY | REMOVEGOODY | ||
Line 1,434: | Line 1,438: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/RemoveGoody|RemoveGoody]]()</code> | ||
<!-- | <!-- | ||
RESETFEATUREMODEL | RESETFEATUREMODEL | ||
Line 1,440: | Line 1,444: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ResetFeatureModel|ResetFeatureModel]]()</code> | ||
<!-- | <!-- | ||
SEEFROMLEVEL | SEEFROMLEVEL | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SeeFromLevel|SeeFromLevel]]([[Civ5Lua/TeamID|TeamID]] eTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
<!-- | <!-- | ||
SEETHROUGHLEVEL | SEETHROUGHLEVEL | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SeeThroughLevel|SeeThroughLevel]]()</code> | ||
<!-- | <!-- | ||
SETAREA | SETAREA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''int'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetArea|SetArea]]()</code> | ||
<!-- | <!-- | ||
SETCONTINENTARTTYPE | SETCONTINENTARTTYPE | ||
Line 1,468: | Line 1,472: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetContinentArtType|SetContinentArtType]]()</code> | ||
<!-- | <!-- | ||
SETFEATUREDUMMYTEXTURE | SETFEATUREDUMMYTEXTURE | ||
Line 1,474: | Line 1,478: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetFeatureDummyTexture|SetFeatureDummyTexture]]('''string''' dummyTag, '''string''' textureTag)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: dummyTag: | |||
|- | |- | ||
| | | | ||
| | | | ||
: textureTag: | |||
<!-- | <!-- | ||
SETFEATUREDUMMYVISIBILITY | SETFEATUREDUMMYVISIBILITY | ||
Line 1,488: | Line 1,492: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetFeatureDummyVisibility|SetFeatureDummyVisibility]]('''string''' dummyTag, '''bool''' show)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: dummyTag: | |||
|- | |- | ||
| | | | ||
| | | | ||
: show: | |||
<!-- | <!-- | ||
SETFEATURETYPE | SETFEATURETYPE | ||
Line 1,502: | Line 1,506: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetFeatureType|SetFeatureType]]()</code> | ||
<!-- | <!-- | ||
SETIMPROVEMENTDURATION | SETIMPROVEMENTDURATION | ||
Line 1,508: | Line 1,512: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetImprovementDuration|SetImprovementDuration]]('''int''' newValue)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
<!-- | <!-- | ||
SETIMPROVEMENTPILLAGED | SETIMPROVEMENTPILLAGED | ||
Line 1,518: | Line 1,522: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetImprovementPillaged|SetImprovementPillaged]]('''bool''' b)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: b: | |||
<!-- | <!-- | ||
SETIMPROVEMENTTYPE | SETIMPROVEMENTTYPE | ||
Line 1,528: | Line 1,532: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetImprovementType|SetImprovementType]]([[Civ5Lua/ImprovementID|ImprovementID]] newValueID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValueID: | |||
<!-- | <!-- | ||
SETNEOFRIVER | SETNEOFRIVER | ||
Line 1,538: | Line 1,542: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetNEOfRiver|SetNEOfRiver]]('''bool''' newValue, [[Civ5Lua/FlowDirectionID|FlowDirectionID]] riverDirID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
|- | |- | ||
| | | | ||
| | | | ||
: riverDirID: | |||
<!-- | <!-- | ||
SETNUMRESOURCE | SETNUMRESOURCE | ||
Line 1,552: | Line 1,556: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetNumResource|SetNumResource]]('''int''' num)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: num: | |||
<!-- | <!-- | ||
SETNWOFRIVER | SETNWOFRIVER | ||
Line 1,562: | Line 1,566: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetNWOfRiver|SetNWOfRiver]]('''bool''' newValue, [[Civ5Lua/FlowDirectionID|FlowDirectionID]] riverDirID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
|- | |- | ||
| | | | ||
| | | | ||
: riverDirID: | |||
<!-- | <!-- | ||
SETOWNER | SETOWNER | ||
Line 1,576: | Line 1,580: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetOwner|SetOwner]]([[Civ5Lua/PlayerID|PlayerID]] eNewValue, '''int''' acquiringCityID, '''bool''' checkUnits, '''bool''' updateResources)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eNewValue: | |||
|- | |- | ||
| | | | ||
| | | | ||
: acquiringCityID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: checkUnits: | |||
|- | |- | ||
| | | | ||
| | | | ||
: updateResources: | |||
<!-- | <!-- | ||
SETOWNERSHIPDURATION | SETOWNERSHIPDURATION | ||
Line 1,598: | Line 1,602: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetOwnershipDuration|SetOwnershipDuration]]('''int''' newValue)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
<!-- | <!-- | ||
SETPLOTTYPE | SETPLOTTYPE | ||
Line 1,608: | Line 1,612: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetPlotType|SetPlotType]]([[Civ5Lua/PlotTypeID|PlotTypeID]] newValueID, '''bool''' recalculate, '''bool''' rebuildGraphics)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValueID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: recalculate: | |||
|- | |- | ||
| | | | ||
| | | | ||
: rebuildGraphics: | |||
<!-- | <!-- | ||
SETRESOURCETYPE | SETRESOURCETYPE | ||
Line 1,626: | Line 1,630: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetResourceType|SetResourceType]]([[Civ5Lua/ResourceID|ResourceID]] newValueID, '''int''' numResource)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValueID: | |||
|- | |- | ||
| | | | ||
| | | | ||
: numResource: | |||
<!-- | <!-- | ||
SETREVEALED | SETREVEALED | ||
Line 1,640: | Line 1,644: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetRevealed|SetRevealed]]([[Civ5Lua/TeamID|TeamID]] eTeam, '''bool''' newValue, '''bool''' terrainOnly, [[Civ5Lua/TeamID|TeamID]] eFromTeam)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: eTeam: | |||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
|- | |- | ||
| | | | ||
| | | | ||
: terrainOnly: | |||
|- | |- | ||
| | | | ||
| | | | ||
: eFromTeam: | |||
<!-- | <!-- | ||
SETROUTETYPE | SETROUTETYPE | ||
Line 1,662: | Line 1,666: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetRouteType|SetRouteType]]([[Civ5Lua/RouteID|RouteID]] newValueID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValueID: | |||
<!-- | <!-- | ||
SETSCRIPTDATA | SETSCRIPTDATA | ||
Line 1,672: | Line 1,676: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetScriptData|SetScriptData]]('''string''' szNewValue)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: szNewValue: | |||
<!-- | <!-- | ||
SETSTARTINGPLOT | SETSTARTINGPLOT | ||
Line 1,682: | Line 1,686: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetStartingPlot|SetStartingPlot]]('''bool''' newValue)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
<!-- | <!-- | ||
SETTERRAINTYPE | SETTERRAINTYPE | ||
Line 1,692: | Line 1,696: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetTerrainType|SetTerrainType]]([[Civ5Lua/TerrainID|TerrainID]] type)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: type: | |||
<!-- | <!-- | ||
SETUPGRADEPROGRESS | SETUPGRADEPROGRESS | ||
Line 1,702: | Line 1,706: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetUpgradeProgress|SetUpgradeProgress]]('''int''' newValue)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
<!-- | <!-- | ||
SETWOFRIVER | SETWOFRIVER | ||
Line 1,712: | Line 1,716: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/SetWOfRiver|SetWOfRiver]]('''bool''' newValue, [[Civ5Lua/FlowDirectionID|FlowDirectionID]] riverDirID)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: newValue: | |||
|- | |- | ||
| | | | ||
| | | | ||
: riverDirID: | |||
<!-- | <!-- | ||
SHAREADJACENTAREA | SHAREADJACENTAREA | ||
--> | --> | ||
|- | |- | ||
|align= | |align="right" |<code>'''bool'''</code> | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/ShareAdjacentArea|ShareAdjacentArea]]([[Civ5Lua/Plot|Plot]] plot)</code> | ||
|- | |- | ||
| | | | ||
| | | | ||
: plot: | |||
<!-- | <!-- | ||
UPDATEFOG | UPDATEFOG | ||
Line 1,736: | Line 1,740: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/UpdateFog|UpdateFog]]()</code> | ||
<!-- | <!-- | ||
UPDATEVISIBILITY | UPDATEVISIBILITY | ||
Line 1,742: | Line 1,746: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/UpdateVisibility|UpdateVisibility]]()</code> | ||
<!-- | <!-- | ||
WATERAREA | WATERAREA | ||
Line 1,748: | Line 1,752: | ||
|- | |- | ||
| | | | ||
| width= | | width="2" |<code>Plot:[[Civ5Lua/Plot/WaterArea|WaterArea]]()</code> | ||
|} | |} | ||
[[Category:Civ5Lua]] | [[Category:Civ5Lua]] |
Revision as of 09:00, 9 August 2012
This page is a part of the Lua and UI Reference.
Plot:AddFeatureDummyModel(string dummyTag, string modelTag)
| |
| |
| |
Plot:Area()
| |
bool
|
Plot:At(int x, int y)
|
| |
| |
int
|
Plot:CalculateBestNatureYield(YieldID yieldID, TeamID eTeam)
|
| |
| |
int
|
Plot:CalculateImprovementYieldChange(ImprovementID improvementID, YieldID yieldID, PlayerID ePlayer, bool optimal, RouteID assumeThisRouteID)
|
| |
| |
| |
| |
| |
int
|
Plot:CalculateNatureYield(YieldID yieldID, TeamID eTeam, bool ignoreFeature)
|
| |
| |
| |
int
|
Plot:CalculateTotalBestNatureYield(TeamID eTeam)
|
| |
int
|
Plot:CalculateYield(YieldID yieldID, bool display)
|
| |
| |
bool
|
Plot:CanBuild(BuildActionID buildID, PlayerID ePlayer, bool testVisible)
|
| |
| |
| |
Plot:CanHaveFeature()
| |
bool
|
Plot:CanHaveImprovement(ImprovementID improvementID, TeamID eTeam, bool potential)
|
| |
| |
| |
bool
|
Plot:CanHaveResource(ResourceID resourceID, bool ignoreLatitude)
|
| |
| |
Plot:CanSeePlot()
| |
bool
|
Plot:ChangeBuildProgress(BuildActionID buildID, int change, TeamID eTeam)
|
| |
| |
| |
Plot:ChangeExtraMovePathCost(int change)
| |
| |
Plot:ChangeImprovementDuration(int change)
| |
| |
Plot:ChangeInvisibleVisibilityCount(TeamID eTeam, InvisibilityScopeID invisibleID, int change)
| |
| |
| |
| |
Plot:ChangeNumResource(int change)
| |
| |
Plot:ChangeOwnershipDuration(int change)
| |
| |
Plot:ChangeUpgradeProgress(int change)
| |
| |
Plot:ChangeVisibilityCount(TeamID eTeam, int change, InvisibilityScopeID seeInvisibleTypeID, bool informExplorationTracking, bool alwaysSeeInvisible)
| |
| |
| |
| |
| |
| |
int
|
Plot:CountNumAirUnits(TeamID ePlayer)
|
| |
int
|
Plot:DefenseModifier(TeamID iDefendTeam, bool ignoreBuilding, bool help)
|
| |
| |
| |
Plot:Erase()
| |
Plot:GetActiveFogOfWarMode(<unknown>)
| |
int
|
Plot:GetArea()
|
Plot:GetBestDefender(PlayerID eOwner, PlayerID eAttackingPlayer, Unit attacker, bool testAtWar, bool testPotentialEnemy, bool testCanMove)
| |
| |
| |
| |
| |
| |
| |
int
|
Plot:GetBuildProgress(BuildActionID buildID)
|
| |
int
|
Plot:GetBuildTime(BuildActionID buildID)
|
| |
int
|
Plot:GetBuildTurnsLeft(BuildActionID buildID, int nowExtra, int thenExtra)
|
| |
| |
| |
int
|
Plot:GetBuildTurnsTotal(BuildActionID buildID)
|
| |
int
|
Plot:GetCityRadiusCount()
|
Plot:GetContinentArtType()
| |
'Determines continent for plot type.' | |
| |
int
|
Plot:GetExtraMovePathCost()
|
int
|
Plot:GetFeatureProduction(BuildActionID buildID, TeamID eTeam, City city)
|
| |
| |
| |
Plot:GetFeatureType()
| |
int
|
Plot:GetFeatureVariety()
|
int
|
Plot:GetFoundValue(PlayerID eIndex)
|
| |
int
|
Plot:GetImprovementDuration()
|
ImprovementID
|
Plot:GetImprovementType()
|
Plot
|
Plot:GetInlandCorner()
|
int
|
Plot:GetInvisibleVisibilityCount(TeamID eTeam, InvisibilityScopeID invisibleID)
|
| |
| |
int
|
Plot:GetLatitude()
|
int
|
Plot:GetNearestLandArea()
|
Plot:GetNearestLandPlot()
| |
ResourceID
|
Plot:GetNonObsoleteResourceType(TeamID eTeam)
|
| |
int
|
Plot:GetNumDefenders(PlayerID ePlayer)
|
| |
int
|
Plot:GetNumFriendlyUnitsOfType(Unit unit)
|
| |
int
|
Plot:GetNumResource()
|
int
|
Plot:GetNumUnits()
|
int
|
Plot:GetNumVisibleEnemyDefenders(Unit unit)
|
| |
int
|
Plot:GetNumVisiblePotentialEnemyDefenders(Unit unit)
|
| |
PlayerID
|
Plot:GetOwner()
|
int
|
Plot:GetOwnershipDuration()
|
int
|
Plot:GetPlayerCityRadiusCount(PlayerID eIndex)
|
| |
Plot:GetPlotCity()
| |
Plot:GetPlotType()
| |
int
|
Plot:GetReconCount()
|
ResourceID
|
Plot:GetResourceType(TeamID eTeam)
|
| |
ImprovementID
|
Plot:GetRevealedImprovementType(TeamID eTeam, bool debug)
|
| |
| |
PlayerID
|
Plot:GetRevealedOwner(TeamID eTeam, bool debug)
|
| |
| |
RouteID
|
Plot:GetRevealedRouteType(TeamID eTeam, bool debug)
|
| |
| |
TeamID
|
Plot:GetRevealedTeam(TeamID eTeam, bool debug)
|
| |
| |
int
|
Plot:GetRiverCrossingCount()
|
FlowDirectionID
|
Plot:GetRiverEFlowDirection()
|
FlowDirectionID
|
Plot:GetRiverSEFlowDirection()
|
FlowDirectionID
|
Plot:GetRiverSWFlowDirection()
|
RouteID
|
Plot:GetRouteType()
|
string
|
Plot:GetScriptData()
|
Plot:GetSelectedUnit()
| |
int
|
Plot:GetTeam()
|
Plot:GetTerrainType()
| |
Plot:GetUnit(int index)
| |
| |
int
|
Plot:GetUnitPower(PlayerID eOwner)
|
| |
int
|
Plot:GetUpgradeProgress()
|
int
|
Plot:GetUpgradeTimeLeft(ImprovementID improvementID, PlayerID ePlayer)
|
| |
| |
int
|
Plot:GetVisibilityCount(TeamID eTeam)
|
| |
Plot:GetWorkingCity()
| |
Plot:GetWorkingCityOverride()
| |
int
|
Plot:GetX()
|
int
|
Plot:GetY()
|
int
|
Plot:GetYield(YieldID yieldID)
|
| |
bool
|
Plot:GetYieldWithBuild()
|
Plot:HasBarbarianCamp()
| |
bool
|
Plot:HasYield()
|
bool
|
Plot:IsActiveVisible(bool debug)
|
| |
bool
|
Plot:IsAdjacentNonrevealed(TeamID eTeam)
|
| |
bool
|
Plot:IsAdjacentNonvisible(TeamID eTeam)
|
| |
bool
|
Plot:IsAdjacentOwned()
|
bool
|
Plot:IsAdjacentPlayer(PlayerID ePlayer, bool landOnly)
|
| |
| |
bool
|
Plot:IsAdjacentRevealed(TeamID eTeam)
|
| |
bool
|
Plot:IsAdjacentTeam(TeamID eTeam, bool landOnly)
|
| |
| |
bool
|
Plot:IsAdjacentToArea(Area area)
|
| |
bool
|
Plot:IsAdjacentToLand()
|
bool
|
Plot:IsAdjacentToShallowWater()
|
bool
|
Plot:IsAdjacentVisible(TeamID eTeam, bool debug)
|
| |
| |
bool
|
Plot:IsBarbarian()
|
bool
|
Plot:IsBeingWorked()
|
bool
|
Plot:IsBestAdjacentFound(PlayerID eIndex)
|
| |
Plot:IsBuildRemovesFeature()
| |
bool
|
Plot:IsCity()
|
int
|
Plot:IsCityRadius()
|
bool
|
Plot:IsCoastalLand()
|
bool
|
Plot:IsEnemyCity(Unit unit)
|
| |
bool
|
Plot:IsFighting()
|
bool
|
Plot:IsFlatlands()
|
bool
|
Plot:IsFreshWater()
|
bool
|
Plot:IsFriendlyCity(Unit unit, bool checkImprovement)
|
| |
| |
bool
|
Plot:IsFriendlyTerritory(PlayerID ePlayer)
|
| |
bool
|
Plot:IsGoody()
|
bool
|
Plot:IsHills()
|
bool
|
Plot:IsImpassable()
|
bool
|
Plot:IsImprovementPillaged()
|
bool
|
Plot:IsInvisibleVisible(TeamID eTeam, InvisibilityScopeID invisibleID)
|
| |
| |
bool
|
Plot:IsLake()
|
bool
|
Plot:IsMountain()
|
bool
|
Plot:IsNEOfRiver()
|
bool
|
Plot:IsNone()
|
bool
|
Plot:IsNWOfRiver()
|
bool
|
Plot:IsOpenGround()
|
bool
|
Plot:IsOwned()
|
bool
|
Plot:IsOwnershipScore()
|
bool
|
Plot:IsPlayerCityRadius(PlayerID eIndex)
|
| |
bool
|
Plot:IsPotentialCityWork()
|
bool
|
Plot:IsPotentialCityWorkForArea(Area area)
|
| |
Plot:IsResourceConnectedByImprovement()
| |
bool
|
Plot:IsRevealed(TeamID eTeam, bool debug)
|
| |
| |
bool
|
Plot:IsRevealedBarbarian()
|
bool
|
Plot:IsRevealedGoody(TeamID eTeam)
|
| |
Plot:IsRiver()
| |
bool
|
Plot:IsRiverConnection(DirectionID directionID)
|
| |
bool
|
Plot:IsRiverCrossing(DirectionID directionID)
|
| |
Plot:IsRiverCrossingFlowClockwise()
| |
bool
|
Plot:IsRiverCrossingToPlot(DirectionID directionID)
|
| |
bool
|
Plot:IsRiverSide()
|
bool
|
Plot:IsRoughGround()
|
bool
|
Plot:IsRoute()
|
Plot:IsRoutePillaged()
| |
bool
|
Plot:IsStartingPlot()
|
Plot:IsTradeRoute()
| |
bool
|
Plot:IsUnit()
|
bool
|
Plot:IsValidDomainForAction(Unit unit)
|
| |
bool
|
Plot:IsValidDomainForLocation(Unit unit)
|
| |
bool
|
Plot:IsVisible(TeamID eTeam, bool debug)
|
| |
| |
bool
|
Plot:IsVisibleEnemyDefender(Unit unit)
|
| |
bool
|
Plot:IsVisibleEnemyUnit(PlayerID ePlayer)
|
| |
bool
|
Plot:IsVisibleOtherUnit(PlayerID ePlayer)
|
| |
bool
|
Plot:IsVisibleToWatchingHuman()
|
Plot:IsWater()
| |
bool
|
Plot:IsWithinTeamCityRadius(TeamID eTeam, PlayerID eIgnorePlayer)
|
| |
| |
bool
|
Plot:IsWOfRiver()
|
int
|
Plot:MovementCost(Unit unit, Plot fromPlot)
|
| |
| |
Plot:NukeExplosion(int range, Unit nukeUnit)
| |
| |
| |
string
|
Plot:PickFeatureDummyTag(int mouseX, int mouseY)
|
| |
| |
Plot:RemoveGoody()
| |
Plot:ResetFeatureModel()
| |
int
|
Plot:SeeFromLevel(TeamID eTeam)
|
| |
int
|
Plot:SeeThroughLevel()
|
int
|
Plot:SetArea()
|
Plot:SetContinentArtType()
| |
Plot:SetFeatureDummyTexture(string dummyTag, string textureTag)
| |
| |
| |
Plot:SetFeatureDummyVisibility(string dummyTag, bool show)
| |
| |
| |
Plot:SetFeatureType()
| |
Plot:SetImprovementDuration(int newValue)
| |
| |
Plot:SetImprovementPillaged(bool b)
| |
| |
Plot:SetImprovementType(ImprovementID newValueID)
| |
| |
Plot:SetNEOfRiver(bool newValue, FlowDirectionID riverDirID)
| |
| |
| |
Plot:SetNumResource(int num)
| |
| |
Plot:SetNWOfRiver(bool newValue, FlowDirectionID riverDirID)
| |
| |
| |
Plot:SetOwner(PlayerID eNewValue, int acquiringCityID, bool checkUnits, bool updateResources)
| |
| |
| |
| |
| |
Plot:SetOwnershipDuration(int newValue)
| |
| |
Plot:SetPlotType(PlotTypeID newValueID, bool recalculate, bool rebuildGraphics)
| |
| |
| |
| |
Plot:SetResourceType(ResourceID newValueID, int numResource)
| |
| |
| |
Plot:SetRevealed(TeamID eTeam, bool newValue, bool terrainOnly, TeamID eFromTeam)
| |
| |
| |
| |
| |
Plot:SetRouteType(RouteID newValueID)
| |
| |
Plot:SetScriptData(string szNewValue)
| |
| |
Plot:SetStartingPlot(bool newValue)
| |
| |
Plot:SetTerrainType(TerrainID type)
| |
| |
Plot:SetUpgradeProgress(int newValue)
| |
| |
Plot:SetWOfRiver(bool newValue, FlowDirectionID riverDirID)
| |
| |
| |
bool
|
Plot:ShareAdjacentArea(Plot plot)
|
| |
Plot:UpdateFog()
| |
Plot:UpdateVisibility()
| |
Plot:WaterArea()
|