Page 1 of 1

Lee lost order event

Posted: Sun Nov 18, 2007 10:50 am
by Clovis
Just a question:

is someone able to explain me how the Leelost order event is working?

Posted: Sun Nov 18, 2007 12:22 pm
by Primasprit
Hi Clovis!

As far as I see it is the goal of the event to remove the fog of war around the army of Robert E. Lee. To achieve this, a 'spy-unit' of the Union is created where the army of Lee resides.

The event evt_nam_USA_TheLostOrder1862 is deactivated (Occurences = 0)

Code: Select all

StartEvent = evt_nam_USA_TheLostOrder1862|0|2|evt_txt_USA_TheLostOrder1862|Event-img_CMN_LeeLostOrder1862|$Prince George's, MD|NULL


For the CSA two events exist:

Code: Select all

StartEvent = evt_nam_CSA_LeeLostOrder1862|1|2|evt_txt_CSA_LeeLostOrder1862|Event-img_CMN_LeeLostOrder1862|$Richmond, VA|127

Conditions
  MinDate = 1862/09/13
  MaxDate = 1863/01/01
  Probability = 50

Actions
  DescEvent = evt_desc_CSA_LeeLostOrder1862

SelectFaction = $CSA
  SelUnqUnit = Robert E. Lee

SelectFaction = $USA

SelectFaction = $USA
  CreateGroup
  Posture = $Defensive
  SetKind = $Land
  Entranch = 0
  InCS = 0
  FixType = 999
  SetName = Margaret Mitchell
  Apply
  CreateUnit
  SetType = $uni_CSA_Scarlett
  FlavorName = Margaret Mitchell
  SUFlavorName = Margaret Mitchell
  SetLevel = 1
  SetName = Margaret Mitchell
  Apply

EndEvent

This one creates the spy-unit which removes the fog of war for the union. Lee is found via the command: SelUnqUnit = Robert E. Lee
After this the Union-unit Margaret Mitchell is created.

The question is now: Does the command SelUnqUnit also work as a region-selector?
If this is not the case the spy-unit would be created in the wrong place, in $Richmond, VA.

In the next turn the spy-unit is removed again:

Code: Select all

StartEvent = evt_nam_CSA_LeeLostOrder1862End|1|0|NULL|NULL|$Richmond, VA|127

Conditions
  MinDate = 1862/10/01
  MaxDate = 1863/01/01
  EvalEvent = evt_nam_CSA_LeeLostOrder1862;=;1
  EvalUnqUnit = Margaret Mitchell

Actions

  SelUnqUnit = Margaret Mitchell
  RemoveCuUnit
GenMsg

EndEvent



Cheers
Norbert

Posted: Sun Nov 18, 2007 12:46 pm
by Henry D.
So the woman who wrote "Gone with the wind" was actually a nothern spy? I'm shocked! :eek:

Regards, Henry :niark:

Posted: Mon Nov 19, 2007 10:52 am
by Pocus
Primasprit wrote:The question is now: Does the command SelUnqUnit also work as a region-selector?
If this is not the case the spy-unit would be created in the wrong place, in $Richmond, VA.
Cheers
Norbert


You can find the answer by looking in the code of TScriptEngine.SelectUniqueUnit, you privileged man! :sourcil:


(yes)

Posted: Mon Nov 19, 2007 4:21 pm
by Primasprit
Pocus wrote:You can find the answer by looking in the code of TScriptEngine.SelectUniqueUnit, you privileged man! :sourcil:

I will do that to check if you told the truth... ;)