How would I code a check in python to see if a specific AI civilization exists, and not have an event trigger if they do? For example, if the Lanun are not in the game or already destroyed, then an event for Lanun pirates could occur.
iAreThereScionsHere = CyGame().getNumCivActive(iScionCiv)
iLizCiv1 = gc.getInfoTypeForString('CIVILIZATION_MAZATL')
iAreThereLizardsHere=0
for iPlayer in range(gc.getMAX_PLAYERS()):
pPlayer = gc.getPlayer(iPlayer)
if pPlayer.getCivilizationType()==iLizCiv1:
iAreThereLizardsHere+=1
getNumCivActive is a FF only function. you can simply loop over the players though
pretty sure you need python for the farm event.Code:iLizCiv1 = gc.getInfoTypeForString('CIVILIZATION_MAZATL') iAreThereLizardsHere=0 for iPlayer in range(gc.getMAX_PLAYERS()): pPlayer = gc.getPlayer(iPlayer) if pPlayer.getCivilizationType()==iLizCiv1: iAreThereLizardsHere+=1
getNumCivActive is a FF only function. you can simply loop over the players though
pretty sure you need python for the farm event.Code:iLizCiv1 = gc.getInfoTypeForString('CIVILIZATION_MAZATL') iAreThereLizardsHere=0 for iPlayer in range(gc.getMAX_PLAYERS()): pPlayer = gc.getPlayer(iPlayer) if pPlayer.getCivilizationType()==iLizCiv1: iAreThereLizardsHere+=1
In the Leader Attributes I noticed there is a bFemale, is that being utilized in anything.
I can see a possibility for various Events, or Leader Traits and such.
def doTreantRage3(argsList):
iEvent = argsList[0]
kTriggeredData = argsList[1]
pPlot = gc.getMap().plot(kTriggeredData.iPlotX, kTriggeredData.iPlotY)
if pPlot.getNumUnits() == 0:
bPlayer = gc.getPlayer(gc.getBARBARIAN_PLAYER())
newUnit = bPlayer.initUnit(gc.getInfoTypeForString('UNIT_TREANT'), pPlot.getX(), pPlot.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
But the PROMOTION_HELD has one draw back : it keeps the unit from casting spells too. That's the reason behind no-firebreathing for Acheron, right?![]()
Yes it is, and that's something that both Orbis and RifE have removed.![]()
if unit.getUnitType() == gc.getInfoTypeForString('UNIT_ACHERON_IMMOBILE'):
if not pPlayer.isBarbarian():
newUnit = pPlayer.initUnit(gc.getInfoTypeForString('UNIT_ACHERON'), unit.getX(), unit.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)
newUnit.convert(unit)
I'd love to steal your leash mechanic but it involve dll work, which is out of my league
So, any suggestion on how to reduce movement without hampering spellcasting ability? How about creating 2 units (like Brigit held and Brigit free?)
A lot of mods have (or used to have if they've now become full downloads) installers that copied the FFH 2 directory.
How do you configure an installer to do this? I have a mod of Final Frontier (named, coincidentally, FFPlus) that currently requires the user to copy the Final Frontier mod folder and extract the zip over it. I'd love to set it up with an installer instead.
I seem to remember someone posting it in this thread but a quick search for "Installer" only turned up some discussion about the default Fall from Heaven 2 installer.