Must be python - or possibly it's different for the player and global?
sois enough to make them un-rebuildable?Code:<iMaxGlobalInstances>1</iMaxGlobalInstances>
I've thought that means that there can only be 1, but you can always rebuild - like iMaxPlayerInstances or iMaxTeamInstances.
Or am I missing something?
And what do I need to build Spartacus? Nothing is shown at civilopedia but I cannot build him ingame.
newUnit = pPlayer.initUnit(iGladiator, pPlot.getX(), pPlot.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_NORTH)
pLoser.setDamage(75, False)
newUnit.convert(pLoser)
pLoser.setDamage(100, False)
newUnit.finishMoves()
iXa = pLoser.getX()
iYa = pLoser.getY()
[B]CyInterface().addMessage(pPID,false,15,CyTranslator().getText("TXT_KEY_SPARTACUS_CAPTURE_SUCCESS",()),'',0,',Art/Interface/Buttons/Units/ICBM.dds,Art/Interface/Buttons/Warlords_Atlas_1.dds,3,11',ColorTypes(44), iXa, iYa, True,True)[/B]
## BTS HEROS - Spartacus Capture End ##
sure it's possible. you don't even need any python then.
give technology_X to germany as starting tech (without any benefits) and make the hero require that technology. make the technology not researchable (by xml). done.
name for the tech could be simple "German Heroes".
For the 2nd: Just make the unit require THAT technology AND one or more later ones.
For the 1st: Depending on your civ number. You can move all of those technologies below the regular tech tree for example.
Code:<FirstFreeUnitClass>UNITCLASS_YOUR_HERO</FirstFreeUnitClass>
works the same like "you will get a great artist when recovering music first".
wait... this won't work. then anybody could get the hero without knowledge of german_tech for example.
instant spawn should be done by python then.
or you hero has to be being built.