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

esvIntVar0 and Probability ranges?

Mon Apr 14, 2008 5:47 pm

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
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
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Mon Apr 14, 2008 6:43 pm

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 :siffle: :sourcil:
Image

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

Mon Apr 14, 2008 6:48 pm

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 :siffle: :sourcil:


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... :niark:
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
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Mon Apr 14, 2008 9:06 pm

Can't remember, Pocus shall tell you...sorry :p leure:
Image

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

Mon Apr 14, 2008 10:52 pm

PhilThib wrote:Can't remember, Pocus shall tell you...sorry :p leure:


Uh oh. You're too young to start having 'Senior Moments'... :siffle: :niark:
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: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Apr 15, 2008 10:27 am

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


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

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

Tue Apr 15, 2008 11:23 am

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... :king:

...and what are the 3 parameters in the probability line? :nuts:

[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]... :sourcil:
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: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Apr 15, 2008 1:23 pm

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


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

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

Tue Apr 15, 2008 1:32 pm

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! :king:
If I have any 'bright ideas', I'll let you know! :nuts:
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]

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 5 guests