First of all, hello folks.
I´m new into modding civ4 so please be patient ;-) (also english isn´t my native language so forgive any grammar mistakes i make)
Downloaded stuff:
- SDK
- Python25
What i´m looking for is some function to get a plot (with fixed coordinates evaluated from the current active unit). Anyone got an idea ?
I guess i could make that plot give out all "information" about the units on it with CyPlot.getUnit(int iIndex) (index will be generated to cycle through all the units on the given plot). Perhaps someone could explain how the data of a civ game is arranged while playing. Are the Plots arranged in some mysthic multidimensional array ? Just the basics and in which .cpp file i can find the functions/declarations.
My next problem is:
CyUnit.getUnitClassType()
it returns an int value BUT in every xml file i browsed the UnitClassType is a string ? Are there some files where alphanumeric UnitClassTypes are related
to nummeric UnitClassType(-keys ?) ?
(In the next part remember i am new to python ;-)) In the documentation for python i read something like "Python converts the type of an value the way python needs it" - is this the answer ? Can i feed my script with an integer variable and compare it with a string ?
Would be great if someone could help me with this, i am bored of "Barbarian Kings" which are doing a walk in the park alone, while her minions are crawling right besides them. They should gather their forces and smash any unprepared players face ;-)
greetings
mrtobacco
I´m new into modding civ4 so please be patient ;-) (also english isn´t my native language so forgive any grammar mistakes i make)
Downloaded stuff:
- SDK
- Python25
What i´m looking for is some function to get a plot (with fixed coordinates evaluated from the current active unit). Anyone got an idea ?
I guess i could make that plot give out all "information" about the units on it with CyPlot.getUnit(int iIndex) (index will be generated to cycle through all the units on the given plot). Perhaps someone could explain how the data of a civ game is arranged while playing. Are the Plots arranged in some mysthic multidimensional array ? Just the basics and in which .cpp file i can find the functions/declarations.
My next problem is:
CyUnit.getUnitClassType()
it returns an int value BUT in every xml file i browsed the UnitClassType is a string ? Are there some files where alphanumeric UnitClassTypes are related
to nummeric UnitClassType(-keys ?) ?
(In the next part remember i am new to python ;-)) In the documentation for python i read something like "Python converts the type of an value the way python needs it" - is this the answer ? Can i feed my script with an integer variable and compare it with a string ?
Would be great if someone could help me with this, i am bored of "Barbarian Kings" which are doing a walk in the park alone, while her minions are crawling right besides them. They should gather their forces and smash any unprepared players face ;-)
greetings
mrtobacco