How to make Professions available only for certain specialists ?

Shadow_AUT

Chieftain
Joined
Oct 11, 2008
Messages
25
Is it possible to make a profession available only for certain specialists ?

I searched the dll file and didn't fint anything
and I tried to change the xml files, but nothing...

Anybody a clue ?
 
I dont think it's possible from XML only didn't see any related tag in the files.

In the SDK CvUnit::canHaveProfession() looks like a good place to start.
 
Yes it's possible. Setup your new profession in Civ4ProfessionInfos.xml and only assign it to the required unit in Civ4UnitInfos.xml. Easy. :)
 
How do you assign it from UnitInfos ? The only related tag there seem to be <ProfessionMeshGroups>, which does not list all the possible professions for existing units (like Colonist)... Hence i suspect it to be only art-relevant.
Or do i miss something ?
 
Yeah that's the spot. :)

If however, the OP wants to limit jobs such as "farming" to only famers, then you need to modify the unit in Civ4UnitInfos.xml so it generates a negative number of that yield. So if you ONLY want expert farmers to farm, assign -5 food modifier to all other colonists. That'll mean that only the expert farmer is generating any of that yield. :)
 
mhm what I wanted to do is, create a new profession for veteran soldiers only and let the old soldier profession be militia for civilians...

But..

Nothing will work, all professions are available to all colonists (and specialists)

Converted Indians can't be soldiers because they are only defensive, so its not the way ^^

This:
canHaveProfession()

is for specialist units (units which have already been teached) so it will not work :)

anyway thanks to all :)
 
Back
Top Bottom