mutually exclusive techs

dewell

Warlord
Joined
Jun 29, 2007
Messages
171
Hi there,

how can I make 2 techs mutually exclusive? The player can't explore tech1 if he explores tech2 and the other way round ... is this possible in FFH2?
 
mh got no experience with python, will try it later ... perhaps you can give me a hint how to implement it?
 
Something like this, in CvGameUtils.py, def cannotResearch.

Code:
ePlayer = argsList[0]
eTech = argsList[1]
pPlayer = gc.getPlayer(ePlayer)
eTeam = gc.getTeam(pPlayer.getTeam())

if eTech == gc.getInfoTypeForString('TECH_X'):
    if eTeam.isHasTech(gc.getInfoTypeForString('TECH_Y'):
        return True

The initial four lines should be taken care of for you, important part is the last three; Says that if you have Tech_Y, you cannot research Tech_X.
 
Back
Top Bottom