Resource icon

[XML+Python] TechTree - New icons and effects 2016-10-05

In this modcomp, 4 techs get 4 new effects:
  • Constitution: Golden age for everyone who researches it.
  • Music: Golden age for the first player who researches it.
  • Banking: 500*Gamespeed gold for everyone who researches it
  • Fission: Free ICBM for everyone who researches it.

The new effects are only displayed in the tech tree, not in the civilopedia or the hover text.

This mod component has 5 files:
- CvEventManager, for applying the effect
- CvTechChooser, for displaying the icons
- CvGameUtils, for displaying the text when hovering over the icons
- A XML file for the text
- One custom button.

In the python files, search for "TechTree - new icons".

Notes:
- I do not recommend to use or to add any "first player gets" effects to the tech tree, because the AI does not understand the effect and will not try to get the tech first
- To change the effects/icons to a new tech, both CvEventManager and CvTechChooser have to be changed. Changes in one of the files will not automatically be detected.

This modcomp has been requested by Kathy.

Please ask questions in this thread.
  • techtree_newicons_C2U.jpg
    techtree_newicons_C2U.jpg
    30.2 KB · Views: 150
Author
The_J
Downloads
443
Views
443
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from The_J

Back
Top Bottom