diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-29 22:02:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-29 22:02:58 -0300 |
commit | 58fabe77a6cd7770ef74884529f841ba107565f8 (patch) | |
tree | d56f45212e08f0a836c1e1d89add6cc89d8a6281 | |
parent | f79aad484e598763850e8bda83c150dacbd4ccae (diff) | |
download | sdk-58fabe77a6cd7770ef74884529f841ba107565f8.tar.gz sdk-58fabe77a6cd7770ef74884529f841ba107565f8.tar.bz2 sdk-58fabe77a6cd7770ef74884529f841ba107565f8.tar.xz sdk-58fabe77a6cd7770ef74884529f841ba107565f8.zip |
You can now input monster name and sprite ID when adding them on Quest Editor.
-rw-r--r-- | qeditor.rpy | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/qeditor.rpy b/qeditor.rpy index eb047de..37cfe0a 100644 --- a/qeditor.rpy +++ b/qeditor.rpy @@ -265,15 +265,18 @@ init python: global qedit qedit=allquests[current] pointer=qedit["waves"][wave-1] - if len(pointer) < 3: - pointer.append({ - "name": "New Monster", - "sprite": 950000, - "attribute": 1, - "boss": False - }) - else: + if len(pointer) >= 3: renpy.notify("Max monsters per wave reached!") + return + + tmp_nm = renpy.invoke_in_new_context(renpy.input, "Monster Name?", default="New Monster") + tmp_sp = renpy.invoke_in_new_context(renpy.input, "Monster Sprite?", default="950000") + pointer.append({ + "name": tmp_nm, + "sprite": int(tmp_sp), + "attribute": 1, + "boss": False + }) return def qeditor_addwave(): |