<!--quoteo(post=228533:date=Dec 30 2007, 12:27 AM:name=Julian)--><div class='quotetop'>QUOTE(Julian @ Dec 30 2007, 12:27 AM) [snapback]228533[/snapback]</div><div class='quotemain'><!--quotec-->Whould there be possible in terms of coding to actually have the same character face/building but automatically upgrade the suit of clothes when being promoted, then?<!--QuoteEnd--></div><!--QuoteEEnd-->Something like <i>this</i>, you mean? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid="
" border="0" alt="rolleyes.gif" /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void AssignPromotionModel()
{
ref pchar = GetMainCharacter();
switch(GetCurrentLocationNation())
{
case ENGLAND:
switch(GetRank(pchar, GetCurrentLocationNation()))
{
case 1: // Midshipman
if(pchar.model == "cnorrington") pchar.model = "Mdnorrington";
break;
case 2: // Lieutenant
if(pchar.model == "depp") pchar.model = "47_Ltsparrow";
if(pchar.model == "Mdnorrington") pchar.model = "Ltnorrington";
// if(pchar.model == "blaze") pchar.model = "47_Blaze_brtlt";
break;
case 4: // Captain
if(pchar.model == "47_Ltsparrow") pchar.model = "47_Cptsparrow";
if(pchar.model == "Ltnorrington") pchar.model = "cnorrington";
// if(pchar.model == "47_Blaze_brtlt") pchar.model = "47_Blaze_brtcpt";
break;
case 5: // Commodore
if(pchar.model == "47_Cptsparrow") pchar.model = "47_Cosparrow";
if(pchar.model == "cnorrington") pchar.model = "Conorrington";
// if(pchar.model == "47_Blaze_brtcpt") pchar.model = "47_Blaze_brtco";
break;
}
break;
}
}<!--c2--></div><!--ec2-->
I wrote that several days ago at the request of Thomas the Terror. It has not yet been tested though. Might require some more work. But it should be possible.
Right now the code would only change the models for Jack Sparrow, Norrington and Nathaniel (when Thomas releases his new skins). Possibly we could also add some generic models here for when the player uses a different model. One thing I do wonder about: What to do when the player doesn't <i>want</i> a navy model? I should test this code and see what happens. Ideally, the pchar model would be switched to the navy outfit, but you'd keep your previous model available in the outfit selection screen so that you can revert right back if you don't want the new model. We could even make it so that if you don't have the appropriate navy model for the second promotion, apparently you deliberately switched back and you won't get another navy outfit either.
While we're at the topic of assigning models to the player when being promoted: We could also have the governor reward the player with other things, such as ships, swords and officers. This is what Thomas the Terror came up with for England:
<b>Midshipman:</b> British Cutter
<b>Lieutenant:</b> 16 Gun Brig/Sloopbrig
<b>Captain:</b> Sloop of War + Lieutenant (officer)
<b>Commodore:</b> Heavy/Light Frigate + (Lieutenant) Sloopbrig + Small sword
<b>Vice Admiral:</b> Lieutenants Sloopbrig => Light Frigate
<b>Admiral:</b> British Suprior Warship + Captain + Heavy Frigate + Lieutenant + Sloop of War + Medallion (+3 cannons)
<b>Knight:</b> Royal Special sword
Of course similar things should be thought up for the other nations, otherwise serving England would become <i>too</i> profitable in comparision with the other nations.
In any case: This could also play into the rewriting of the blade code where you can only get the really special blades by promotion from the governor.
I think we might need a seperate thread for this.