Queries about Rules.
AppsRacK
Member Posts: 346
Lets say i have 1 ball actor and i add a self attribute called randomBall which is an integer. Then i have a global attributes called balltarget (which integer as well) and it's being randomize by other actor. so lets say i do this.
change attribute game.ballTarget to random (1,8)
then on the ball actor i have this.
change attribute self.randomBall to random (1,8)
rule
>if self.randomBall = ballTarget
>> change attribute self.randomBall to random (1,8)
my question is will it keep on calling the rule condition if the result of the change attribute inside the rule is still equal to the ballTarget. Is there a way i could exclude the value of the ballTarget to the random (1,8).
Thanks.
change attribute game.ballTarget to random (1,8)
then on the ball actor i have this.
change attribute self.randomBall to random (1,8)
rule
>if self.randomBall = ballTarget
>> change attribute self.randomBall to random (1,8)
my question is will it keep on calling the rule condition if the result of the change attribute inside the rule is still equal to the ballTarget. Is there a way i could exclude the value of the ballTarget to the random (1,8).
Thanks.
Comments