From 85232b09854c98c7ccda2762ae6ae82d8e527e6a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 4 Sep 2022 00:14:08 -0300 Subject: Improve description handling on the SDK --- ueditor_adv.rpy | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/ueditor_adv.rpy b/ueditor_adv.rpy index 32ac53d..7f72aa1 100644 --- a/ueditor_adv.rpy +++ b/ueditor_adv.rpy @@ -27,7 +27,7 @@ label ueditor_supernew: if u["flags"]: continue c[u["rare"]] += 1 - lastid = c[rar] + 2 # We start at 1, not at 0 + lastid = c[rar] + 1 # We start at 1, not at 0 $ unitid = int("1%02d%03d" % (rar, lastid)) @@ -65,7 +65,13 @@ label ueditor_supernew: "Gunner (ATK++)" if False: $ job = 5 - $ desc = renpy.input("Describe the unit.", default="A standard unit in the game.") + show expression Text("[name]\n") at truecenter as ipsum with None + $ desc = renpy.input("Describe the unit basic description.", default="A standard unit in the game.") + show expression Text("[name]\n[desc]") at truecenter as ipsum with None + $ desd = renpy.input("Describe the unit 2nd form description.") or "" + show expression Text("[name]\n[desc] [desd]") at truecenter as ipsum with None + $ dese = renpy.input("Describe the unit 2nd form description.") or "" + hide ipsum with None python: # Create the randomness seed @@ -78,24 +84,28 @@ label ueditor_supernew: else: atd = " +%d" % i allunitsbase.append({"skill_id": 0, - "strength": 500, - "rare": rar, - "name": "%s%s" % (name, atd), - "ability_id": 0, - "attribute": ele, - "hp": 500, - "unit_id": unitid*100+i, - "sex": sex, - "max_level": 10+(rar*10), - "job": job, - "cost": rar**2, - "flags": 0, - "unit_base_id": unitid, - "flavor": desc}) + "strength": 500, + "rare": rar, + "name": "%s%s" % (name, atd), + "ability_id": 0, + "attribute": ele, + "hp": 500, + "unit_id": unitid*100+i, + "sex": sex, + "max_level": 10+(rar*10), + "job": job, + "cost": rar**2, + "flags": 0, + "unit_base_id": unitid, + "flavor": desc}) current = len(allunitsbase)-1 ueditor_recalc(False, shp, ssr) rar += 1 i+=1 + if i == 1: + desc+=" %s" % desd + elif i == 2: + desc+=" %s" % dese pass $ ueditor_save() -- cgit v1.2.3-60-g2f50