summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-09-04 00:14:08 -0300
committerJesusaves <cpntb1@ymail.com>2022-09-04 00:14:08 -0300
commit85232b09854c98c7ccda2762ae6ae82d8e527e6a (patch)
tree8424e4c1d81726ce2d2aa172742187a9b7d74ef9
parent0d3afda98eafcdb80d73aa41ec256af318386779 (diff)
downloadsdk-85232b09854c98c7ccda2762ae6ae82d8e527e6a.tar.gz
sdk-85232b09854c98c7ccda2762ae6ae82d8e527e6a.tar.bz2
sdk-85232b09854c98c7ccda2762ae6ae82d8e527e6a.tar.xz
sdk-85232b09854c98c7ccda2762ae6ae82d8e527e6a.zip
Improve description handling on the SDK
-rw-r--r--ueditor_adv.rpy42
1 files 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()