LeeS
Imperator
This (taken from here on the modwiki) appears not to be accurate:
Using the arguments in the order shown:
Always wanted to spawn a Great General at grid position X0Y0. The correct great general unit was spawned and the threshold for the next Great General was incremented correctly, just at the wrong map position, and always at 0,0..
In order to get the great general to spawn in the desired plot position I had to alter my use of the arguments as follows:
(and if you're wondering why I need to do this, it appears the game does not like what I did with my Great General Replacement Unit in my Scipio's Rome mod. I had thought it was working correctly, but when I actually moused-over the Military Overview panel player's combat experience towards the next Great General spawning I had 3,825/200 combat experience towards the next Great General).
Code:
Player:CreateGreatGeneral(Unit eGreatPersonUnit, bool incrementThreshold, bool incrementExperience, int x, int y)
Parameters
eGreatPersonUnit: No description available.
incrementThreshold: No description available.
incrementExperience: No description available.
x: No description available.
y: No description available
Using the arguments in the order shown:
Code:
pPlayer:CreateGreatGeneral(gProconsulUnitID, true, true, iPlotX, iPlotY)
In order to get the great general to spawn in the desired plot position I had to alter my use of the arguments as follows:
Code:
pPlayer:CreateGreatGeneral(gProconsulUnitID, iPlotX, iPlotY, true, true)
- Am I misunderstanding something here?
- Do we have a thread somewhere wherein people are recording such issues where they find the modwiki is either incorrect or too vague to be of much use?
(and if you're wondering why I need to do this, it appears the game does not like what I did with my Great General Replacement Unit in my Scipio's Rome mod. I had thought it was working correctly, but when I actually moused-over the Military Overview panel player's combat experience towards the next Great General spawning I had 3,825/200 combat experience towards the next Great General).