Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

EvalNatThreats

From AGEWiki

(Difference between revisions)
Jump to: navigation, search
m
 
Line 5: Line 5:
| syntax = ChanceOKAtWarThreat{{!}}ChanceOKAtWar{{!}}ChanceOKAtPeaceThreat{{!}}ChanceOKAtPeace
| syntax = ChanceOKAtWarThreat{{!}}ChanceOKAtWar{{!}}ChanceOKAtPeaceThreat{{!}}ChanceOKAtPeace
| description = Evaluates probability of National Threats vs. parameters stated.
| description = Evaluates probability of National Threats vs. parameters stated.
-
Returns "True" only if one of the test is passed. This is a great command to have an action activates only under certain conditions, for example triggering Mobilization. Here you would perhaps use these percentages: 100{{!}}25{{!}}10{{!}}0, meaning that if the nation is at war and under threat, the mobilization will be done asap (100% chance). If 'only' at war, 25% chance per evaluation. If at peace and under threat, 10% chance per evaluation, and if at peace without a perceived enemy, no mobilization can happen.
+
 
 +
Returns "True" if only any one of the test is passed.  
 +
 
 +
This is a great command to have an action activates only under certain conditions, for example triggering Mobilization. Here you would perhaps use these percentages: 100{{!}}25{{!}}10{{!}}0, meaning that if the nation is at war and under threat, the mobilization will be done asap (100% chance). If 'only' at war, 25% chance per evaluation. If at peace and under threat, 10% chance per evaluation, and if at peace without a perceived enemy, no mobilization can happen.
| example =
| example =
| example-description =  
| example-description =  

Latest revision as of 11:15, 12 October 2011

EvalNatThreats

Syntax  

EvalNatThreats = ChanceOKAtWarThreat|ChanceOKAtWar|ChanceOKAtPeaceThreat|ChanceOKAtPeace

Description

Evaluates probability of National Threats vs. parameters stated.

Returns "True" if only any one of the test is passed.

This is a great command to have an action activates only under certain conditions, for example triggering Mobilization. Here you would perhaps use these percentages: 100|25|10|0, meaning that if the nation is at war and under threat, the mobilization will be done asap (100% chance). If 'only' at war, 25% chance per evaluation. If at peace and under threat, 10% chance per evaluation, and if at peace without a perceived enemy, no mobilization can happen.



 

Parameters

ChanceOKAtWarThreat

The chance to have the test passed if the nation is at war and threatened (morale is 50 or lower, or enemy land units are worth 1.25 or more own's value).

ChanceOKAtWar

The chance to have the test passed if the nation is at war. If at war and threatened, this is still evaluated.

ChanceOKAtPeaceThreat

The chance to have the test passed if the nation is at peace but threatened (nations with hostile relationships (-25 or below) have land units combat value worth 1.25 or more own's value).

ChanceOKAtPeace

The chance to have the test passed if the nation is at peace and not threaten.

Forums