How do I make a new tech give base ability bonuses

Hi there.

I'm adding new techs to my tech tree - in particular techs like "Home Guard", "Power Armour" (well, you have "Space Marines" - Warhammer 40k players out there can to themselves)

I've made one called "Satellite Receivers", which I want to add a base ability bonus to morale, loyalty and possibly influence.

Can someone tell me how to do this via the tech tree style of coding - ie.
7,262 views 2 replies
Reply #1 Top
[Computing ID="Satellite Receivers"]
[DisplayName]Satellite Receivers[/DisplayName]
[Cost]600[/Cost]
[Category]Sensor[/Category]
[Description]Gives XYZ[/Description]
[Details]Bla bla blub.[/Details]
[Requires]some tech[/Requires]
[DiplomacyAbility]5[/DiplomacyAbility]
[MoraleAbility]5[/MoraleAbility]
[LoyaltyAbility]5[/LoyaltyAbility]
[Model]sensors0[/Model]
[AIValue]1[/AIValue]
[/Computing]

if it is computing or not, its your decision, see in your techtree.xml for other "lines". if the valua for the abilities is 5 or not, is your decision too. as model use something thats already ingame or do something new.

btw, the moding guide by carielf is quite good, why dont you just check it up? you wouldnt need to ask such an easy question... https://www.galciv2.com/mods/gc2modsdoc.htm
Reply #2 Top
Lovely.... after mucking about I came to the same conclusion.... I had a look about.... Heh heh - you should see my tech list for soldering - you should end up with soldering skill of a couple of hundred - still, the Dread Lords are 800 or so.

Does anyone know if you can add techs to upgrade the Starport, and still make it work.

I made 2 techs - Star POrt MKII and MKIII for the Tech Tree, and in the planet improvements, I copied the the Star Port data, then pasted it two more times, changed the starport tech name and the internal name to the MKII, MKIII - then changed the req. tech to the ones I made in the tech tree. I also copied one of the upgrade improvement codes, and changed it to the star port, and for MKIII, the MKII one.

This hasn't worked as planned. You still need the original starport, and then you can build a MKII and a MKIII, so you can have three star ports. How do I fix this so that the starport actually upgrades and still works.

See below

Tech Tree:




And the Planet Improvements:




If anyone can fix it, I will post you a big thankee