User avatar
BigDuke66
General
Posts: 520
Joined: Fri Dec 11, 2009 2:06 pm

NCP Ulm Event, will this work?

Sun Nov 04, 2012 7:52 am

Hi
Can someone take a look at this and tell me if this will work?

StartEvent 1
Conditions NULL
MinDate 1805/10/01
SelectSubUnits Region $Ulm|Families $famElite $famLine $famHvyCavalry $famCavalry|FactionTags $F05
EvalSubUnitCount >=; 40
SelectSubUnits Region $Stuttgart|Families $famElite $famLine $famHvyCavalry $famCavalry|FactionTags $F05
EvalSubUnitCount >=; 12
SelectSubUnits Region $Nordlingen|Families $famElite $famLine $famHvyCavalry $famCavalry|FactionTags $F05
EvalSubUnitCount >=; 12
SelectSubUnits Region $Ravensburg|Families $famElite $famLine $famHvyCavalry $famCavalry|FactionTags $F05
EvalSubUnitCount >=; 12
SelectSubUnits Region $Ludwigshafen|Families $famElite $famLine $famHvyCavalry $famCavalry|FactionTags $F05
EvalSubUnitCount >=; 12
Actions NULL
SelectSubUnits Region $Ulm|FactionTags AUS
SelectSubUnits Region $Stuttgart|FactionTags AUS
SelectSubUnits Region $Nordlingen|FactionTags AUS
SelectSubUnits Region $Ravensburg|FactionTags AUS
SelectSubUnits Region $Ludwigshafen|FactionTags AUS
AlterCuSubUnit ApplytoList|Kill
GenTextMsg evt_nam_UlmSurrender1805|1|NULL|NULL|NULL
DescEvent evt_desc_CMN_UlmSurrender1805
EndEvent NULL


Plan is that the amount of French subunits is checked and if enough are there, the Austrian units in the defined regions should be killed.
I'm worried that the selected French subunits in the upper part of the event will get killed too, or does the selction of subunits "restart" after the "Actions" cell?
"Spread word to every slave, that even the mighty republic bleeds when struck!"
Join the Napoleonic Wargame Club
Join the American Civil War Game Club
Join the The Blitz Wargaming Club

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Sun Nov 04, 2012 12:24 pm

Run it and see! I'm not sure!

I would hope it resets each time, or your contitions will also accumulate!

See also: http://www.ageod.net/agewiki/Registry for a way to accumulate a total, or do "OR" logic!
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

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

Mon Nov 05, 2012 11:37 am

Each time you use SelectSubUnits, the currently select sub units are unselected... So that would work theoretically. Practically, I find the way it is scripted very prone to error. You have put several tests in the same event, so they must ALL be true to trigger the event. Is it what you want?
Image


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

User avatar
BigDuke66
General
Posts: 520
Joined: Fri Dec 11, 2009 2:06 pm

Mon Nov 05, 2012 4:48 pm

Yes that's what I want, the player should be forced to close any plausible line of retreat if he does that the Austrians surrender.
"Spread word to every slave, that even the mighty republic bleeds when struck!"
Join the Napoleonic Wargame Club
Join the American Civil War Game Club
Join the The Blitz Wargaming Club

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

Tue Nov 06, 2012 11:52 am

So this is only for a PBEM or for the player... the AI can't do something that clever.
Image


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

User avatar
BigDuke66
General
Posts: 520
Joined: Fri Dec 11, 2009 2:06 pm

Tue Nov 06, 2012 5:11 pm

Indeed, PBEM is the target.
"Spread word to every slave, that even the mighty republic bleeds when struck!"
Join the Napoleonic Wargame Club
Join the American Civil War Game Club
Join the The Blitz Wargaming Club

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 9 guests