From 4097dae7654f6ce691e9eaa3c355824e440b66fd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 29 Dec 2020 22:08:22 -0300 Subject: You can now toggle through the monster elements. --- qeditor.rpy | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-60-g2f50