HELP NEEDED: Adding free xp to specialists.

sovarn

Warlord
Joined
Nov 8, 2005
Messages
166
Location
London
Basically what i am trying to do is to give the specialits in the city the ability to give units built there free xp much like the barracks or the theo civic.

To mod abilities of the specialists i went in gameinfo/civ4specialistsinfo.xml
But i cannot add free exp to the list.

The main question is can i mess around with the schema? under <element name="specialistinfo"> i added an element typer called "iexperience" which can be found in the buildinginfoschema.

Is it possible to do this? I managed to added <iexperience>1</iexperience> in the civ4specialistinfo.xml.

how do i add the line <ElementType name="iExperience" content="textOnly" dt:type="int"/> in the schema.

Everytime i try to do that it messes the schema up. Any help will be apprecieted thanks.
 
I'd be REALLY careful about adding this, it's just asking for abuse. Let's say a unit takes 5 turns to build. For the first four turns, I have all my specialists off being Merchants, Artists, etc., but on the final turn I switch them all to this new specialist. The unit gets a massive amount of XP to start off with, at the cost of only 1 turn's specialist allocation. And you can't require the city to have that specialist the entire time the unit's being produced, easily, since the game just doesn't seem to be coded that way.
The worst part, though, is that the AI probably won't realize how to use this specialist properly, and so you'll be giving yourself a big advantage.

As for how to code it, no idea.
 
anyway see this thread
http://forums.civfanatics.com/showthread.php?t=139297.

I want to implement a great person and when added to the city it gives xp points. not the regular specialists so the problem with cheating will be solved with that.

With the AI point, the only problem in prgramming AI to understand how to use the great person and that can be a problem.

Its just the XML thing thats bugging me :sad:
 
Back
Top Bottom