I´ve got points done this way:
Code: Select all
init python:
class PointLocker(object):
def __init__(self):
self.dp = 0
self.np = 0
self.mp = 0
Code: Select all
if type == "dp":
self.dp += num
renpy.show_screen("Outer_{}Screen".format(type), message)
elif type == "np":
self.np += num
renpy.show_screen("Outer_{}Screen".format(type), message)
elif type == "mp":
self.mp += num
renpy.show_screen("Outer_{}Screen".format(type), message)
Code: Select all
#Points for level 001 animation.
define Points_High = ("pl.dp >= 24") #Higher Points
define Points_Med = ("20 <= pl.dp <= 23") #Medium Points
define Points_Low= ("pl.dp <= 19") #Lowest Points
Code: Select all
contains:
ConditionSwitch(Points_High and Insert, At("ball_red", position01),
Points_Med and Insert, At("ball_blue", position01),
Points_Low and Insert, At("ball_yellow", position01),
"True", Null())
It always appear the first one that is in top. In this case "ball_red".
WHY?!.. It´s the last thing I need for ConditionSwitch...
Thanks for your help!