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

Probability

From AGEWiki

(Difference between revisions)
Jump to: navigation, search
m
 
Line 13: Line 13:
| param2desc = ''Optional'' Storage variable, the result of a command such as [[CountCtrlAreas]]
| param2desc = ''Optional'' Storage variable, the result of a command such as [[CountCtrlAreas]]
| param3 = VarCoeff
| param3 = VarCoeff
-
| param3desc = The amount to modify the "base" probability. Required if esvIntVar(x) in use.
+
| param3desc = The amount to modify the "base" probability. Required if [[esvIntVar(x)]] in use.
-
 
+
-
esvIntVar are variables used by the script engine to store values, the meaning being 'externally scripted variable' for esv, and then 'Integer Variable' for IntVar. A few commands are capable of storing their result in an estIntVar, so you can use the stored value elsewhere. This has never been developed much though, and more work is planned to improve this 'storage' behavior of the script engine.
+
}}
}}

Latest revision as of 18:33, 27 April 2010

Probability

Syntax  

Probability = Value; <esvIntVar(x)>; <VarCoeff>

Description

Sets the probability that the event fire.

Example  

Probability = 75

In this case, any given time the event conditions are checked, there will be a 75% chance that this one is considered to be fulfilled.  

Probability = 50 ; esvIntVar0; -15

The probability of 50% is reduced by an amount = 15 times the value of esvIntVar0

 

Parameters

Value

Integer; [0..100]; Probability in percent

esvIntVar(x)

Optional Storage variable, the result of a command such as CountCtrlAreas

VarCoeff

The amount to modify the "base" probability. Required if esvIntVar(x) in use.

Forums