User avatar
Clovis
Posts: 3222
Joined: Wed Nov 09, 2005 7:43 pm
Location: in a graveyard
Contact: Website

Lee lost order event

Sun Nov 18, 2007 10:50 am

Just a question:

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

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Sun Nov 18, 2007 12:22 pm

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

User avatar
Henry D.
Posts: 579
Joined: Wed Apr 12, 2006 10:42 am
Location: Germany
Contact: ICQ

Sun Nov 18, 2007 12:46 pm

So the woman who wrote "Gone with the wind" was actually a nothern spy? I'm shocked! :eek:

Regards, Henry :niark:
Henry D, also known as "Stauffenberg" @ Strategycon Interactive and formerly (un)known as "whatasillyname" @ Paradox Forums

"Rackers, wollt Ihr ewig leben?" (Rascals, Do You want to live forever?) - Frederick the Great, cursing at his fleeing Grenadiers at the battle of Kunersdorf

"Nee, Fritze, aber für fuffzehn Pfennije is' heute jenuch!" (No, Freddy, but for 15p let's call it a day!) - Retort of one passing Grenadier to the above :sourcil:

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Nov 19, 2007 10:52 am

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)
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Mon Nov 19, 2007 4:21 pm

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... ;)

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 18 guests