Page 1 of 1
esvIntVar0 and Probability ranges?
Posted: Mon Apr 14, 2008 5:47 pm
by lodilefty
I think I uderstand the first part: assign the number of areas controlled by GBR [control = all VP locations?], and the action that 'activiates the event'...
But what does the probability statement mean?
Can I 'do math' to adjust/modify the value of esvIntVar0? [like "esvIntVar0 = esvIntVar0+1"]
How many different 'global' variables are there? 'esvIntVar0, 'esvIntVar1...' etc?
SelectFaction = $GBR
CountCtrlAreas = esvIntVar0;$New_England;$Middle_States;$South_Central;$Deep_South
SelectFaction = $USA
SelectFaction = $USA
StartEvent = evt_nam_FrenchRoll_340-341|1|0|NULL|NULL|NULL|NULL
Conditions
MinDate = 1778/04/01
MaxDate = 1778/05/01
[color="Red"]Probability = 15;esvIntVar0;-15[/color]
Actions
ChgEvtOccurs = evt_nam_FrenchEntry;CuOccurs;1
EndEvent
Posted: Mon Apr 14, 2008 6:43 pm
by PhilThib
The idea behind it was that for every grand theater the British had in control (i.e. controlled 100% of the strategic towns), they got 15% more chance to avoid the French entry... rings an old bell

Posted: Mon Apr 14, 2008 6:48 pm
by lodilefty
PhilThib wrote:The idea behind it was that for every grand theater the British had in control (i.e. controlled 100% of the strategic towns), they got 15% more chance to avoid the French entry... rings an old bell
OK.
What is the syntax or meaning of the three variables in the probability statement:
Probability = 15;esvIntVar0;-15
In later years, it changes the first variable [to 25, then 35, etc...]
...and that bell is ringing in my ears, too...

Posted: Mon Apr 14, 2008 9:06 pm
by PhilThib
Can't remember, Pocus shall tell you...sorry

leure:
Posted: Mon Apr 14, 2008 10:52 pm
by lodilefty
PhilThib wrote:Can't remember, Pocus shall tell you...sorry

leure:
Uh oh. You're too young to start having 'Senior Moments'...

Posted: Tue Apr 15, 2008 10:27 am
by Pocus
Exposed script variables (esv) are an old thing of BOA1, the embryo of what could have been arithmetic operations within the script engine. It never was developed further by lack of time. The constraints are that only a few commands can recognize them, and that you can't do arithmetic operations!
You have 100 at your disposal, from 0 to 99 ...
Posted: Tue Apr 15, 2008 11:23 am
by lodilefty
Pocus wrote:Exposed script variables (esv) are an old thing of BOA1, the embryo of what could have been arithmetic operations within the script engine. It never was developed further by lack of time. The constraints are that only a few commands can recognize them, and that you can't do arithmetic operations!
You have 100 at your disposal, from 0 to 99 ...
OK. Thank you for the insight...
...and what are the 3 parameters in the probability line?
[I hate to nag, but I'm trying to put in some new ideas with French Intervention in WIA, and I think these commands are the key]...

Posted: Tue Apr 15, 2008 1:23 pm
by Pocus
The first is the base probability. The second if presents must be an ESV indicator, the third is a coeff applied to the ESV value, which is then added to the base value.
There are only 4 commands which can use ESV: CountCtrlAreas, CountVP for checks and Probability / ChangeReplacements for actions. For example you can tie the number of militias received to the number of controled areas time a coeff. Beyond that, you can't do much with ESV right now, but if you have an idea...
Posted: Tue Apr 15, 2008 1:32 pm
by lodilefty
Pocus wrote:The first is the base probability. The second if presents must be an ESV indicator, the third is a coeff applied to the ESV value, which is then added to the base value.
There are only 4 commands which can use ESV: CountCtrlAreas, CountVP for checks and Probability / ChangeReplacements for actions. For example you can tie the number of militias received to the number of controled areas time a coeff. Beyond that, you can't do much with ESV right now, but if you have an idea...
Thank you!
If I have any 'bright ideas', I'll let you know!
