mikeejimbo
Chieftain
- Joined
- Jan 16, 2010
- Messages
- 65
Most likely I'm just using them wrong.
I have this line:
But it never runs the code below it. Now I realize that, given that I have given a chance for it to run or not, there is a finite possibility that I have just never seen it. However, after many trials, I have never seen it run. Yet, if I take out the last condition, to make it:
It does work.
I have this line:
Code:
if pWinner.isHasPromotion(gc.getInfoTypeForString('PROMOTION_SLAVEMAKER')) and not bAnimal and (self.getRandomNumber(1) == 1):
But it never runs the code below it. Now I realize that, given that I have given a chance for it to run or not, there is a finite possibility that I have just never seen it. However, after many trials, I have never seen it run. Yet, if I take out the last condition, to make it:
Code:
if pWinner.isHasPromotion(gc.getInfoTypeForString('PROMOTION_SLAVEMAKER')) and not bAnimal:
It does work.