platyping
Sleeping Dragon
@DH
20% Chance is the chance for all units.
If he wants different chances for different units, can always define a list like this:
using either Unit Type or Unit Class
If the unit is in the list, use the number there, else just use global 20.
Of course, if he wants to use dll to implement the same thing, up to him.
20% Chance is the chance for all units.
If he wants different chances for different units, can always define a list like this:
Code:
self.lChance = [("UNIT_DESTROYER", 20), ("UNIT_GALLEY", 50)]
If the unit is in the list, use the number there, else just use global 20.
Of course, if he wants to use dll to implement the same thing, up to him.