Please I need Help with Python

cromcrom

Cernu
Joined
Nov 11, 2005
Messages
268
Location
Chateauroux
I would like to create a mod.
All I need know is a bit of python scripting, i tried but can't do anything
So please what I would like is this.
Each time a tech is researched, another one in the list of all techs (all will be available from start) is put aside RANDOMLY, and can't be researched by that player anymore.

Exemple :
I have 4 techs at the beginning of the game:
tech_1; tech_2; tech_3;tech_4.

I choose to research tech_2.
When I am done, one of tech_1, tech_3 or tech_4 is randomly put aside.
Let's say its tech_4.

Then I can research tech_1 or tech_3.....ETC

Could anybody do that for me, and explain how to use it in a mod ?

This bit of code is VERY IMPORTANT to me, I tried hard to figure out myself, but can't....

I will do with all other stuff (XML...) But I need this very bit of python.

Thanks in advance.....
 
Back
Top Bottom