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

Idea for an event

Fri Aug 10, 2007 12:05 pm

Rather than having a fixed event for "lost order" occurence, and considering they were several cases of succesful activities by spies or essential information given to general by civilians, I would like to create a genral event for each of the departement. Should this script be working, one creating the spy unit, the second removing it the next turn?

SelectFaction = $CSA
StartEvent = evt_nam_CSA_Spy_Mid_Atlantic|999|1|NULL|NULL|NULL|NULL

Conditions
MinDate = 1861/10/01
Probability = 5
PickUnit = $Mid_Atlantic;1;$Regular
GenMsg
EvalUnitSel = NULL

Actions
DescEvent = evt_desc_CSA_Spy
SelectFaction = $CSA
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

SelectFaction = $CSA

StartEvent = evt_nam_CSA_Spy_Mid_Atlantic|1|0|NULL|NULL|NULL

Conditions
MinDate = 1861/10/01
EvalEvent = evt_nam_CSA_Spy_Mid_Atlantic;=;1
EvalUnqUnit = Margaret Mitchell

Actions

SelUnqUnit = Margaret Mitchell
RemoveCuUnit
GenMsg

EndEvent

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 17 guests