diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-29 22:08:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-29 22:08:22 -0300 |
commit | 4097dae7654f6ce691e9eaa3c355824e440b66fd (patch) | |
tree | 1bd9e2247454964999a82b8286f8afa4da0bce73 | |
parent | c0317012d1e4be856becc1238436842fa69c4864 (diff) | |
download | sdk-4097dae7654f6ce691e9eaa3c355824e440b66fd.tar.gz sdk-4097dae7654f6ce691e9eaa3c355824e440b66fd.tar.bz2 sdk-4097dae7654f6ce691e9eaa3c355824e440b66fd.tar.xz sdk-4097dae7654f6ce691e9eaa3c355824e440b66fd.zip |
You can now toggle through the monster elements.
-rw-r--r-- | qeditor.rpy | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qeditor.rpy b/qeditor.rpy index 3d5112b..ba1a641 100644 --- a/qeditor.rpy +++ b/qeditor.rpy @@ -174,7 +174,7 @@ screen quest_editor(): textbutton "{size=20}%d{/size}" % mob["sprite"] action None hbox: spacing 7 - textbutton "{size=20}Ele: %s{/size}" % ParseEle(mob["attribute"]) action None + textbutton "{size=20}Ele: %s{/size}" % ParseEle(mob["attribute"]) action Function(qeditor_input, "waves", wc-1, "element", key3=mc-1, key4="attribute") textbutton "{size=20}Boss: %s{/size}" % str(mob["boss"]) action Function(qeditor_input, "waves", wc-1, "bool", key3=mc-1, key4="boss") null width 20 textbutton _("X Delete") action Function(qeditor_delete, "waves", wc-1, mc-1) @@ -347,6 +347,15 @@ init python: print "Illegal boolean" renpy.notify("Illegal boolean") variable=target + elif tp == "element": + try: + variable=ifte(target >= 5, 0, target+1) + print "Value switched: %s" % str(variable) + except: + traceback.print_exc() + print "Elemental error" + renpy.notify("Elemental error") + variable=target else: try: variable=str(temp) |