DWOLF
Death Before Dishonor
This seems pretty good, will try it.
def showInquisitionButton(pUnit):
# Orion's Inquisition Mod
pUnitOwner = gc.getPlayer(pUnit.getOwner())
iStateReligion = pUnitOwner.getStateReligion()
iUnitType = pUnit.getUnitType()
ProceedWithInquisition = False
zShowButton = False
if iStateReligion != -1 :
MyXInquisitor = str(getReligionInquisitor(iStateReligion))
InquisitorType = CvUtil.findInfoTypeNum(gc.getUnitInfo, gc.getNumUnitInfos(), MyXInquisitor)
if iUnitType == InquisitorType:
# Need to find a better way to fix the next line
#pUnit.setUnitAIType(UnitAITypes.UNITAI_UNKNOWN)
pCity = gc.getMap().plot( pUnit.getX(), pUnit.getY() ).getPlotCity()
pCityPlayer = gc.getPlayer(pCity.getOwner())
if ( pCity.getOwner( ) == pUnit.getOwner( ) ) or ( gc.getTeam( pCityPlayer.getTeam( ) ).isVassal( gc.getPlayer( pUnit. getOwner( ) ).getTeam( ) ) ):
ProceedWithInquisition = True
elif isOC_FOREIGN_INQUISITIONS():
#Foriegn Inquisition Check
if (pCity.getOwner() != pUnit.getOwner()):
iPlayerA = pUnit.getOwner( )
iPlayerB = pCity.getOwner( )
if hasOpenBordersAgreement(iPlayerA, iPlayerB):
if hasMatchingStateReligion(iPlayerA, iPlayerB):
ProceedWithInquisition = True
if ProceedWithInquisition:
if pCity.isHasReligion(iStateReligion):
for iReligionLoop in range(gc.getNumReligionInfos( )):
if pCity.isHasReligion(iReligionLoop):
if iReligionLoop != iStateReligion:
# If game option prevents Inquisition of Holy City.
if not isOC_INQUISITOR_CAN_REMOVE_HOLY_CITY():
# Does City Have one or more non-state religions that are not Holy City religions
if ocCityHasNonStateReligion(pCity, iStateReligion):
zShowButton = True
elif isOC_INQUISITOR_CAN_REMOVE_HOLY_CITY():
zShowButton = True
return zShowButton
##
## option isOC_FOREIGN_LITIGATIONS true mans can remove corporations from other nation's cities
##
def isOC_FOREIGN_LITIGATIONS():
return gc.getDefineINT("OC_FOREIGN_LITIGATIONS") != 0
def showLawyerButton(pUnit):
pUnitOwner = gc.getPlayer(pUnit.getOwner())
iUnitType = pUnit.getUnitType()
ProceedWithLitigation = False
zShowButton = False
if iUnitType == gc.getInfoTypeForString("UNIT_LAWYER"):
pCity = gc.getMap().plot( pUnit.getX(), pUnit.getY() ).getPlotCity()
if pCity == None: ## Check the plot is a city
return False
pCityPlayer = gc.getPlayer(pCity.getOwner())
if ( pCity.getOwner( ) == pUnit.getOwner( ) ) or ( gc.getTeam( pCityPlayer.getTeam( ) ).isVassal( gc.getPlayer( pUnit. getOwner( ) ).getTeam( ) ) ):
ProceedWithLitigation = True
elif isOC_FOREIGN_LITIGATIONS():
#Foriegn Inquisition Check
if (pCity.getOwner() != pUnit.getOwner()):
iPlayerA = pUnit.getOwner( )
iPlayerB = pCity.getOwner( )
if hasOpenBordersAgreement(iPlayerA, iPlayerB):
ProceedWithLitigation = True
if ProceedWithLitigation:
for iCorporationLoop in range(gc.getNumCorporationInfos( )):
if pCity.isHasCorporation (iCorporationLoop):
#~ zShowButton = True
return True ## get out of the loop asap
return zShowButton
if Inquisition.showLawyerButton(pUnit):
I think C2C has something similar.Does anyone have this for BTS 319? Cause it looks really interesting. And I know no one replied in this thread for 8 years...
Oh I forgot to mention that I found something exactly like this for BtS 319 by platyping!I think C2C has something similar.