[RenPy] 纯文本查看 复制代码
##技能点分配sc
frame:
pos(0.3,0.45)
xsize 350
ysize 300
padding (10, 10)
vbox:
text "技能点分配:(当前技能点还剩[skillpoint])"
hbox:
if Role.Initial_hp == 0:
textbutton "-"
else:
textbutton "-" action SetVariable("Role.Initial_hp",Role.Initial_hp - 1),SetVariable("skillpoint", skillpoint+1)
text "体力:[Role.Initial_hp]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_hp",Role.Initial_hp + 1),SetVariable("skillpoint", skillpoint-1)
hbox:
if Role.Initial_mp == 0:
textbutton "-"
else:
textbutton "-" action SetVariable("Role.Initial_mp",Role.Initial_mp - 1),SetVariable("skillpoint", skillpoint+1)
text "精力:[Role.Initial_mp]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_mp",Role.Initial_mp + 1),SetVariable("skillpoint", skillpoint-1)
hbox:
if Role.Initial_STR == 0:
textbutton "-" action None
else:
textbutton "-" action SetVariable("Role.Initial_STR",Role.Initial_STR - 1),SetVariable("skillpoint", skillpoint+1)
text "武力:[Role.Initial_STR]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_STR",Role.Initial_STR + 1),SetVariable("skillpoint", skillpoint-1)
hbox:
if Role.Initial_VIT == 0:
textbutton "-" action None
else:
textbutton "-" action SetVariable("Role.Initial_VIT",Role.Initial_VIT - 1),SetVariable("skillpoint", skillpoint+1)
text "防御:[Role.Initial_VIT]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_VIT",Role.Initial_VIT + 1),SetVariable("skillpoint", skillpoint-1)
hbox:
if Role.Initial_INT == 0:
textbutton "-" action None
else:
textbutton "-" action SetVariable("Role.Initial_INT",Role.Initial_INT - 1),SetVariable("skillpoint", skillpoint+1)
text "智力:[Role.Initial_INT]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_INT",Role.Initial_INT + 1),SetVariable("skillpoint", skillpoint-1)
hbox:
if Role.Initial_charms == 0:
textbutton "-" action None
else:
textbutton "-" action SetVariable("Role.Initial_charms",Role.Initial_charms - 1),SetVariable("skillpoint", skillpoint+1)
text"魅力:[Role.Initial_charms]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_charms",Role.Initial_charms + 1),SetVariable("skillpoint", skillpoint-1)
hbox:
if Role.Initial_LUK == 0:
textbutton "-" action None
else:
textbutton "-" action SetVariable("Role.Initial_LUK",Role.Initial_LUK - 1),SetVariable("skillpoint", skillpoint+1)
text"幸运:[Role.Initial_LUK]"
if skillpoint <= 0:
textbutton "+" action None
else:
textbutton "+" action SetVariable("Role.Initial_LUK",Role.Initial_LUK + 1),SetVariable("skillpoint", skillpoint-1)
##确认sc
frame:
align(0.8,0.8)
hbox:
spacing 30
textbutton "确认" action Jump("changeinfo"),Hide("name_input")