Déja said:If I were to add a new element to the UnitInfo of a particular unit, would that be available along with all the other data (unit type, bomber range, etc)? Or is it necessary to read the XML manually?
Lord Olleus said:noone has yet managed to scusesfuly mod a schema file. I am quite sure that you need to modify the game engine to tell it what <imaxammo> actualy means.
Lord Olleus said:you might a well start learning C++ now then.
Déja said:yeah, that's pretty much what I'm looking for... I want to add an <iMaxAmmo> element to the UnitInfo
TheLopez said:Ok Déja, I'm home now, I'll see what I can do regarding your question. If I get something worked out I'll let you know.
forbiddenUnitList = [ iCrusader,
iMatilda,
iTransport,
iDestroyer,
iBattleship,
iSubmarine,
iCarrier ]
Déja said:actually, it'd be better to use a tuple so it would look like this:
ammoList = [ (unitname, maxammo), (unitname, maxammo) ]