Random probability = 0.5 is a condition that selects objects in the universe, which are fleets, ships, buildings, planets, system, or fields. Conditions are used for scope or activation of effectsgroups, specifying locations where ship parts or hulls or buildings can be produced, or where specials can be generated, and in some statistic calculations.xlightwavex wrote:How would i generate a number from 1 to 10 and add it to the damage deduction to a ship...
If you want a random number to use as one of the parameters to an effect, use RandomNumber(0.0, 10.0) or similar. This is an operation, which returns a number. 0.0 and 10.0 are parameters that can be constant numbers as in the example, or could be expressions, like 10.0 + 5.0 or 1 + Source.Population.
I think you're trying to script something too complicated to start with all at once... Maybe start with just getting the scope for your effect to work as desired, then worry about how to calculate what to set meter values to using expressions and randomness.