Page 1 of 1

Unit and Model auto-upgrade

Posted: Sat Mar 22, 2008 1:29 pm
by lodilefty
I've inferred the use of these by playtest and examining AACW and BoA databases.
For design, I'm a little confused how these work and interact with each other:

In Models:
[INDENT]TechUpg
TrainUpg
UnitAutoUpg[/INDENT]

In Units:
[INDENT]TechAutoUpg
TrainAutoUpg
UnitAutoUpg[/INDENT]

In the 'old' BoA:
Units only have UnitAutoUpg
Models have PrimUpg, SecUpg

What are differences? I want to be sure the right upgrades are happening. [Example: Models: Militia -> Reg Inf, but when/how does the Unit convert from Militia to Infantry so the correct AutoRaise rule is applied?]

Thanks ahead of time.... :king:

Posted: Tue Mar 25, 2008 11:01 am
by Pocus
UnitAutoUpg is deprecated and has been replaced by TechAutoUpg and TrainAutoUpg in the Unit file.

In models, UnitAutoUpg, PrimUpg and SecUpg are deprecated.

TrainUpg can happen if the element has some experience or is trained by a leader. Once 50% or more of the unit are in the model corresponding to TrainUpg, then the unit itself switch to TrainAutoUpg.

TechUpg is only done by event. Same principle though.

Posted: Tue Mar 25, 2008 1:06 pm
by lodilefty
Pocus wrote:TechUpg is only done by event. Same principle though.


Thank you for all of your answers!

I'm not sure I've seen this...

What kind of event would use this?

Posted: Tue Mar 25, 2008 2:33 pm
by Pocus
In AACW, you have some events which switch some models to another, using the TechUpg data and not the TrainUpg data.

Posted: Tue Mar 25, 2008 2:42 pm
by lodilefty
Pocus wrote:In AACW, you have some events which switch some models to another, using the TechUpg data and not the TrainUpg data.


Aha! :sourcil:
Do you mean the 'infamous' 7% Militia Training series of events? :siffle:
If so, Do events like these require the TechUpg data to be set correctlly?

Posted: Tue Mar 25, 2008 4:23 pm
by Pocus
Actually, it will use what you give, ie the event can look at the TrainUpg or TechUpg, depending of what you prefer. Bottom line, there are 2 upgrade pathes, one TrainUpg can be used spontaneously (experience > training) but both can be used for what you want (TechUpg can be used in an event which morph your militia into demons if they walk into region 666, if it pleases you ... the meaning is up to you, as the usage) :king:

Posted: Tue Mar 25, 2008 5:18 pm
by Rafiki
Oooo, I see the potential for a "Invasion of the Body Snatchers" alternative scenario :D

Posted: Tue Mar 25, 2008 9:20 pm
by arclight
Rafiki wrote:Oooo, I see the potential for a "Invasion of the Body Snatchers" alternative scenario :D

I see you're a Max Brooks fan.... :niark:

Can't wait until they bring out the WWZ in a movie... it will be a hoot! :dada:

Posted: Sat Jan 17, 2009 12:42 am
by Gray_Lensman
I've searched all thru the various AACW event files for the use of TechUpg and have not been able to find an example of its use anywhere. Could someone please point me in the right direction?

Posted: Sat Jan 17, 2009 12:44 am
by Gray_Lensman
deleted

Posted: Sat Jan 17, 2009 1:19 am
by lodilefty
Gray_Lensman wrote:I've searched all thru the various AACW event files for the use of TechUpg and have not been able to find an example of its use anywhere. Would you please clarify this?


Actually, there is example in WIA:

Diplo Options for 1775:
SelectFaction = $USA
StartEvent = evt_nam_USA_TechUpgrade_Check|999|0|NULL|NULL|NULL|NULL

Conditions
CheckOption = $gmaOptionDip;USA_TechUpgrade;=;1
EvalEngagementPts = >=;10

Actions
ChgFacEngagementPts = -10
SelectSubUnits = Models $mdl_USA_Inf;factiontags USA
[color="Red"]AlterCuSubUnit = ApplyToList;convert techupg;Attempts 3[/color]
SetEvtOccurs = evt_nam_USA_Techdown;MaxOccurs;1
SetEvtOccurs = evt_nam_USA_Techdown;CuOccurs;0

SelectFaction = $GBR
GenTextMsg = opt_notify_USA_GBR_TechUpgrade;1;NULL;NULL;NULL

SelectFaction = $USA
GenTextMsg = opt_notify_USA_TechUpgrade;1;NULL;NULL;NULL
ChangeActorPool = $gmaOptionDip;MaxUse;0;ResetFreq;0;ImageID;Opt_SYW_Sainte-Foy.png;Title;opt_title_USA_TechUpgrade;MsgString;opt_desc_USA_TechUpgrade;ToolString;opt_hint_USA_TechUpgrade;SubType;USA_TechUpgrade;SParam1;USA

EndEvent


The $mdl_USA_Inf has tech upgrade to $mdl_USA_Inf2

Interestingly, there is an associated event [evt_nam_USA_Techdown] that has 60% probability to reduce an Inf2 back to Inf the next year...

Posted: Sat Jan 17, 2009 3:29 am
by Gray_Lensman
deleted

Posted: Sat Jan 17, 2009 9:56 am
by Pocus
Just replied in another thread. TrainUpg does that.

Posted: Sat Jan 17, 2009 1:33 pm
by Coregonas
Following this thread... 2 questions.

1.- there is some limit regarding the number of units than can be upgraded EACH TURN due to the Trainupg event...

I ve found only a maximum of 2 units per turn do upgrade in my games due to EXP.

Perhaps some time 3 or more units do upgrade, but I can“t remember me have never this. :blink:

The code posted previously is then the limit ??:
[color="Red"]AlterCuSubUnit = ApplyToList;convert techupg;Attempts 3[/color]

And...
2.- The message "The soldiers of 2nd South caroline... have been trained with success" is due to this upgrade happening?

I ve found Soldiers trained by Cooper receive also this msg (ok, following your explanation before)...

but I remember some unit trained with this msg with NO EXP nor any general training it. I should found for it, I dont remember now exactly when I saw this.