RandomAttr
Creates or updates an attribute, and randomizes it's value.
Postal III Ultrapatch+Angel v1.3.0+ Feature
The following function will only work in Postal III Ultrapatch+Angel v1.3.0 or higher.
Syntax
RandomAttr "<attribute>,<min>,<max>" -- Randomizes the value between <min> and <max>.
RandomAttr "<attribute>,<min>" -- Randomizes the value between <min> and 100.
RandomAttr "<attribute>,<val1>,<val2>,pick" -- Picks <val1> or <val2> on a dice roll.
Example
// Creates and randomizes an attribute, checks if it's higher than 75
xpt_rng
{
actions
{
RandomAttr "RNG,0,100"
IfAttr "RandomAttr > 75 Block begin"
Pattern pt_pass
Block end
}
}