Esempio n. 1
0
def registration_check():
    l = renpy.get_all_labels()
    ll = []
    for label in l:
        if label.split('_')[0] == 'evn':
            ll.append(label)
    names = [event.name for event in events_list]
    bad = []
    for name in ll:
        if name not in names:
            bad.append(name)
    if len(bad) > 0:
        txt = ""
        for name in bad:
            txt += "label for event(%s) is created, but not registered\n"%(name)
        raise Exception(txt)
def register_actions():
    lbl_list = renpy.get_all_labels()
    l = []
    for label in lbl_list:
        lb = label.split('_')
        if lb[0] == 'shd':
            l.append(lb)
    for action in l:
        key = '{slot}_{name}'.format(slot=action[1], name=action[2])
        z = '_'
        z = z.join(action)
        try:
            special = action[3]
        except IndexError:
            special = None
        if action[1].lower() == 'none':
            action[1] = None
        if not special:
            actions[key] = [z, action[1], action[2]]