Two Basic questions

Feoren

Chieftain
Joined
Mar 7, 2006
Messages
3
One - How would I make a technology able to increase the amount of experience new units get? I copied the <iFreeExperience> field from the buildings info file and put it into the tech schema, and put <iFreeExperience>0</iFreeExperience> in every tech field (the game loads fine), but as could be expected, changing this number doesn't do anything. I'm assuming I need to change a python file for this - even directing me to the file I need to change would be a huge help.

Two - I want to add a new domain for movement. I added:
<DomainInfo>
<Type>DOMAIN_HOVER</Type>
<Description>TXT_KEY_DOMAIN_HOVER</Description> </DomainInfo>
To my basic info file, but when I give a unit that domain, it says it doesn't exist, as if I had never defined it. Any ideas?
 
Feoren said:
One - How would I make a technology able to increase the amount of experience new units get? I copied the <iFreeExperience> field from the buildings info file and put it into the tech schema, and put <iFreeExperience>0</iFreeExperience> in every tech field (the game loads fine), but as could be expected, changing this number doesn't do anything. I'm assuming I need to change a python file for this - even directing me to the file I need to change would be a huge help.

Two - I want to add a new domain for movement. I added:
<DomainInfo>
<Type>DOMAIN_HOVER</Type>
<Description>TXT_KEY_DOMAIN_HOVER</Description> </DomainInfo>
To my basic info file, but when I give a unit that domain, it says it doesn't exist, as if I had never defined it. Any ideas?

You have successfully inserted the new element, but the game engine doesn't use it. Python can't help you, you will probably need to use the SDK.

Another way you could accomplish the same effect is to have the tech allow a civic that grants the XP.
 
Kael said:
You have successfully inserted the new element, but the game engine doesn't use it. Python can't help you, you will probably need to use the SDK.
Python could help you with this. You'd need to run a check whenever a unit was built, and if the owner of the unit had the right tech, you would just give the unit two extra experience points.

You'd have to learn a bit about python first though.
 
The Great Apple said:
Python could help you with this. You'd need to run a check whenever a unit was built, and if the owner of the unit had the right tech, you would just give the unit two extra experience points.

You'd have to learn a bit about python first though.

Good point, that is a cleaner method than the civic.
 
Thanks for your responses. This brings up another question, uh - what's the SDK? So far I've done all my modding in Notepad.
Edit: Also, which python file would I look in?
 
Back
Top Bottom