Functional Promotion Problems
Posted: Tue Nov 11, 2008 8:58 pm
Two related questions, here. First - echoing part of the work of the as-yet-unifinished Leader Mod that allows all generals to be promoted to level 3 - I've been working to add a few 'promotable' options on my own time. Now, I figured out how to do this pretty simply, and it appears to work...only, after I promote the general in question, he doesn't gain an extra star - in other words, he advances to the next unit and model as he should, but he remains a two-star general. (I'm using a two-star, in this case, for this test, but the principle should be the same for one-or-three-star generals, right?)
Here's the code I'm using. My new general-promotion has a UID of 1301, and a .MDL number of 1001. This is from the Evasion line, on down, from the standard McCook2 file. For reference: The maxrank = 4 part is because I'm trying to see if I can get a general promotable to four-stars, even if it's just cosmetic. I'd like to do that for Lee and Grant, rather than relying on events.
Here's the file it feeds into, with the UID and .MDL specified earlier.
So: Where am I going wrong? And is there anything else I can provide that'd help you, to help me? Just to recap: I am sure that McCook is promoting properly, it merely isn't displaying his three-stars when he gets his three-star rank. Does that need to be specified somewhere, or...? Anyhow, that's all, I'm just curious as to what's bad in the above code!
P.S.: What are the maximum and minimum stats (For strategic, offensive & defensive skill) for leaders? Can this be altered, anywhere? Also: Does what you put under the "Title" line have any effect beyond altering a general's prefix? Like, say, if I wanted to include a few notable Colonels and maybe a far-west constabulary Marshal, and put their titles, there, would it mess up their promotions, or anything else? Oh: And can brand-new, user-created generals advance beyond the two-star rank, or only generals with pictures, etcetera?
Yeah, lots of questions about Generals, but there you have it! Thanks in advance for any assistance!
~Kaoru
Here's the code I'm using. My new general-promotion has a UID of 1301, and a .MDL number of 1001. This is from the Evasion line, on down, from the standard McCook2 file. For reference: The maxrank = 4 part is because I'm trying to see if I can get a general promotable to four-stars, even if it's just cosmetic. I'd like to do that for Lee and Grant, rather than relying on events.
Code: Select all
TechUpg = $ldr_USA_MCCook3
CapturePerc = 0
IsSupport = 1
SupplyUsage = 0
SupplyStore = 0
AmmoUsage = 0
AmmoStore = 0
ShareSupply = 1
SupHitPen = 0
SupMovePen = 0
SupCbtPen = 0
Ability0 = $Indian_Fighter
VPValue = 6
POLValue = 6
BuildRate = 100
LeaderRank = 2
Seniority = 25
MaxRank = 4
Title = General
LandLeader = 1
Promotable = Yes
Here's the file it feeds into, with the UID and .MDL specified earlier.
Code: Select all
Ability0 = $Indian_Fighter
Ability1 = $Training_Officer
VPValue = 7
POLValue = 6
BuildRate = 100
LeaderRank = 3
Seniority = 23
MaxRank = 4
Title = General
LandLeader = 1
Promotable = Yes
So: Where am I going wrong? And is there anything else I can provide that'd help you, to help me? Just to recap: I am sure that McCook is promoting properly, it merely isn't displaying his three-stars when he gets his three-star rank. Does that need to be specified somewhere, or...? Anyhow, that's all, I'm just curious as to what's bad in the above code!
P.S.: What are the maximum and minimum stats (For strategic, offensive & defensive skill) for leaders? Can this be altered, anywhere? Also: Does what you put under the "Title" line have any effect beyond altering a general's prefix? Like, say, if I wanted to include a few notable Colonels and maybe a far-west constabulary Marshal, and put their titles, there, would it mess up their promotions, or anything else? Oh: And can brand-new, user-created generals advance beyond the two-star rank, or only generals with pictures, etcetera?
Yeah, lots of questions about Generals, but there you have it! Thanks in advance for any assistance!
~Kaoru